first functional demo

This commit is contained in:
2025-05-09 20:50:34 +02:00
parent b6fd7876d3
commit b8e5730ec0
49 changed files with 7281 additions and 25 deletions

View 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>