<?php
/**
 * @var \App\View\AppView $this
 * @var \App\Model\Entity\User $user
 */
?>
<div class="row">
    <div class="column-responsive column-100">
        <div class="users form content">
            <?= $this->Html->link('Listado de usuario', ['action' => 'index'], ['class' => 'button float-right']) ?>
            <h3>Usuarios</h3>
            <?= $this->Form->create($user) ?>
            <fieldset>
                <legend>Agregar usuario</legend>
                <?php
                    echo $this->Form->control('username', ['label' => 'Usuario']);
                    echo $this->Form->control('password', ['label' => 'Contraseña']);
                ?>
            </fieldset>
            <?= $this->Form->button(__('Registrar')) ?>
            <?= $this->Form->end() ?>
        </div>
    </div>
</div>
