+++ /dev/null
-<h1>Editer l'historique</h1>
-<?php
- echo $this->Form->create('Historique');
- echo $this->Form->input('installation');
- if(isset($alertes)) {
- echo "Alertes :";
-?>
-<table>
- <tr>
- <th>Date</th>
- <th>Version</th>
- <th>Type</th>
- <!--<th>Message</th>-->
- <th>Actions</th>
- </tr>
- <?php foreach ($alertes as $alerte) { ?>
- <tr>
- <td><?php echo $alerte['Alerte']['creation']; ?></td>
- <td><?php echo $alerte['Alerte']['version']; ?></td>
- <td><?php echo $alerte['Alerte']['nature']; ?></td>
- <!--<td><?php /*echo $alerte['Alerte']['message'];*/ ?></td>-->
- <td>
- <?php
- echo $this->Html->link(
- 'Valider',
- array('controller' => 'historiques', 'action' => 'validerAlerte', $historique['Historique']['id'], $alerte['Alerte']['id'])
- )
- . " - " .
- $this->Html->link(
- 'Refuser',
- array('controller' => 'historiques', 'action' => 'refuserAlerte', $historique['Historique']['id'], $alerte['Alerte']['id'])
- );
- ?>
- </td>
- </tr>
-<?php } ?>
-</table>
-<?php
- }
- echo $this->Form->input('id', array('type' => 'hidden'));
- echo $this->Form->end("Mettre à jour l'historique");
-?>
\ No newline at end of file