Blame view

src/Template/Users/index.ctp 2.2 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>
5d0d680d   Alexandre   Version: 2.2.0
16
17
18
                <td class="smallText"><?= $this->Html->link($user->nom, ['action' => 'view', $user->id]) ?></td>
                <td class="smallText"><?= h($user->role) ?></td>
                <td class="smallText"><?= $user->has('groupes_metier') ? h($user->groupes_metier->nom) : '' ?></td>
96b028a1   Alexandre   Migration de tout...
19
20
21
22
23

                <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

4260780b   Alexandre   Migration vue, co...
31
    <p><?= $this->Paginator->counter(['format' => 'Page {{page}} sur {{pages}}']) ?></p>
96b028a1   Alexandre   Migration de tout...
32
33
34
35
36
      	
   	<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>
4260780b   Alexandre   Migration vue, co...
40
41
42
43
44
45
46

    	<div class="actions">
			<?php echo $this->element('menu') ?>
			<?php echo $this->element('menu_index', 
			[ 'pluralHumanName' => 'Utilisateurs',
			'singularHumanName' => 'Utilisateur' ]) ?>
		</div>