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.
63 righe
2.8 KiB
63 righe
2.8 KiB
<?php |
|
echo $this->Breadcrumb->render([ |
|
[ |
|
'title' => 'Home', |
|
'icon' => 'fa fa-home', |
|
'url' => '/', |
|
], |
|
[ |
|
'title' => __('Configurazioni'), |
|
'icon' => 'fa fa-wrench', |
|
], |
|
[ |
|
'title' => __('Lista dei Profili Utente'), |
|
'icon' => 'fa fa-list', |
|
], |
|
]); |
|
?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"> |
|
<?= __('Lista dei Profili Utente') ?> |
|
</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('description',__('Descrizione')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('is_default', __('Profilo Default')) ?></th> |
|
<th scope="col"><?= __('Profili Associati') ?></th> |
|
<th scope="col" class="actions text-center"><?= __('Azioni') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($groups as $group): ?> |
|
<tr> |
|
<td><?= h($group->description) ?></td> |
|
<td><?= $group->is_default ? __('SI') : __('NO') ?></td> |
|
<td><?= $group->child_groups_csv ?></td> |
|
<td class="actions text-right"> |
|
<?= $this->Html->link(__('Dettaglio'), ['action' => 'view', $group->id], ['class'=>'btn btn-info btn-xs']) ?> |
|
<?= $group->can_edit ? $this->Html->link(__('Modifica'), ['action' => 'edit', $group->id], ['class'=>'btn btn-warning btn-xs']) : null ?> |
|
<?= $group->can_delete ? $this->Form->postLink(__('Cancella'), ['action' => 'delete', $group->id], ['confirm' => __('Sei sicuro che vuoi cancellare il profilo "{0}" ?', $group->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>
|
|
|