index.ctp 1.66 KB
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('New Sur Category'), ['action' => 'add']) ?></li>
    </ul>
</nav>
<div class="surCategories index large-9 medium-8 columns content">
    <h3><?= __('Sur Categories') ?></h3>
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <th><?= $this->Paginator->sort('id') ?></th>
                <th><?= $this->Paginator->sort('nom') ?></th>
                <th class="actions"><?= __('Actions') ?></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($surCategories as $surCategory): ?>
            <tr>
                <td><?= $this->Number->format($surCategory->id) ?></td>
                <td><?= h($surCategory->nom) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['action' => 'view', $surCategory->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['action' => 'edit', $surCategory->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $surCategory->id], ['confirm' => __('Are you sure you want to delete # {0}?', $surCategory->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>