adding example apps, fixing powerup issues
[feisty_meow.git] / production / example_apps / zippy_maps / src / Template / Categories / index.ctp
1 <?php
2 /**
3   * @var \App\View\AppView $this
4   */
5
6 use Cake\Log\Log;
7 ?>
8 <nav class="large-3 medium-4 columns" id="actions-sidebar">
9     <ul class="side-nav">
10         <li class="heading"><?= __('Actions') ?></li>
11         <li><?= $this->Html->link(__('New Category'), ['action' => 'add']) ?></li>
12     </ul>
13 </nav>
14 <div class="categories index large-9 medium-8 columns content">
15     <h3><?= __('Categories') ?></h3>
16     <table cellpadding="0" cellspacing="0">
17         <thead>
18             <tr>
19                 <th scope="col"><?= $this->Paginator->sort('id') ?></th>
20                 <th scope="col"><?= $this->Paginator->sort('name') ?></th>
21                 <th scope="col"><?= $this->Paginator->sort('image') ?></th>
22                 <th scope="col"><?= $this->Paginator->sort('created') ?></th>
23                 <th scope="col"><?= $this->Paginator->sort('modified') ?></th>
24                 <th scope="col" class="actions"><?= __('Actions') ?></th>
25             </tr>
26         </thead>
27         <tbody>
28             <?php foreach ($categories as $category): ?>
29             <tr>
30                 <td><?= $this->Number->format($category->id) ?></td>
31                 <td><?= h($category->name) ?></td>
32                 <td><?= h($category->image) ?></td>
33                 <td><?= h($category->created) ?></td>
34                 <td><?= h($category->modified) ?></td>
35                 <td class="actions">
36                     <?= $this->Html->link(__('Map'), ['action' => 'map', $category->id]) ?>
37                     <?= $this->Html->link(__('Center'), ['action' => 'center', $category->id]) ?>
38                     <?= $this->Html->link(__('View'), ['action' => 'view', $category->id]) ?>
39                     <?= $this->Html->link(__('Edit'), ['action' => 'edit', $category->id]) ?>
40                     <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $category->id], ['confirm' => __('Are you sure you want to delete # {0}?', $category->id)]) ?>
41                 </td>
42             </tr>
43             <?php endforeach; ?>
44         </tbody>
45     </table>
46     <div class="paginator">
47         <ul class="pagination">
48             <?= $this->Paginator->first('<< ' . __('first')) ?>
49             <?= $this->Paginator->prev('< ' . __('previous')) ?>
50             <?= $this->Paginator->numbers() ?>
51             <?= $this->Paginator->next(__('next') . ' >') ?>
52             <?= $this->Paginator->last(__('last') . ' >>') ?>
53         </ul>
54         <p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
55     </div>
56 </div>