Form->create($document, ['type' => 'file']) ?>
Editer une photo'; }else { echo '

Editer un document

'; } if(isset($materiel)) { echo $this->Form->input('materiel_id', ['label' => 'N° materiel labo', 'options' => $materiel, 'default' => $this->passedArgs[0], 'readonly' => true]); } else if(isset($suivi)) { echo $this->Form->input('suivi_id', ['label' => 'N° suivi', 'options' => $suivi, 'default' => $this->passedArgs[0], 'readonly' => true]); } echo $this->Form->input('nom'); if(isset($photo)) { echo $this->Form->hidden('type_document_id', ['label' => 'Type', 'options' => $typesD]); } else { echo $this->Form->input('type_document_id', ['label' => 'Type', 'options' => $typesD]); } echo $this->Form->input('description'); echo $this->Form->hidden('chemin_file', ['label' => 'Fichier ('.substr($configuration->taille_max_doc/(1024*1024), 0, 4).' Mo max)', 'type' => 'file']); echo $this->Form->hidden('edit', ['default' => 1]); if(isset($photo)) { echo $this->Form->hidden('photo', ['default' => 1]); } else { echo $this->Form->hidden('photo', ['default' => 0]); } ?>
Form->submit(__('Valider')) ?> Form->end() ?>
element('menu'); echo $this->element('menu_form', [ 'pluralHumanName' => 'Documents' ]); ?>