Add project

This commit is contained in:
2025-12-01 21:02:58 +01:00
commit 745b10b50f
117 changed files with 11236 additions and 0 deletions

34
templates/Users/edit.php Normal file
View File

@@ -0,0 +1,34 @@
<?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">Operacje</h4>
<?= $this->Form->postLink(
'Usuń',
['action' => 'delete', $user->id],
['confirm' => 'Czy na pewno chcesz usunąć użytkownika nr {0}?', 'class' => 'side-nav-item']
) ?>
<?= $this->Html->link('Lista użytkowników', ['action' => 'index'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="users form content">
<?= $this->Form->create($user) ?>
<fieldset>
<legend>Edytuj użytkownika</legend>
<?php
echo $this->Form->control('name', ['label' => 'Nazwa']);
echo $this->Form->control('email', ['label' => 'Email']);
echo $this->Form->control('password', ['label' => 'Hasło']);
?>
</fieldset>
<?= $this->Form->button('Zapisz') ?>
<?= $this->Form->end() ?>
</div>
</div>
</div>