}
public function add() {
- if ($this->request->is('manager')) {
+ if ($this->request->is('POST')) {
$this->Manager->create();
if ($this->Manager->save($this->request->data)) {
$this->Session->setFlash(__("L'exploitant a été enregistré."));
<h1>Liste des clients</h1>
-<button onclick="synchronizeCustomersInformation();">Synchronisation</button>
+<!--<button onclick="synchronizeCustomersInformation();">Synchronisation</button>-->
<table>
<tr>
<th>Nom</th>
<?php endforeach; ?>
<?php unset($customer); } ?>
</table>
-
+<!--
<script>
var synchronizeCustomersInformation = function () {
$.ajax({
location.href = "/customers";
});
};
-</script>
\ No newline at end of file
+</script>
+-->
\ No newline at end of file
<tr>
<th>Nom</th>
<th>Identifiant AP</th>
+ <th>Actions</th>
</tr>
<?php if(isset($managers)) { foreach ($managers as $manager): ?>
<td>
<?php
echo $this->Form->postLink(
- 'Supprimer',
+ $this->Html->image('delete.png', array('class' => 'button')),
array('action' => 'delete', $manager['Manager']['id']),
- array('confirm' => 'Etes-vous certain ?')
+ array('escape' => false, 'confirm' => 'Etes-vous certain ?')
);
?>
</td>