1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <?= $this->assign('title','Liste Associations');?>
<?= $this->element('menu') ?>
<div class="container">
<div class="page-header">
<h2>Liste des associations</h2>
</div>
<table class="table table-striped table-hover">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('section_id') ?></th>
<th scope="col"><?= $this->Paginator->sort('name', ['label' => 'Nom Association']) ?></th>
<th scope="col"><?= $this->Paginator->sort('ville') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($associations as $association): ?>
<tr>
<td><?= $this->Number->format($association->id) ?></td>
<td><?= $association->has('section') ? $this->Html->link($association->section->name, ['controller' => 'Sections', 'action' => 'view', $association->section->id]) : '' ?></td>
<td><?= h($association->name) ?></td>
<td><?= h($association->ville) ?></td>
<td width="16%"class="actions">
<?= $this->Html->link(__('Détail'), ['action' => 'view', $association->id], ["class" => "badge badge-info"]) ?>
<?= $this->Html->link(__('Modif.'), ['action' => 'edit', $association->id], ["class" => "badge badge-warning"]) ?>
<?= $this->Form->postLink(__('Suppr'), ['action' => 'delete', $association->id], ['confirm' => __('Etes-vous sûr de vouloir supprimer l\'association # {0}?', $association->id), "class" => "badge badge-danger"]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('Première')) ?>
<?= $this->Paginator->prev('< ' . __('Précédente')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('Suivante') . ' >') ?>
<?= $this->Paginator->last(__('Dernière') . ' >>') ?>
</ul>
</div>
</div> |
Partager