Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
75 righe
3.8 KiB
75 righe
3.8 KiB
<?php |
|
echo $this->Breadcrumb->render([ |
|
[ |
|
'title' => 'Home', |
|
'icon' => 'fa fa-home', |
|
'url' => '/', |
|
], |
|
[ |
|
'title' => __('Configurazioni'), |
|
'icon' => 'fa fa-wrench', |
|
], |
|
[ |
|
'title' => __('Lista Organizzazioni'), |
|
'icon' => 'fa fa-list', |
|
], |
|
]); |
|
?> |
|
|
|
<?= $this->Cell('Filters', [__('Filtri')]) ?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"> |
|
<?= __('Lista delle {0} Organizzazioni', $total_organisations > $filtered_organisations ? __('{0} su {1}', $filtered_organisations, $total_organisations) : $total_organisations) ?> |
|
</h2> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= $this->Paginator->sort('Actors.description', __('Descrizione')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('acronym', __('Acronimo')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('OrganisationTypes.description', __('Tipologia')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('address', __('Indirizzo')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('cap', __('CAP')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('district', __('Comune')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('province', __('Provincia')) ?></th> |
|
<th scope="col"><?= __('Recapiti') ?></th> |
|
<th scope="col" class="actions text-center"><?= __('Azioni') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($organisations as $organisation): ?> |
|
<tr> |
|
<td><?= h($organisation->actor->description) ?></td> |
|
<td><?= h($organisation->acronym) ?></td> |
|
<td><?= h($organisation->organisation_type->description) ?></td> |
|
<td><?= h($organisation->address) ?></td> |
|
<td><?= h($organisation->cap) ?></td> |
|
<td><?= h($organisation->district) ?></td> |
|
<td><?= h($organisation->province) ?></td> |
|
<td><?= h($organisation->actor->contacts) ?></td> |
|
<td class="actions text-right"> |
|
<?= $this->Html->link(__('Dettaglio'), ['action' => 'view', $organisation->id], ['class'=>'btn btn-info btn-xs']) ?> |
|
<?= $organisation->can_edit ? $this->Html->link(__('Modifica'), ['action' => 'edit', $organisation->id], ['class'=>'btn btn-warning btn-xs']) : null ?> |
|
<?= $organisation->can_delete ? $this->Form->postLink(__('Cancella'), ['action' => 'delete', $organisation->id], ['confirm' => __('Sei sicuro che vuoi cancellare l\'organizzazione "{0}" ?', $organisation->actor->description), 'class'=>'btn btn-danger btn-xs']) : null ?> |
|
</td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
<div class="card-footer d-md-flex paginator"> |
|
<div class="mr-auto" style="font-size:.8rem"> |
|
<?= $this->Paginator->counter(__('Pagina {{page}} di {{pages}}, visualizzati {{current}} record(s) di {{count}} totali')) ?> |
|
</div> |
|
<ul class="pagination pagination-sm"> |
|
<?= $this->Paginator->first('<i class="fas fa-angle-double-left"></i>', ['escape' => false]) ?> |
|
<?= $this->Paginator->prev('<i class="fas fa-angle-left"></i>', ['escape' => false]) ?> |
|
<?= $this->Paginator->numbers() ?> |
|
<?= $this->Paginator->next('<i class="fas fa-angle-right"></i>', ['escape' => false]) ?> |
|
<?= $this->Paginator->last('<i class="fas fa-angle-double-right"></i>', ['escape' => false]) ?> |
|
</ul> |
|
</div> |
|
</div>
|
|
|