view.ctp 4.23 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 Suivi'), ['action' => 'edit', $suivi->id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete Suivi'), ['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(__('New Suivi'), ['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>
        <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 view large-9 medium-8 columns content">
    <h3><?= h($suivi->id) ?></h3>
    <table class="vertical-table">
        <tr>
            <th><?= __('Materiel') ?></th>
            <td><?= $suivi->has('materiel') ? $this->Html->link($suivi->materiel->id, ['controller' => 'Materiels', 'action' => 'view', $suivi->materiel->id]) : '' ?></td>
        </tr>
        <tr>
            <th><?= __('Type Intervention') ?></th>
            <td><?= h($suivi->type_intervention) ?></td>
        </tr>
        <tr>
            <th><?= __('Organisme') ?></th>
            <td><?= h($suivi->organisme) ?></td>
        </tr>
        <tr>
            <th><?= __('Commentaire') ?></th>
            <td><?= h($suivi->commentaire) ?></td>
        </tr>
        <tr>
            <th><?= __('Nom Createur') ?></th>
            <td><?= h($suivi->nom_createur) ?></td>
        </tr>
        <tr>
            <th><?= __('Nom Modificateur') ?></th>
            <td><?= h($suivi->nom_modificateur) ?></td>
        </tr>
        <tr>
            <th><?= __('Id') ?></th>
            <td><?= $this->Number->format($suivi->id) ?></td>
        </tr>
        <tr>
            <th><?= __('Frequence') ?></th>
            <td><?= $this->Number->format($suivi->frequence) ?></td>
        </tr>
        <tr>
            <th><?= __('Date Controle') ?></th>
            <td><?= h($suivi->date_controle) ?></td>
        </tr>
        <tr>
            <th><?= __('Date Prochain Controle') ?></th>
            <td><?= h($suivi->date_prochain_controle) ?></td>
        </tr>
        <tr>
            <th><?= __('Created') ?></th>
            <td><?= h($suivi->created) ?></td>
        </tr>
        <tr>
            <th><?= __('Modified') ?></th>
            <td><?= h($suivi->modified) ?></td>
        </tr>
    </table>
    <div class="related">
        <h4><?= __('Related Documents') ?></h4>
        <?php if (!empty($suivi->documents)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th><?= __('Id') ?></th>
                <th><?= __('Type Doc') ?></th>
                <th><?= __('Chemin') ?></th>
                <th><?= __('Materiel Id') ?></th>
                <th><?= __('Suivi Id') ?></th>
                <th class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($suivi->documents as $documents): ?>
            <tr>
                <td><?= h($documents->id) ?></td>
                <td><?= h($documents->type_doc) ?></td>
                <td><?= h($documents->chemin) ?></td>
                <td><?= h($documents->materiel_id) ?></td>
                <td><?= h($documents->suivi_id) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Documents', 'action' => 'view', $documents->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Documents', 'action' => 'edit', $documents->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Documents', 'action' => 'delete', $documents->id], ['confirm' => __('Are you sure you want to delete # {0}?', $documents->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
</div>