add.ctp
1.49 KB
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Emprunts'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Materiels'), ['controller' => 'Materiels', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Materiel'), ['controller' => 'Materiels', 'action' => 'add']) ?></li>
</ul>
</nav>
<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>