edit.ctp 1.73 KB
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Form->postLink(
                __('Delete'),
                ['action' => 'delete', $suivi->id],
                ['confirm' => __('Are you sure you want to delete # {0}?', $suivi->id)]
            )
        ?></li>
        <li><?= $this->Html->link(__('List Suivis'), ['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>
        <li><?= $this->Html->link(__('List Documents'), ['controller' => 'Documents', 'action' => 'index']) ?></li>
        <li><?= $this->Html->link(__('New Document'), ['controller' => 'Documents', 'action' => 'add']) ?></li>
    </ul>
</nav>
<div class="suivis form large-9 medium-8 columns content">
    <?= $this->Form->create($suivi) ?>
    <fieldset>
        <legend><?= __('Edit Suivi') ?></legend>
        <?php
            echo $this->Form->input('materiel_id', ['options' => $materiels]);
            echo $this->Form->input('date_controle', ['empty' => true]);
            echo $this->Form->input('date_prochain_controle', ['empty' => true]);
            echo $this->Form->input('type_intervention');
            echo $this->Form->input('organisme');
            echo $this->Form->input('frequence');
            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>