Blame view

src/Template/Users/index.ctp 1.95 KB
64fba1a2   Alexandre   Base du projet : ...
1

96b028a1   Alexandre   Migration de tout...
2
3
<div class="users index">
<?php echo '<h2><i class="icon-list"></i> Liste des utilisateurs privilégiés</h2>'; ?>
6c4edfa3   Alexandre   First Commit LabI...
4
5
6
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
6c4edfa3   Alexandre   First Commit LabI...
7
                <th><?= $this->Paginator->sort('nom') ?></th>
6c4edfa3   Alexandre   First Commit LabI...
8
9
                <th><?= $this->Paginator->sort('role') ?></th>
                <th><?= $this->Paginator->sort('groupes_metier_id') ?></th>
96b028a1   Alexandre   Migration de tout...
10
                <th class="actions"><?= __('') ?></th>
6c4edfa3   Alexandre   First Commit LabI...
11
12
13
            </tr>
        </thead>
        <tbody>
64fba1a2   Alexandre   Base du projet : ...
14
            <?php foreach ($users as $user): ?>
6c4edfa3   Alexandre   First Commit LabI...
15
            <tr>
96b028a1   Alexandre   Migration de tout...
16
                <td><?= $this->Html->link($user->nom, ['action' => 'view', $user->id]) ?></td>
64fba1a2   Alexandre   Base du projet : ...
17
                <td><?= h($user->role) ?></td>
96b028a1   Alexandre   Migration de tout...
18
19
20
21
22
23
                <td><?= $user->has('groupes_metier') ? h($user->groupes_metier->nom) : '' ?></td>

                <td class="actions" style="padding: 6px 0;">
                    <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $user->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?>
                    <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $user->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?>
                    <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $user->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $user->id)]) ?>
6c4edfa3   Alexandre   First Commit LabI...
24
                </td>
96b028a1   Alexandre   Migration de tout...
25

6c4edfa3   Alexandre   First Commit LabI...
26
27
28
29
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
96b028a1   Alexandre   Migration de tout...
30
31
32
33
34
35
36

    <h3><?= $this->Paginator->counter(['format' => 'Page {{page}} sur {{pages}}']) ?></h3>
      	
   	<div class="paging">
            <?= $this->Paginator->prev('< ' . __(''), ['class' => 'prev disabled']) ?>
            <?= $this->Paginator->numbers(['separator' => '']) ?>
            <?= $this->Paginator->next(__('') . ' >', ['class' => 'next disabled']) ?>
6c4edfa3   Alexandre   First Commit LabI...
37
    </div>
96b028a1   Alexandre   Migration de tout...
38

6c4edfa3   Alexandre   First Commit LabI...
39
</div>