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.
76 righe
3.7 KiB
76 righe
3.7 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', |
|
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'index'], |
|
], |
|
[ |
|
'title' => __('Dettagli Pratica di attingimento'), |
|
'icon' => 'fa fa-info', |
|
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'view', $water_drawing_paperwork_id], |
|
], |
|
[ |
|
'title' => __('Lista canoni annuali'), |
|
'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 dei {0} canoni della pratica di attingimento', $total_water_drawing_fees > $filtered_water_drawing_fees ? __('{0} su {1}', $filtered_water_drawing_fees, $total_water_drawing_fees) : $total_water_drawing_fees) ?> |
|
</h2> |
|
<?= $can_export_csv ? $this->Html->link(__('Esporta lista (CSV)'), ['action' => 'index', '_ext' => 'csv', $water_drawing_paperwork_id], ['style="margin-left:1rem;"', 'class' => 'btn btn-success btn-xs']) : null ?> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Anno') ?></th> |
|
<th scope="col"><?= __('Canone') ?></th> |
|
<th scope="col"><?= __('Dovuto') ?></th> |
|
<th scope="col"><?= __('Azioni') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingFees as $waterDrawingFee) : ?> |
|
<tr> |
|
<td style="<?= $waterDrawingFee->paied ? '' : 'color:red;' ?>"><?= h($waterDrawingFee->year) ?></td> |
|
<td style="<?= $waterDrawingFee->paied ? '' : 'color:red;' ?>"><?= h($waterDrawingFee->amount . ' €') ?></td> |
|
<td style="<?= $waterDrawingFee->paied ? '' : 'color:red;' ?>"><?= h($waterDrawingFee->to_pay . ' €') ?></td> |
|
<td> |
|
<?= $waterDrawingFee->can_edit ? $this->Html->link(__('Modifica'), ['controller' => 'waterDrawingFees', 'action' => 'edit', $waterDrawingFee->id], ['class' => 'btn btn-warning btn-xs']) : null ?> |
|
<?= $this->Html->link(__('Dettagli'), ['controller' => 'waterDrawingFees', 'action' => 'view', $waterDrawingFee->id], ['class' => 'btn btn-info btn-xs'])?> |
|
<?= $waterDrawingFee->can_delete ? $this->Form->postLink(__('Cancella'), ['action' => 'delete', $waterDrawingFee->id], ['confirm' => __('Sei sicuro che vuoi cancellare il canone annuale "{0}" ?', $waterDrawingFee->year), '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>
|
|
|