Blame view

src/Template/SurCategories/index.ctp 2.22 KB
64fba1a2   Alexandre   Base du projet : ...
1

96b028a1   Alexandre   Migration de tout...
2
3
<div class="surCategories index">
<?php echo '<h2><i class="icon-list"></i> Liste des domaines</h2>'; ?>
6c4edfa3   Alexandre   First Commit LabI...
4
5
6
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
0ea7290f   Alexandre   Version: 2.5.4.2
7
             	<th class="actions"><?= __('') ?></th>
96b028a1   Alexandre   Migration de tout...
8
                <th><?= $this->Paginator->sort('nom', 'Nom') ?></th>
6c4edfa3   Alexandre   First Commit LabI...
9
10
11
12
13
            </tr>
        </thead>
        <tbody>
            <?php foreach ($surCategories as $surCategory): ?>
            <tr>
0ea7290f   Alexandre   Version: 2.5.4.2
14
                 <td class="actions" style="padding: 6px 0; text-align: left;">
96b028a1   Alexandre   Migration de tout...
15
                    <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $surCategory->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?>
9fc6b8a2   Alexandre   Version: 2.4.2.6
16
                    
08d8dbb0   Alexandre   Version: 2.4.2.14
17
                    <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?>
96b028a1   Alexandre   Migration de tout...
18
                    <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $surCategory->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?>
9fc6b8a2   Alexandre   Version: 2.4.2.6
19
20
21
                    <?php } ?>
                    
                    <?php if (in_array($role, ['Super Administrateur'])) { ?>
96b028a1   Alexandre   Migration de tout...
22
                    <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $surCategory->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $surCategory->id)]) ?>
9fc6b8a2   Alexandre   Version: 2.4.2.6
23
                	<?php } ?>
6c4edfa3   Alexandre   First Commit LabI...
24
                </td>
0ea7290f   Alexandre   Version: 2.5.4.2
25
26
27
                <td class="smallText"><?= $this->Html->link($surCategory->nom, ['action' => 'view', $surCategory->id]) ?></td>


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

4260780b   Alexandre   Migration vue, co...
33
    <p><?= $this->Paginator->counter(['format' => 'Page {{page}} sur {{pages}}']) ?></p>
96b028a1   Alexandre   Migration de tout...
34
35
36
37
38
      	
   	<div class="paging">
            <?= $this->Paginator->prev('< ' . __(''), ['class' => 'prev disabled']) ?>
            <?= $this->Paginator->numbers(['separator' => '']) ?>
            <?= $this->Paginator->next(__('') . ' >', ['class' => 'next disabled']) ?>
6c4edfa3   Alexandre   First Commit LabI...
39
    </div>
96b028a1   Alexandre   Migration de tout...
40

6c4edfa3   Alexandre   First Commit LabI...
41
</div>
4260780b   Alexandre   Migration vue, co...
42
43
44
45
46
47
48
49


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