add.ctp
878 Bytes
<div class="users form large-9 medium-8 columns content">
<?= $this->Form->create($user) ?>
<fieldset>
<legend><?= __('Ajouter un utilisateur') ?></legend>
<?php
echo $this->Form->input('nom');
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('email');
echo $this->Form->input('role', [
'options' => ['Super Administrateur' => 'Super Administrateur', 'Administration Plus' => 'Administration Plus', 'Administration' => 'Administration', 'Responsable' => 'Responsable', 'Utilisateur' => 'Utilisateur']
]);
echo $this->Form->input('groupes_metier_id', ['options' => $groupesMetiers, 'empty' => true]);
?>
</fieldset>
<?= $this->Form->button(__('Ajouter')) ?>
<?= $this->Form->end() ?>
</div>