adding example apps, fixing powerup issues
[feisty_meow.git] / production / example_apps / shared_calendar / src / Template / Users / index.ctp
1 <?php
2 /**
3   * @var \App\View\AppView $this
4   * @var \App\Model\Entity\User[]|\Cake\Collection\CollectionInterface $users
5   */
6 ?>
7 <nav class="large-3 medium-4 columns" id="actions-sidebar">
8     <ul class="side-nav">
9         <li class="heading"><?= __('Actions') ?></li>
10         <li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?></li>
11     </ul>
12 </nav>
13 <div class="users index large-9 medium-8 columns content">
14     <h3><?= __('Users') ?></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('token') ?></th>
21                 <th scope="col"><?= $this->Paginator->sort('created') ?></th>
22                 <th scope="col"><?= $this->Paginator->sort('modified') ?></th>
23                 <th scope="col" class="actions"><?= __('Actions') ?></th>
24             </tr>
25         </thead>
26         <tbody>
27             <?php foreach ($users as $user): ?>
28             <tr>
29                 <td><?= $this->Number->format($user->id) ?></td>
30                 <td><?= h($user->name) ?></td>
31                 <td><?= h($user->token) ?></td>
32                 <td><?= h($user->created) ?></td>
33                 <td><?= h($user->modified) ?></td>
34                 <td class="actions">
35                     <?= $this->Html->link(__('Calendar'), ['action' => 'showCalendar', $user->id]) ?>
36                                         <?= $this->Html->link(__('View'), ['action' => 'view', $user->id]) ?>                     
37 <!--                      <?= $this->Html->link(__('Edit'), ['action' => 'edit', $user->id]) ?> -->
38                     <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?>
39                     <?= $this->Html->link(__('Revoke'), ['action' => 'revoke', $user->id], ['confirm' => __('Are you *SURE* you want to revoke authorization # {0}?  This will totally drop that authorization, which you cannot re-add unless you are the original user that stored it.', $user->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>