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.
 
 
 
 
 
 

62 righe
2.3 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' => __('Dettaglio Pratica di attingimento'),
'icon' => 'fa fa-list',
'url' => ['controller' => 'WaterDrawingPaperworks', 'action' => 'view', $water_drawing_paperwork_id],
],
[
'title' => __('Aggiungi il documento PEC'),
'icon' => 'fa fa-plus',
],
]);
?>
<div class="card card-primary card-outline">
<div class="card-header d-sm-flex">
<h2 class="card-title"><?= __('Nuovo documento PEC') ?></h2>
</div>
<?php echo $this->Form->create($waterDrawingPaperworkPec, ['role' => 'form', 'type' => 'file']); ?>
<div class="card-body">
<?= $this->Form->hidden('water_drawing_paperwork_id', ['value' => $water_drawing_paperwork_id]) ?>
<?= $this->Form->control('document', ['label' => __('Documento'), 'type' => 'text']) ?>
<?= $this->Form->control('protocol_number', ['label' => __('Numero di protocollo'), 'type' => 'text']) ?>
<?= $this->Form->control('recipient', ['label' => __('Destinatario'), 'type' => 'text']) ?>
<?= $this->Form->control('sender', ['label' => __('Inviato da'), 'type' => 'text']) ?>
<?= $this->Form->control('protocol_date', ['label' => __('Data'), 'type' => 'date', 'style' => 'margin-left: 5px;', 'max' => $today->format('Y-m-d')]) ?>
<?php
echo $this->element('attachments', [
'filepicker' => true,
'viewer' => false,
'currentFilesRemovable' => false,
'tags' => $tags,
'required' => true,
'upload_single' => true,
'accept_only' => ['.pdf']
]);
?>
<?php
echo $this->Form->control('note', ['label' => 'Note:', 'type' => 'textarea']);
?>
</div>
<div class="card-footer d-flex">
<div class="ml-auto">
<?php echo $this->Form->submit(__('Salva'), ['class' => 'btn btn-success']); ?>
</div>
</div>
<?php echo $this->Form->end(); ?>
</div>