Blame view

src/Template/Users/edit.ctp 1.32 KB
6c4edfa3   Alexandre   First Commit LabI...
1
2
3
4
5
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Form->postLink(
                __('Delete'),
64fba1a2   Alexandre   Base du projet : ...
6
7
                ['action' => 'delete', $user->id],
                ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]
6c4edfa3   Alexandre   First Commit LabI...
8
9
            )
        ?></li>
64fba1a2   Alexandre   Base du projet : ...
10
        <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?></li>
6c4edfa3   Alexandre   First Commit LabI...
11
12
13
14
        <li><?= $this->Html->link(__('List Groupes Metiers'), ['controller' => 'GroupesMetiers', 'action' => 'index']) ?></li>
        <li><?= $this->Html->link(__('New Groupes Metier'), ['controller' => 'GroupesMetiers', 'action' => 'add']) ?></li>
    </ul>
</nav>
64fba1a2   Alexandre   Base du projet : ...
15
16
<div class="users form large-9 medium-8 columns content">
    <?= $this->Form->create($user) ?>
6c4edfa3   Alexandre   First Commit LabI...
17
    <fieldset>
64fba1a2   Alexandre   Base du projet : ...
18
        <legend><?= __('Edit User') ?></legend>
6c4edfa3   Alexandre   First Commit LabI...
19
20
        <?php
            echo $this->Form->input('nom');
64fba1a2   Alexandre   Base du projet : ...
21
22
            echo $this->Form->input('username');
            echo $this->Form->input('password');
6c4edfa3   Alexandre   First Commit LabI...
23
24
25
26
27
28
29
30
            echo $this->Form->input('email');
            echo $this->Form->input('role');
            echo $this->Form->input('groupes_metier_id', ['options' => $groupesMetiers, 'empty' => true]);
        ?>
    </fieldset>
    <?= $this->Form->button(__('Submit')) ?>
    <?= $this->Form->end() ?>
</div>