Add project
This commit is contained in:
29
templates/Users/add.php
Normal file
29
templates/Users/add.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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->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>Dodaj 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>
|
||||
Reference in New Issue
Block a user