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.
 
 
 
 
 
 

77 righe
3.9 KiB

<?php
use Cake\I18n\DateTime;
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',
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'index'],
],
[
'title' => __('Logs Pratiche di attingimento'),
'icon' => 'fa fa-list',
],
]);
?>
<div class="card card-primary card-outline">
<div class="card-header d-sm-flex">
<h2 class="card-title">
<?= __('Logs Pratiche di attingimento') ?>
</h2>
<?= $can_export_snapshots_all ? $this->Html->link(__('Esporta CSV'), ['controller' => 'WaterDrawingPaperworks', 'action' => 'index_snapshots_all_csv'], ['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('when', __('Data')) ?></th>
<th scope="col"><?= $this->Paginator->sort('who', __('Da')) ?></th>
<th scope="col"><?= $this->Paginator->sort('what', __('Azione')) ?></th>
<th scope="col"><?= $this->Paginator->sort('water_drawing_paperwork_id', __('ID Pratica')) ?></th>
<th scope="col"><?= $this->Paginator->sort('water_drawing_paperwork_status', __('Stato Pratica')) ?></th>
<th scope="col"><?= $this->Paginator->sort('gc_user', __('Assegnatario Genio Civile')) ?></th>
<th scope="col"><?= $this->Paginator->sort('drar_user', __('Assegnatario DRAR')) ?></th>
<th scope="col" class="actions text-center"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($unpackedWaterDrawingPaperworkSnapshots as $unpackedWaterDrawingPaperworkSnapshot): ?>
<tr>
<td><?= h(isset($unpackedWaterDrawingPaperworkSnapshot->when) ? (new DateTime($unpackedWaterDrawingPaperworkSnapshot->when))->i18nFormat('dd/MM/Y HH:mm:ss', $logged_user_timezone) : null) ?></td>
<td><?= h($unpackedWaterDrawingPaperworkSnapshot->who) ?></td>
<td><?= h($unpackedWaterDrawingPaperworkSnapshot->what) ?></td>
<td><?= h($unpackedWaterDrawingPaperworkSnapshot->water_drawing_paperwork_id) ?></td>
<td><?= H($unpackedWaterDrawingPaperworkSnapshot->water_drawing_paperwork_status) ?></td>
<td><?= h($unpackedWaterDrawingPaperworkSnapshot->gc_user) ?></td>
<td><?= h($unpackedWaterDrawingPaperworkSnapshot->drar_user) ?></td>
<td class="actions text-right">
<?= $this->Html->link(__('Dettaglio'), ['action' => 'view_snapshot', $unpackedWaterDrawingPaperworkSnapshot->snapshot_id, '?' => ['origin' => 'logs']], ['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>