3 * @var \App\View\AppView $this
6 <nav class="large-3 medium-4 columns" id="actions-sidebar">
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>
13 <div class="locations index large-9 medium-8 columns content">
14 <h3><?= __('Locations') ?></h3>
15 <table cellpadding="0" cellspacing="0">
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>
27 <?php foreach ($locations as $location): ?>
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>
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)]) ?>
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') . ' >>') ?>
53 <p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>