Blame view

src/Template/Sites/index.ctp 2.13 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
12
13
            </tr>
        </thead>
        <tbody>
            <?php foreach ($sites as $site): ?>
            <tr>
5d0d680d   Alexandre   Version: 2.2.0
14
                <td class="smallText"><?= $this->Html->link($site->nom, ['action' => 'view', $site->id]) ?></td>
96b028a1   Alexandre   Migration de tout...
15
16
17

                <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
18
                    
08d8dbb0   Alexandre   Version: 2.4.2.14
19
                    <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?>
96b028a1   Alexandre   Migration de tout...
20
                    <?= $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
21
22
23
                    <?php } ?>
                    
                    <?php if (in_array($role, ['Super Administrateur'])) { ?>
96b028a1   Alexandre   Migration de tout...
24
                    <?= $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
25
                	<?php } ?>
6c4edfa3   Alexandre   First Commit LabI...
26
                </td>
96b028a1   Alexandre   Migration de tout...
27

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

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