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