Blame view

src/Template/Sites/index.ctp 2.23 KB
64fba1a2   Alexandre   Base du projet : ...
1

96b028a1   Alexandre   Migration de tout...
2
3
<div class="sites index">
<?php echo '<h2><i class="icon-list"></i> Liste des sites</h2>'; ?>
6c4edfa3   Alexandre   First Commit LabI...
4
5
6
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
96b028a1   Alexandre   Migration de tout...
7
8
                <th><?= $this->Paginator->sort('nom', 'Nom') ?></th>
                <th class="actions"><?= __('') ?></th>
6c4edfa3   Alexandre   First Commit LabI...
9
10
11
            </tr>
        </thead>
        <tbody>
b2b6828b   Alexandre   Version: 2.4.6.7
12
13
14
15
16
17
            <?php foreach ($sites as $site): 
            
            if($site->id != 9) {
            ?>
            
            
6c4edfa3   Alexandre   First Commit LabI...
18
            <tr>
5d0d680d   Alexandre   Version: 2.2.0
19
                <td class="smallText"><?= $this->Html->link($site->nom, ['action' => 'view', $site->id]) ?></td>
96b028a1   Alexandre   Migration de tout...
20
21
22

                <td class="actions" style="padding: 6px 0;">
                    <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $site->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?>
9fc6b8a2   Alexandre   Version: 2.4.2.6
23
                    
08d8dbb0   Alexandre   Version: 2.4.2.14
24
                    <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?>
96b028a1   Alexandre   Migration de tout...
25
                    <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $site->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?>
9fc6b8a2   Alexandre   Version: 2.4.2.6
26
27
28
                    <?php } ?>
                    
                    <?php if (in_array($role, ['Super Administrateur'])) { ?>
96b028a1   Alexandre   Migration de tout...
29
                    <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $site->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $site->id)]) ?>
9fc6b8a2   Alexandre   Version: 2.4.2.6
30
                	<?php } ?>
6c4edfa3   Alexandre   First Commit LabI...
31
                </td>
96b028a1   Alexandre   Migration de tout...
32

6c4edfa3   Alexandre   First Commit LabI...
33
            </tr>
b2b6828b   Alexandre   Version: 2.4.6.7
34
35
            <?php } 
            endforeach; ?>
6c4edfa3   Alexandre   First Commit LabI...
36
37
        </tbody>
    </table>
96b028a1   Alexandre   Migration de tout...
38

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

6c4edfa3   Alexandre   First Commit LabI...
47
</div>
4260780b   Alexandre   Migration vue, co...
48
49
50
51
52
53
54

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