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.
641 righe
34 KiB
641 righe
34 KiB
<style> |
|
td a { |
|
display: block; |
|
} |
|
|
|
a.rows { |
|
color: #797979; |
|
} |
|
</style> |
|
<?php |
|
|
|
use App\WGS\Utils\Dto\ProvinceDistrictCellDto\ProvinceCellDto; |
|
use Cake\I18n\DateTime; |
|
|
|
if ($back_to_logs) { |
|
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', |
|
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'index_snapshots_all'], |
|
], |
|
[ |
|
'title' => __('Dettagli Istantanea Pratica di attingimento'), |
|
'icon' => 'fa fa-info', |
|
], |
|
]); |
|
} else { |
|
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' => ($waterDrawingPaperwork->scanned ? 'view_scan' : 'view'), $waterDrawingPaperwork->id], |
|
], |
|
[ |
|
'title' => __('Storico Pratica di attingimento'), |
|
'icon' => 'fa fa-list', |
|
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'index_snapshots', $waterDrawingPaperwork->id], |
|
], |
|
[ |
|
'title' => __('Dettagli Istantanea Pratica di attingimento'), |
|
'icon' => 'fa fa-info', |
|
], |
|
]); |
|
} |
|
?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="box-title"><?php echo __('Dettagli Pratica di attingimento. Istantanea del {0}', h(isset($date) ? (new DateTime($date))->i18nFormat('dd/MM/Y HH:mm:ss', $logged_user_timezone) : null)); ?></h3> |
|
<?= $previous_snapshot_id ? $this->Html->link('<i class="fa fa-arrow-left" style="margin-right: 5px;"></i>' . __('Istantanea precedente'), ['controller' => 'WaterDrawingPaperworks', 'action' => ($waterDrawingPaperwork->scanned ? 'view_scan_snapshot' : 'view_snapshot'), $previous_snapshot_id, '?' => $back_to_logs ? ['origin' => 'logs'] : []], ['escape' => false, 'style="margin-left:1rem;"', 'class' => 'btn btn-info btn-xs']) : '' ?> |
|
<?= $next_snapshot_id ? $this->Html->link(__('Istantanea successiva') . '<i class="fa fa-arrow-right" style="margin-left: 5px;"></i>', ['controller' => 'WaterDrawingPaperworks', 'action' => ($waterDrawingPaperwork->scanned ? 'view_scan_snapshot' : 'view_snapshot'), $next_snapshot_id, '?' => $back_to_logs ? ['origin' => 'logs'] : []], ['escape' => false, 'style="margin-left:1rem;"', 'class' => 'btn btn-info btn-xs']) : '' ?> |
|
</div> |
|
<div class="card-body"> |
|
<?= __('Accesso rapido a:') ?> |
|
</div> |
|
<div class="card-footer"> |
|
<div class="ml-auto"> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('administration_info')">Info amministrative</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('applicants')">Richiedente/Ditta</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('derivation_point')">Punto di prelievo/derivazione</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('intended_use')">Impiego Risorsa</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('return_point')">Punto di restituzione</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('withdraw')">Periodo richiesto di prelievo</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('provision_info')">Info del provvedimento</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('payments')">Canone</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('meters')">Strumenti di misura</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('static_levels')">Misurazione piezometrica</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('antimafia_request')">Antimafia</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" onclick="scrollToSection('pec_documentation')">Documentazione PEC</button> |
|
<button style="margin-left:1rem;margin-top:1rem;" class="btn btn-info btn-xs" id="scrollButton">Scorri in fondo</button> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<?php echo $this->Form->create($waterDrawingPaperwork, ['id' => 'myForm', 'role' => 'form', 'type' => 'file']); ?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Informazioni della pratica') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<?= $this->Form->control('water_drawing_paperwork_status.description', ['label' => __('Stato della pratica'), 'type' => 'text', 'disabled' => true, 'required' => false]) ?> |
|
<?= $this->Form->control('gc_user', ['label' => __('Assegnatario Genio Civile'), 'type' => 'text', 'disabled' => true]) ?> |
|
<?= $this->Form->control('drar_user', ['label' => __('Assegnatario DRAR'), 'type' => 'text', 'disabled' => true]) ?> |
|
</div> |
|
</div> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Allegati') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Documenti Tecnici (THC)') ?></th> |
|
<th scope="col"><?= __('Documenti Vari (DV)') ?></th> |
|
<th scope="col"><?= __('Licenza di attingimento (LIC)') ?></th> |
|
<th scope="col"><?= __('Decreto di Derivazione (DEC)') ?></th> |
|
<th scope="col"><?= __('Schema del Disciplinare (SDD)') ?></th> |
|
<th scope="col"><?= __('Disciplinare (DSC)') ?></th> |
|
<th scope="col"><?= __('Modulo 2A (2A)') ?></th> |
|
<th scope="col"><?= __('Documento antimafia (DAM)') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<td><?= $waterDrawingPaperwork->check_thc ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_edit && (($logged_user_id === $waterDrawingPaperwork->gc_user_id) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -8], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check_dv ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_edit && (($logged_user_id === $waterDrawingPaperwork->gc_user_id) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -7], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check_lic ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_edit && (($logged_user_id === $waterDrawingPaperwork->gc_user_id) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -6], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check_dec ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_edit && (($logged_user_id === $waterDrawingPaperwork->gc_user_id) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -5], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check_sdd ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_edit && (($logged_user_id === $waterDrawingPaperwork->gc_user_id) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -10], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check_dsc ? __('Presente') : __('Assente ') . (((($logged_user_id === $waterDrawingPaperwork->gc_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < 0) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -4], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check2a ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_edit && (($logged_user_id === $waterDrawingPaperwork->gc_user_id) || ($logged_user_id === $waterDrawingPaperwork->drar_user_id && $waterDrawingPaperwork->water_drawing_paperwork_status_id < -2))) ? $this->Html->link(__('Carica'), ['action' => 'upload_attachment', $waterDrawingPaperwork->id, -3], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
<td><?= $waterDrawingPaperwork->check_dam ? __('Presente') : __('Assente ') . (($waterDrawingPaperwork->can_upload_antimafia_attachment) ? $this->Html->link(__('Carica'), ['action' => 'upload_antimafia_attachment', $waterDrawingPaperwork->id], ['class' => 'btn btn-danger btn-xs']) : null) ?></td> |
|
</tbody> |
|
</table> |
|
</div> |
|
<div class="card-body"> |
|
<?php |
|
echo $this->element('attachments', [ |
|
'coId' => $waterDrawingPaperwork->controllable_object_id, |
|
'filepicker' => false, |
|
'viewer' => true, |
|
'currentFilesRemovable' => false, |
|
'view_in_frame_with_id' => 'previewiframe', |
|
]); |
|
?> |
|
</div> |
|
</div> |
|
|
|
<div id="administration_info" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Info amministrative') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<?= $this->Form->control('authority_civil_engineer_code', ['label' => __('Codice Genio Civile'), 'type' => 'text', 'disabled' => true]) ?> |
|
<?= $this->Cell("DistrictProvince", [ |
|
new ProvinceCellDto( |
|
fieldId: "authority-province", |
|
fieldName: "authority_province", |
|
formContext: $waterDrawingPaperwork, |
|
fieldRequired: true, |
|
disabled: true, |
|
fieldContainerClass: "", |
|
showProvinceFullName: true |
|
) |
|
] |
|
) ?> |
|
<?= $this->Form->control('authority_identification_code_civil_engineering_office', ['label' => __('Codice identificativo Concessione Ufficio Genio civile (es. AA0000)'), 'type' => 'text', 'pattern' => '[a-zA-Z]{2}[0-9]{4}', 'required' => true, 'disabled' => true]) ?> |
|
<?= $this->Form->control('authority_identification_code_derivation_department_water_waste', ['label' => __('Codice identificativo Concessione Dipartimento Acqua e rifiuti'), 'type' => 'text', 'pattern' => '[a-zA-Z]{2}[0-9]{4}', 'disabled' => true]) ?> |
|
<?= $this->Form->control('water_drawing_article_id', ['label' => __('Articolo'), 'options' => $WaterDrawingArticles, 'empty' => true, 'disabled' => true]) ?> |
|
</div> |
|
</div> |
|
|
|
<div id="applicants" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Richiedente/Ditta') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<div id="applicants_item_blocks_div"> |
|
<?php |
|
if (count($waterDrawingPaperwork->applicants) == 0) echo $this->element('WaterDrawingPaperworks/applicants', ['applicant_item_block' => 0, 'is_view' => true, 'formContext' => $waterDrawingPaperwork, 'districtProvinceApplicant' => $waterDrawingPaperwork->applicants]); |
|
foreach ($waterDrawingPaperwork->applicants as $applicant_item_block => $applicant) { |
|
echo $this->element('WaterDrawingPaperworks/applicants', ['applicant_item_block' => $applicant_item_block, 'is_view' => true, 'formContext' => $waterDrawingPaperwork, 'districtProvinceApplicant' => $applicant]); |
|
} |
|
?> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div id="derivation_point" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Lista Punti di prelievo/derivazione') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Coordinate Latitudine, Longitudine') ?></th> |
|
<th scope="col"><?= __('Tipo derivazione') ?></th> |
|
<th scope="col"><?= __('Corpo idrico') ?></th> |
|
<th scope="col"><?= __('Comune') ?></th> |
|
<th scope="col"><?= __('Foglio') ?></th> |
|
<th scope="col"><?= __('Particella') ?></th> |
|
<th scope="col"><?= __('Stato') ?></th> |
|
<th scope="col"><?= __('Volume (m^3)') ?></th> |
|
<th scope="col"><?= __('Portata (l/s)') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperwork->water_drawing_derivations as $waterDrawingDerivation) : ?> |
|
<tr> |
|
<td><?= h($waterDrawingDerivation->latitude . ', ' . $waterDrawingDerivation->longitude) ?></td> |
|
<td><?= h(isset($waterDrawingDerivation->water_drawing_derivation_type_id) ? $waterDrawingDerivation->water_drawing_derivation_type->description : null) ?></td> |
|
<td><?= h($waterDrawingDerivation->water_body) ?></td> |
|
<td><?= h($waterDrawingDerivation->district) ?></td> |
|
<td><?= h($waterDrawingDerivation->cadastral_sheet) ?></td> |
|
<td><?= h($waterDrawingDerivation->cadastral_parcel) ?></td> |
|
<td><?= h($waterDrawingDerivation->derivation_status) ?></td> |
|
<td><?= h($waterDrawingDerivation->annual_volume) ?></td> |
|
<td><?= $waterDrawingDerivation->average_flow_rate ?></td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<div id="intended_use" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Impiego risorsa') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<div id="applicants_item_blocks_div"> |
|
<?php |
|
foreach ($waterDrawingPaperwork->water_drawing_intended_uses as $water_drawing_intended_use_item_block => $waterDrawingIntendedUse) { |
|
echo $this->element('WaterDrawingPaperworks/intended_uses', ['intended_use_item_block' => $water_drawing_intended_use_item_block, 'is_view' => true, 'intendedUseTypes' => $intendedUseTypes, 'cadastralCropTypes' => $cadastralCropTypes, 'wateringSystems' => $wateringSystems]); |
|
} |
|
?> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div id="return_point" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Lista Punti di restituzione') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Coordinate Latitudine, Longitudine') ?></th> |
|
<th scope="col"><?= __('Comune') ?></th> |
|
<th scope="col"><?= __('Foglio') ?></th> |
|
<th scope="col"><?= __('Particella') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperwork->water_drawing_return_points as $waterDrawingReturnPoint) : ?> |
|
<tr> |
|
<td><?= h($waterDrawingReturnPoint->latitude . ', ' . $waterDrawingReturnPoint->longitude) ?></td> |
|
<td><?= h($waterDrawingReturnPoint->district) ?></td> |
|
<td><?= h($waterDrawingReturnPoint->cadastral_sheet) ?></td> |
|
<td><?= h($waterDrawingReturnPoint->cadastral_parcel) ?></td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<div id="withdraw" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Periodo richiesto di prelievo') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<?= $this->Form->control('from_date', ['label' => __('Dal'), 'type' => 'date', 'disabled' => true]) ?> |
|
<?= $this->Form->control('to_date', ['label' => __('Al'), 'type' => 'date', 'disabled' => true]) ?> |
|
</div> |
|
</div> |
|
|
|
<div id="provision_info" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Info del provvedimento') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<?= $this->Form->control('gurs_reference', ['label' => __('Estremi GURS con pubblicazione istanza'), 'type' => 'text', 'disabled' => true]) ?> |
|
<?= $this->Form->control('authorisation_type', ['label' => __('Natura del provvedimento di autorizzazione'), 'type' => 'text', 'disabled' => true]) ?> |
|
<?= $this->Form->control('concession_decree_number', ['label' => __('Decreto di Concessione n° (o di riconoscimento del diritto di derivazione)'), 'disabled' => true]) ?> |
|
<?= $this->Form->control('release_date', ['label' => __('Data di rilascio del provvedimento'), 'disabled' => true]) ?> |
|
<?= $this->Form->control('concession_duration', ['label' => __('Durata Concessione (in anni)'), 'type' => 'number', 'disabled' => true]) ?> |
|
<?= $this->Form->control('expiration_date', ['label' => __('Validità fino a (scadenza del provvedimento)'), 'disabled' => true]) ?> |
|
<?= $this->Form->control('first_istance', ['label' => __('Prima istanza'), 'type' => 'text', 'disabled' => true]) ?> |
|
<?= $this->Form->control('takeover', ['label' => __('Subentro'), 'type' => 'text', 'disabled' => true]) ?> |
|
</div> |
|
</div> |
|
|
|
<div id="payments" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Canone') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<?php if ($waterDrawingPaperwork->can_view_fee): ?> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Lista degli ultimi canoni') ?> |
|
</h3> |
|
</div> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Anno') ?></th> |
|
<th scope="col"><?= __('Canone') ?></th> |
|
<th scope="col"><?= __('Dovuto') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperwork->water_drawing_fees as $waterDrawingFees) : ?> |
|
<tr> |
|
<td style="<?= $waterDrawingFees->paied ? '' : 'color:red;' ?>"><?= h($waterDrawingFees->year) ?></td> |
|
<td style="<?= $waterDrawingFees->paied ? '' : 'color:red;' ?>"><?= h($waterDrawingFees->amount . ' €') ?></td> |
|
<td style="<?= $waterDrawingFees->paied ? '' : 'color:red;' ?>"><?= h($waterDrawingFees->to_pay . ' €') ?></td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
<?php endif; ?> |
|
<?php if ($waterDrawingPaperwork->can_view_payment): ?> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Lista degli ultimi pagamenti') ?> |
|
</h3> |
|
</div> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Anno') ?></th> |
|
<th scope="col"><?= __('Data pagamento') ?></th> |
|
<th scope="col"><?= __('Numero del pagamento') ?></th> |
|
<th scope="col"><?= __('Importo') ?></th> |
|
<th scope="col"><?= __('Tipologia di pagamento') ?></th> |
|
<th scope="col"><?= __('Data inserimento') ?></th> |
|
<th scope="col"><?= __('Utente') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPayments as $waterDrawingPayment) : ?> |
|
<tr> |
|
<td><?= h($waterDrawingPayment->water_drawing_fee_year) ?></td> |
|
<td><?= h($waterDrawingPayment->payment_date) ?></td> |
|
<td><?= h($waterDrawingPayment->payment_number) ?></td> |
|
<td><?= h($waterDrawingPayment->amount) ?></td> |
|
<td><?= h($waterDrawingPayment->water_drawing_payment_type->description) ?></td> |
|
<td><?= h($waterDrawingPayment->created) ?></td> |
|
<td><?= h($waterDrawingPayment->user) ?></td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
<?php endif; ?> |
|
</div> |
|
</div> |
|
|
|
<div id="meters" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Strumento di misura') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Tipologia di uso') ?></th> |
|
<th scope="col"><?= __('Tipologia strumento di misura') ?></th> |
|
<th scope="col"><?= __('Data installazione') ?></th> |
|
<th scope="col"><?= __('Marca ') ?></th> |
|
<th scope="col"><?= __('Matricola') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php |
|
foreach ($waterDrawingPaperwork->water_drawing_intended_uses as $waterDrawingIntendedUse) : |
|
?> |
|
<tr> |
|
<td><?= h($waterDrawingIntendedUse->water_drawing_intended_use_type->description ?? '') ?></td> |
|
<td><?= h(isset($waterDrawingIntendedUse->water_drawing_meters[0]) ? $waterDrawingIntendedUse->water_drawing_meters[0]->water_drawing_tool_type->description : '') ?></td> |
|
<td><?= h(isset($waterDrawingIntendedUse->water_drawing_meters[0]) ? $waterDrawingIntendedUse->water_drawing_meters[0]->installation_date : '') ?></td> |
|
<td><?= h(isset($waterDrawingIntendedUse->water_drawing_meters[0]) ? $waterDrawingIntendedUse->water_drawing_meters[0]->manufacturer : '') ?></td> |
|
<td><?= h(isset($waterDrawingIntendedUse->water_drawing_meters[0]) ? $waterDrawingIntendedUse->water_drawing_meters[0]->part_number : '') ?></td> |
|
</tr> |
|
<?php |
|
endforeach; |
|
?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<div id="static_levels" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Misurazione del livello piezometrico') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<?= $this->Form->control('static_level_water', ['label' => __('Livello statico dal boccaforo al momento del rinvenimento dell\'acqua (cm)'), 'type' => 'number', 'pattern' => '[0-9]*', 'disabled' => true]) ?> |
|
<?= $this->Form->control('static_level_water_date', ['label' => __('Data del rilievo'), 'type' => 'date', 'disabled' => true]) ?> |
|
<?= $this->Form->control('initial_static_level_water', ['label' => __('Livello statico dal boccaforo il giorno di inizio derivazione (cm)'), 'type' => 'number', 'pattern' => '[0-9]*', 'disabled' => true]) ?> |
|
<?= $this->Form->control('initial_static_level_water_date', ['label' => __('Data del rilievo'), 'type' => 'date', 'disabled' => true]) ?> |
|
</div> |
|
</div> |
|
|
|
<div id="antimafia_request" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Lista degli stati delle richieste antimafia') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Utente') ?></th> |
|
<th scope="col"><?= __('Stato') ?></th> |
|
<th scope="col"><?= __('Data e ora') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperwork->water_drawing_antimafia_certification_requests as $waterDrawinAntimafiaRequest) : ?> |
|
<tr> |
|
<td><?= h($waterDrawinAntimafiaRequest->user) ?></td> |
|
<td <?= $waterDrawinAntimafiaRequest->water_drawing_antimafia_certification_request_status_id == 2 && $waterDrawingPaperwork->can_request_self_certification ? 'style="color:red;"' : null ?>><?= h($waterDrawinAntimafiaRequest->water_drawing_antimafia_certification_request_status->description) . ($waterDrawinAntimafiaRequest->water_drawing_antimafia_certification_request_status_id == 2 && $waterDrawingPaperwork->can_request_self_certification ? __(' - Richiesta scaduta') : null) ?></td> |
|
<td <?= $waterDrawinAntimafiaRequest->water_drawing_antimafia_certification_request_status_id == 2 && $waterDrawingPaperwork->can_request_self_certification ? 'style="color:red;"' : null ?>><?= h($waterDrawinAntimafiaRequest->created) ?></td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<div id="pec_documentation" class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h3 class="card-title"> |
|
<?= __('Lista della documentazione PEC') ?> |
|
</h3> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Documento') ?></th> |
|
<th scope="col"><?= __('Numero protocollo') ?></th> |
|
<th scope="col"><?= __('Data') ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<?php foreach ($waterDrawingPaperwork->water_drawing_paperwork_pecs as $waterDrawingPaperworkPec) : ?> |
|
<tr> |
|
<td><?= h($waterDrawingPaperworkPec->document) ?></td> |
|
<td><?= h($waterDrawingPaperworkPec->protocol_number) ?></td> |
|
<td><?= h($waterDrawingPaperworkPec->protocol_date) ?></td> |
|
</tr> |
|
<?php endforeach; ?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header"> |
|
<h2 class="card-title"> |
|
<?= __('Lista delle verifiche effettuate su questa pratica.') ?> |
|
</h2> |
|
<div class="card-tools"> |
|
<button type="button" class="btn btn-tool" data-card-widget="collapse"> |
|
<i class="fas fa-minus"></i> |
|
</button> |
|
</div> |
|
</div> |
|
<div class="card-body table-responsive p-0"> |
|
<table class="table table-hover text-nowrap"> |
|
<thead> |
|
<tr> |
|
<th scope="col"><?= __('Esito della verifica') ?></th> |
|
<th scope="col"><?= __('Note') ?></th> |
|
<th scope="col"><?= __('Utente') ?></th> |
|
<th scope="col"><?= __('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->user) ?></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> |
|
|
|
<?= $this->Form->end() ?> |
|
|
|
<script> |
|
function scrollToBottom() { |
|
$("html, body").animate({ |
|
scrollTop: $(document).height() |
|
}, 1000); |
|
} |
|
|
|
function scrollToSection(sectionId) { |
|
var section = document.getElementById(sectionId); |
|
|
|
// Scorri verso la sezione |
|
section.scrollIntoView({ |
|
behavior: 'smooth' |
|
}); |
|
} |
|
|
|
window.addEventListener('DOMContentLoaded', function() { |
|
$("#water-drawing-article-id").select2({ |
|
minimumResultsForSearch: -1 |
|
}); |
|
$("#scrollButton").click(function() { |
|
scrollToBottom(); |
|
}); |
|
}); |
|
</script> |
|
<style> |
|
.select2-container--default .select2-selection--multiple .select2-selection__choice { |
|
background-color: #3c8dbc; |
|
} |
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { |
|
color: white; |
|
} |
|
</style> |
|
|
|
|