first functional demo
This commit is contained in:
44
CakePHP/templates/Users/view.php
Normal file
44
CakePHP/templates/Users/view.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \App\Model\Entity\User $user
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $this->Html->link(__('Edit User'), ['action' => 'edit', $user->id], ['class' => 'side-nav-item']) ?>
|
||||
<?= $this->Form->postLink(__('Delete User'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id), 'class' => 'side-nav-item']) ?>
|
||||
<?= $this->Html->link(__('List Users'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||||
<?= $this->Html->link(__('New User'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column-responsive column-80">
|
||||
<div class="users view content">
|
||||
<h3><?= h($user->id) ?></h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th><?= __('Nick') ?></th>
|
||||
<td><?= h($user->nick) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('First') ?></th>
|
||||
<td><?= h($user->first) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Last') ?></th>
|
||||
<td><?= h($user->last) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Id') ?></th>
|
||||
<td><?= $this->Number->format($user->id) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Is Admin') ?></th>
|
||||
<td><?= $user->is_admin ? __('Yes') : __('No'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user