Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / production / example_apps / zippy_maps / src / Template / Categories / view.ctp
1 <?php
2 /**
3   * @var \App\View\AppView $this
4   */
5 use Cake\Log\Log;
6 Log::debug('[got into view template]');
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(__('Map Category'), ['action' => 'map', $category->id]) ?> </li>
12         <li><?= $this->Html->link(__('Edit Category'), ['action' => 'edit', $category->id]) ?> </li>
13         <li><?= $this->Form->postLink(__('Delete Category'), ['action' => 'delete', $category->id], ['confirm' => __('Are you sure you want to delete # {0}?', $category->id)]) ?> </li>
14         <li><?= $this->Html->link(__('List Categories'), ['action' => 'index']) ?> </li>
15         <li><?= $this->Html->link(__('New Category'), ['action' => 'add']) ?> </li>
16     </ul>
17 </nav>
18 <div class="categories view large-9 medium-8 columns content">
19     <h3><?= h($category->name) ?></h3>
20     <table class="vertical-table">
21         <tr>
22             <th scope="row"><?= __('Name') ?></th>
23             <td><?= h($category->name) ?></td>
24         </tr>
25         <tr>
26             <th scope="row"><?= __('Id') ?></th>
27             <td><?= $this->Number->format($category->id) ?></td>
28         </tr>
29         <tr>
30             <th scope="row"><?= __('Image') ?></th>
31             <td><?= h($category->image) ?></td>
32         </tr>
33         <tr>
34             <th scope="row"><?= __('Created') ?></th>
35             <td><?= h($category->created) ?></td>
36         </tr>
37         <tr>
38             <th scope="row"><?= __('Modified') ?></th>
39             <td><?= h($category->modified) ?></td>
40         </tr>
41         <tr>
42                 <th scope="row"><?= __('Locations') ?></th>
43                 <td>
44                 <?php
45                   echo $this->Form->control('locations._ids', [
46                 'type' => 'select',
47                     'multiple' => true,
48                                 'disabled' => true,
49                  'options' => $locationBits,
50                         ]);
51           ?>
52                 </td>
53         </tr>
54         
55     </table>
56 </div>