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.
 
 
 
 
 
 

73 righe
4.0 KiB

<?php
echo $this->Breadcrumb->render([
[
'title' => 'Home',
'icon' => 'fa fa-home',
'url' => '/',
],
[
'title' => __('Documenti'),
'icon' => 'fa fa-book',
],
[
'title' => __('Lista Richieste 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} Richieste di attingimento sottomesse', $total_water_drawing_paperworks > $filtered_water_drawing_paperworks ? __('{0} su {1}', $filtered_water_drawing_paperworks, $total_water_drawing_paperworks) : $total_water_drawing_paperworks) ?>
</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('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"><?= $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->controllable_object->created) ?></td>
<td><?= h($waterDrawingPaperwork->controllable_object->modified) ?></td>
<td class="actions text-right">
<?= $this->Html->link(__('Dettaglio'), ['action' => 'citizen_documentation_index', $waterDrawingPaperwork->id], ['class' => 'btn btn-info btn-xs']) ?>
</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>