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.
71 righe
3.3 KiB
71 righe
3.3 KiB
<?php |
|
echo $this->Breadcrumb->render([ |
|
[ |
|
'title' => 'Home', |
|
'icon' => 'fa fa-home', |
|
'url' => '/', |
|
], |
|
[ |
|
'title' => __('Configurazioni'), |
|
'icon' => 'fa fa-wrench', |
|
], |
|
[ |
|
'title' => __('Lista Utenti'), |
|
'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 di {0} Utenti', $total_users > $filtered_users ? __('{0} su {1}', $filtered_users, $total_users) : $total_users) ?> |
|
</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('surname',__('Cognome')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('name', __('Nome')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('username', __('Username')) ?></th> |
|
<th scope="col"><?= __('Recapiti') ?></th> |
|
<th scope="col"><?= __('Profili') ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('OrganisationActors.description', __('Organizzazione')) ?></th> |
|
<th scope="col" class="actions text-center"><?= __('Azioni') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($users as $user): ?> |
|
<tr> |
|
<td><?= h($user->surname) ?></td> |
|
<td><?= h($user->name) ?></td> |
|
<td><?= h($user->username) ?></td> |
|
<td><?= h($user->actor->contacts) ?></td> |
|
<td><?= h($user->profiles) ?></td> |
|
<td><?= h($user->organisation->actor->description) ?></td> |
|
<td class="actions text-right"> |
|
<?= $this->Html->link(__('Dettaglio'), ['action' => 'view', $user->id], ['class'=>'btn btn-info btn-xs']) ?> |
|
<?= $user->can_edit ? $this->Html->link(__('Modifica'), ['action' => 'edit', $user->id], ['class'=>'btn btn-warning btn-xs']) : null ?> |
|
<?= $user->can_delete ? $this->Form->postLink(__('Cancella'), ['action' => 'delete', $user->id], ['confirm' => __('Sei sicuro che vuoi cancellare l\'utente "{0}" ?', $user->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>
|
|
|