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.
115 righe
6.4 KiB
115 righe
6.4 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', |
|
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'citizen_submission_index'], |
|
], |
|
[ |
|
'title' => __('Lista documenti della richiesta di attingimento'), |
|
'icon' => 'fa fa-list', |
|
], |
|
]); |
|
?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"> |
|
<?= __('Lista dei Documenti della Richiesta (n. documenti {0})', $total_attachments) ?> |
|
</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('original_file_name', __('Nome del file')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('mimetype', __('Tipologia file')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('description', __('Tipologia documento')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('upload_date', __('Caricato il')) ?></th> |
|
<th scope="col" class="actions text-center"><?= __('Actions') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($attachments as $attachment) : ?> |
|
<tr> |
|
<td><?= h($attachment->original_file_name) ?></td> |
|
<td><?= h($attachment->mimetype) ?></td> |
|
<td><?= h($attachment->tags[0]->description) ?></td> |
|
<td><?= h($attachment->upload_date) ?></td> |
|
<td class="actions text-right"> |
|
<?= $this->Html->link(__('Visualizza'), ['controller' => 'Attachments', 'action' => 'view', $attachment->file_name], ['class' => 'btn btn-info btn-xs', 'target' => '_blank']) ?> |
|
<?= ($waterDrawingPaperwork->water_drawing_paperwork_status_id == 8 || $waterDrawingPaperwork->water_drawing_paperwork_status_id == 11) ? $this->Html->link(__('Elimina'), ['action' => 'delete_attachment', $waterDrawingPaperwork->id, $attachment->id], ['class' => 'btn btn-warning btn-xs', 'confirm' => __('Sei sicuro di voler cancellare questo documento?')]) : ''?> |
|
</td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
<div class="col-xs-12" style="padding: 1rem;"> |
|
<?= $waterDrawingPaperwork->water_drawing_paperwork_status_id == 8 || $waterDrawingPaperwork->water_drawing_paperwork_status_id == 11 ? $this->Html->link(__('Aggiungi documentazione'), ['action' => 'citizen_documentation_requested', $waterDrawingPaperwork->id], ['class' => 'btn btn-success btn-xs']) : '' ?> |
|
<?= $waterDrawingPaperwork->is_citizen_water_drawing_paperwork_ok_to_send() ? $this->Html->link(__('Invia richiesta'), ['action' => 'citizen_send_to_validation', $waterDrawingPaperwork->id], ['confirm' => __('Vuoi procedere con l\'invio ?'), 'class' => 'btn btn-info btn-xs']) : ''?> |
|
</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> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"> |
|
<?= __('Lista delle verifiche effettuate su questa richiesta.') ?> |
|
</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('result', __('Esito della verifica')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('note', __('Note')) ?></th> |
|
<th scope="col"><?= $this->Paginator->sort('created', __('Data e ora della verifica')) ?></th> |
|
<th scope="col"><?= __('Allegato') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperworkHistories as $waterDrawingPaperworkHistory) : ?> |
|
<tr> |
|
<td><?= h($waterDrawingPaperworkHistory->result == 1 ? 'Accettata' : 'Rifiutata') ?></td> |
|
<td><?= h($waterDrawingPaperworkHistory->note) ?></td> |
|
<td><?= h($waterDrawingPaperworkHistory->created) ?></td> |
|
<td><?= !empty($waterDrawingPaperworkHistory->controllable_object->attachment_file_names) ? $this->Html->link(__('Visualizza'), ['controller' => 'Attachments', 'action' => 'view', array_keys($waterDrawingPaperworkHistory->controllable_object->attachment_file_names)[0]], ['class' => 'btn btn-warning btn-xs', 'style' => 'margin-right:1rem', 'target' => '_blank']) : 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>
|
|
|