add.ctp 1.03 KB

<div class="emprunts form large-9 medium-8 columns content">
    <?= $this->Form->create($emprunt) ?>
    <fieldset>
        <legend><?= __('Add Emprunt') ?></legend>
        <?php
            echo $this->Form->input('materiel_id', ['options' => $materiels]);
            echo $this->Form->input('date_emprunt', ['empty' => true]);
            echo $this->Form->input('date_retour_emprunt', ['empty' => true]);
            echo $this->Form->input('emprunt_interne');
            echo $this->Form->input('laboratoire');
            echo $this->Form->input('e_lieu_stockage');
            echo $this->Form->input('e_lieu_detail');
            echo $this->Form->input('nom_emprunteur');
            echo $this->Form->input('email_emprunteur');
            echo $this->Form->input('tel');
            echo $this->Form->input('commentaire');
            echo $this->Form->input('nom_createur');
            echo $this->Form->input('nom_modificateur');
        ?>
    </fieldset>
    <?= $this->Form->button(__('Submit')) ?>
    <?= $this->Form->end() ?>
</div>