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.
63 righe
2.9 KiB
63 righe
2.9 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' => __('Dettagli Concessionario'), |
|
'icon' => 'fa fa-info', |
|
], |
|
]); |
|
?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"><?= __('Dettagli Dati Concessionario') ?></h2> |
|
</div> |
|
<?php echo $this->Form->create($applicant, ['role' => 'form', 'type' => 'file']); ?> |
|
<div class="card-body"> |
|
<?php |
|
echo $this->Form->control('name', ['label' => __('Nome'), 'type' => 'text', 'required' => true]); |
|
echo $this->Form->control('surname', ['label' => __('Cognome'), 'type' => 'text', 'required' => true]); |
|
echo $this->Form->control('tax_code', ['label' => __('Codice fiscale'), 'type' => 'text', 'required' => true]); |
|
echo $this->Form->control('company_name', ['label' => __('Ragione sociale'), 'type' => 'text']); |
|
echo $this->Form->control('vat_number', ['label' => __('Partita IVA'), 'type' => 'text']); |
|
echo $this->Form->control('address', ['label' => __('Indirizzo'), 'type' => 'text', 'required' => true]); |
|
echo $this->Form->control('district', ['label' => __('Comune'), 'type' => 'text', 'required' => true]); |
|
echo $this->Form->control('province', ['label' => __('Provincia'), 'type' => 'text', 'required' => true]); |
|
echo $this->Form->control('pec_address', ['label' => __('Indirizzo PEC'), 'type' => 'text']); |
|
echo $this->Form->control('email_address', ['label' => __('Indirizzo email'), 'type' => 'text']); |
|
?> |
|
</div> |
|
<?php |
|
echo $this->Form->end(); |
|
?> |
|
<div class="card-footer d-flex"> |
|
<div class="ml-auto"> |
|
<?php |
|
if(isset($applicant)){ |
|
echo $this->Html->link(__('Modifica'), ['action' => 'citizen_edit', $applicant->id], ['class' => 'btn btn-warning btn-xs', 'style' => 'margin-right:1rem']); |
|
echo $this->Html->link(__('Inserisci una nuova richiesta'), ['controller' => 'WaterDrawingPaperworks', 'action' => 'citizen_submit_paperwork', $applicant->id], ['class' => 'btn btn-info btn-xs', 'style' => 'margin-right:1rem', 'confirm' => __('Vuoi procedere alla creazione di una nuova pratica?')]); |
|
}else{ |
|
echo $this->Html->link(__('Crea'), ['action' => 'citizen_add'], ['class' => 'btn btn-warning btn-xs', 'style' => 'margin-right:1rem']); |
|
} |
|
?> |
|
</div> |
|
</div> |
|
</div> |
|
<script> |
|
window.addEventListener('DOMContentLoaded', function() { |
|
document.querySelectorAll('.form-control').forEach(input => input.setAttribute('disabled', true)); |
|
}); |
|
</script>
|
|
|