view.ctp 3.11 KB
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('Edit Emprunt'), ['action' => 'edit', $emprunt->id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete Emprunt'), ['action' => 'delete', $emprunt->id], ['confirm' => __('Are you sure you want to delete # {0}?', $emprunt->id)]) ?> </li>
        <li><?= $this->Html->link(__('List Emprunts'), ['action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Emprunt'), ['action' => 'add']) ?> </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 view large-9 medium-8 columns content">
    <h3><?= h($emprunt->id) ?></h3>
    <table class="vertical-table">
        <tr>
            <th><?= __('Materiel') ?></th>
            <td><?= $emprunt->has('materiel') ? $this->Html->link($emprunt->materiel->id, ['controller' => 'Materiels', 'action' => 'view', $emprunt->materiel->id]) : '' ?></td>
        </tr>
        <tr>
            <th><?= __('Laboratoire') ?></th>
            <td><?= h($emprunt->laboratoire) ?></td>
        </tr>
        <tr>
            <th><?= __('E Lieu Stockage') ?></th>
            <td><?= h($emprunt->e_lieu_stockage) ?></td>
        </tr>
        <tr>
            <th><?= __('E Lieu Detail') ?></th>
            <td><?= h($emprunt->e_lieu_detail) ?></td>
        </tr>
        <tr>
            <th><?= __('Nom Emprunteur') ?></th>
            <td><?= h($emprunt->nom_emprunteur) ?></td>
        </tr>
        <tr>
            <th><?= __('Email Emprunteur') ?></th>
            <td><?= h($emprunt->email_emprunteur) ?></td>
        </tr>
        <tr>
            <th><?= __('Tel') ?></th>
            <td><?= h($emprunt->tel) ?></td>
        </tr>
        <tr>
            <th><?= __('Commentaire') ?></th>
            <td><?= h($emprunt->commentaire) ?></td>
        </tr>
        <tr>
            <th><?= __('Nom Createur') ?></th>
            <td><?= h($emprunt->nom_createur) ?></td>
        </tr>
        <tr>
            <th><?= __('Nom Modificateur') ?></th>
            <td><?= h($emprunt->nom_modificateur) ?></td>
        </tr>
        <tr>
            <th><?= __('Id') ?></th>
            <td><?= $this->Number->format($emprunt->id) ?></td>
        </tr>
        <tr>
            <th><?= __('Date Emprunt') ?></th>
            <td><?= h($emprunt->date_emprunt) ?></td>
        </tr>
        <tr>
            <th><?= __('Date Retour Emprunt') ?></th>
            <td><?= h($emprunt->date_retour_emprunt) ?></td>
        </tr>
        <tr>
            <th><?= __('Created') ?></th>
            <td><?= h($emprunt->created) ?></td>
        </tr>
        <tr>
            <th><?= __('Modified') ?></th>
            <td><?= h($emprunt->modified) ?></td>
        </tr>
        <tr>
            <th><?= __('Emprunt Interne') ?></th>
            <td><?= $emprunt->emprunt_interne ? __('Yes') : __('No'); ?></td>
        </tr>
    </table>
</div>