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', ], ]); ?>

Form->create($waterDrawingPaperworkPec, ['role' => 'form', 'type' => 'file']); ?>
Form->hidden('water_drawing_paperwork_id', ['value' => $water_drawing_paperwork_id]) ?> Form->control('document', ['label' => __('Documento'), 'type' => 'text']) ?> Form->control('protocol_number', ['label' => __('Numero di protocollo'), 'type' => 'text']) ?> Form->control('recipient', ['label' => __('Destinatario'), 'type' => 'text']) ?> Form->control('sender', ['label' => __('Inviato da'), 'type' => 'text']) ?> Form->control('protocol_date', ['label' => __('Data'), 'type' => 'date', 'style' => 'margin-left: 5px;', 'max' => $today->format('Y-m-d')]) ?> element('attachments', [ 'filepicker' => true, 'viewer' => false, 'currentFilesRemovable' => false, 'tags' => $tags, 'required' => true, 'upload_single' => true, 'accept_only' => ['.pdf'] ]); ?> Form->control('note', ['label' => 'Note:', 'type' => 'textarea']); ?>
Form->end(); ?>