index.ctp 1.57 KB

<div class="groupesMetiers index large-9 medium-8 columns content">
    <h3><?= __('Groupes Metiers') ?></h3>
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th><?= $this->Paginator->sort('id') ?></th>
                <th><?= $this->Paginator->sort('nom') ?></th>
                <th><?= $this->Paginator->sort('description') ?></th>
                <th class="actions"><?= __('Actions') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($groupesMetiers as $groupesMetier): ?>
            <tr>
                <td><?= $this->Number->format($groupesMetier->id) ?></td>
                <td><?= h($groupesMetier->nom) ?></td>
                <td><?= h($groupesMetier->description) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['action' => 'view', $groupesMetier->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['action' => 'edit', $groupesMetier->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $groupesMetier->id], ['confirm' => __('Are you sure you want to delete # {0}?', $groupesMetier->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <div class="paginator">
        <ul class="pagination">
            <?= $this->Paginator->prev('< ' . __('previous')) ?>
            <?= $this->Paginator->numbers() ?>
            <?= $this->Paginator->next(__('next') . ' >') ?>
        </ul>
        <p><?= $this->Paginator->counter() ?></p>
    </div>
</div>