index.ctp
1.86 KB
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
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Organisme'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Materiels'), ['controller' => 'Materiels', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Materiel'), ['controller' => 'Materiels', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="organismes index large-9 medium-8 columns content">
<h3><?= __('Organismes') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th><?= $this->Paginator->sort('id') ?></th>
<th><?= $this->Paginator->sort('nom') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($organismes as $organisme): ?>
<tr>
<td><?= $this->Number->format($organisme->id) ?></td>
<td><?= h($organisme->nom) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $organisme->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $organisme->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $organisme->id], ['confirm' => __('Are you sure you want to delete # {0}?', $organisme->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
</ul>
<p><?= $this->Paginator->counter() ?></p>
</div>
</div>