Blame view

src/Template/Organismes/index.ctp 2.19 KB
64fba1a2   Alexandre   Base du projet : ...
1

96b028a1   Alexandre   Migration de tout...
2
3
<div class="organismes index">
<?php echo '<h2><i class="icon-list"></i> Liste des organismes</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 ($organismes as $organisme): ?>
            <tr>
5d0d680d   Alexandre   Version: 2.2.0
14
                <td class="smallText"><?= $this->Html->link($organisme->nom, ['action' => 'view', $organisme->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', $organisme->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', $organisme->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', $organisme->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $organisme->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' => 'Organismes',
			'singularHumanName' => 'Organisme' ]) ?>
		</div>