Merge branch 'release-2.140.115'
[feisty_meow.git] / production / example_apps / shared_calendar / src / Template / Users / view.ctp
diff --git a/production/example_apps/shared_calendar/src/Template/Users/view.ctp b/production/example_apps/shared_calendar/src/Template/Users/view.ctp
new file mode 100644 (file)
index 0000000..cdfc708
--- /dev/null
@@ -0,0 +1,40 @@
+<?php
+/**
+  * @var \App\View\AppView $this
+  * @var \App\Model\Entity\User $user
+  */
+?>
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+    <ul class="side-nav">
+        <li class="heading"><?= __('Actions') ?></li>
+<!--        <li><?= $this->Html->link(__('Edit User'), ['action' => 'edit', $user->id]) ?> </li> -->
+        <li><?= $this->Form->postLink(__('Delete User'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?> </li>
+        <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?> </li>
+        <li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?> </li>
+    </ul>
+</nav>
+<div class="users view large-9 medium-8 columns content">
+    <h3><?= h($user->name) ?></h3>
+    <table class="vertical-table">
+        <tr>
+            <th scope="row"><?= __('Name') ?></th>
+            <td><?= h($user->name) ?></td>
+        </tr>
+        <tr>
+            <th scope="row"><?= __('Token') ?></th>
+            <td><?= h($user->token) ?></td>
+        </tr>
+        <tr>
+            <th scope="row"><?= __('Id') ?></th>
+            <td><?= $this->Number->format($user->id) ?></td>
+        </tr>
+        <tr>
+            <th scope="row"><?= __('Created') ?></th>
+            <td><?= h($user->created) ?></td>
+        </tr>
+        <tr>
+            <th scope="row"><?= __('Modified') ?></th>
+            <td><?= h($user->modified) ?></td>
+        </tr>
+    </table>
+</div>