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.
72 righe
2.8 KiB
72 righe
2.8 KiB
<?php |
|
|
|
use App\WGS\Utils\Dto\ProvinceDistrictCellDto\DistrictCellDto; |
|
use App\WGS\Utils\Dto\ProvinceDistrictCellDto\ProvinceCellDto; |
|
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 Concessionario'), |
|
'icon' => 'fa fa-info', |
|
], |
|
]); |
|
?> |
|
|
|
<div class="card card-primary card-outline"> |
|
<div class="card-header d-sm-flex"> |
|
<h2 class="card-title"><?= __('Dettagli 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->Cell("DistrictProvince", [ |
|
new ProvinceCellDto( |
|
fieldId: 'province', |
|
fieldName: 'province', |
|
formContext: $applicant ?? null, |
|
fieldRequired: true, |
|
disabled: true, |
|
fieldContainerClass: "mb-3", |
|
fieldValue: $applicant->province ?? null, |
|
), |
|
new DistrictCellDto( |
|
fieldId: 'district', |
|
fieldName: 'district', |
|
fieldRequired: true, |
|
disabled: true, |
|
fieldContainerClass: "mb-3", |
|
fieldValue: $applicant->district ?? null, |
|
) |
|
] |
|
); |
|
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> |
|
<script> |
|
window.addEventListener('DOMContentLoaded', function() { |
|
document.querySelectorAll('.form-control').forEach(input => input.setAttribute('disabled', true)); |
|
}); |
|
</script>
|
|
|