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.
81 righe
5.4 KiB
81 righe
5.4 KiB
<?php |
|
echo $this->Breadcrumb->render([ |
|
[ |
|
'title' => 'Home', |
|
'icon' => 'fa fa-home', |
|
'url' => '/', |
|
], |
|
[ |
|
'title' => __('Documenti'), |
|
'icon' => 'fa fa-book', |
|
], |
|
[ |
|
'title' => __('Lista Pratiche di attingimento'), |
|
'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} Pratiche di attingimento', $total_water_drawing_paperworks > $filtered_water_drawing_paperworks ? __('{0} su {1}', $filtered_water_drawing_paperworks, $total_water_drawing_paperworks) : $total_water_drawing_paperworks) ?> |
|
</h2> |
|
<?= $can_export_list ? $this->Html->link(__('Esporta CSV'), ['controller' => 'WaterDrawingPaperworks', 'action' => 'index_csv'], ['style="margin-left:1rem;"', 'class' => 'btn btn-info btn-xs']) : '' ?> |
|
<?= $can_export_all_payments_list ? $this->Html->link(__('Estrai pagamenti'), ['controller' => 'WaterDrawingPayments', 'action' => 'index_all', '_ext' => 'csv'], ['style="margin-left:1rem;"', 'class' => 'btn btn-info btn-xs']) : '' ?> |
|
<?= $can_view_all_snapshots ? $this->Html->link(__('Visualizza Logs'), ['controller' => 'WaterDrawingPaperworks', 'action' => 'index_snapshots_all'], ['style="margin-left:1rem;"', 'class' => 'btn btn-info btn-xs']) : '' ?> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= $this->Paginator->sort('id', __('ID')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('authority_identification_code_civil_engineering_office', __('Codice identificativo')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('WaterDrawingPaperworkStatuses.description', __('Stato')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('authority_province', __('Provincia')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('release_date', __('Data di rilascio')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('expiration_date', __('Scadenza')) ?></th> |
|
<th scope="col" class="actions text-center"><?= __('% avanzamento') ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('ControllableObjects.created', __('Creata il')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('ControllableObjects.modified', __('Modificata il')) ?></th> |
|
<th scope="col" class="actions text-center"><?= __('Actions') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperworks as $waterDrawingPaperwork): ?> |
|
<tr> |
|
<td><?= $this->Number->format($waterDrawingPaperwork->id) ?></td> |
|
<td><?= h($waterDrawingPaperwork->authority_identification_code_civil_engineering_office) ?></td> |
|
<td <?= isset($waterDrawingPaperwork->water_drawing_paperwork_status->rgb) ? 'style="color:'. $waterDrawingPaperwork->water_drawing_paperwork_status->rgb . '"' : '' ?>><?= h($waterDrawingPaperwork->water_drawing_paperwork_status->description) ?></td> |
|
<td><?= h($waterDrawingPaperwork->authority_province) ?></td> |
|
<td><?= h($waterDrawingPaperwork->release_date) ?></td> |
|
<td><?= h($waterDrawingPaperwork->expiration_date) ?></td> |
|
<td><?= h($waterDrawingPaperwork->percentage) ?></td> |
|
<td><?= h($waterDrawingPaperwork->controllable_object->created) ?></td> |
|
<td><?= h($waterDrawingPaperwork->controllable_object->modified) ?></td> |
|
<td class="actions text-right"> |
|
<?= $this->Html->link(__('Dettaglio'), ['action' => ($waterDrawingPaperwork->scanned ? 'view_scan' : 'view'), $waterDrawingPaperwork->id], ['class'=>'btn btn-info btn-xs']) ?> |
|
<?= $waterDrawingPaperwork->can_edit ? $this->Html->link(__('Modifica'), ['action' => ($waterDrawingPaperwork->scanned ? 'edit_scan' : 'edit'), $waterDrawingPaperwork->id], ['class'=>'btn btn-warning btn-xs']) : null ?> |
|
<?= $waterDrawingPaperwork->can_delete ? $this->Form->postLink(__('Cancella'), ['action' => 'delete', $waterDrawingPaperwork->id], ['confirm' => __('Sei sicuro che vuoi cancellare la pratica di attingimento con ID:"{0}" ?', $waterDrawingPaperwork->id), '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> |
|
|
|
|