Commit 70eac6f5 authored by Kylian ou Nathan's avatar Kylian ou Nathan
Browse files

Up

parent 413d6eba
......@@ -100,6 +100,7 @@ class Profil extends CI_Controller{
$data["nom"] = $this->input->post('nom');
$data["debut"] = $this->input->post('debut');
$data["fin"] = $this->input->post('fin');
$data["state"] = true;
$this->load->view('profil/edit', $data);
}
......@@ -122,9 +123,12 @@ class Profil extends CI_Controller{
redirect("/profil", "refresh");
}
} else {
$data["new"] = true;
}
$data["state"] = isset($data["state"]) ? $data["state"] : array();
$this->load->view('profil/edit', $data);
}
......
......@@ -58,9 +58,7 @@
<?php
if($capteurs){
// TODO : Check si le capteur est activé ou désactivé
foreach($capteurs as $capteur){ ?>
foreach($capteurs as $capteur){ ?>
<label for="capteur_<?= $capteur->id ?>" class="l_r profil_capteur">
<div class="left"><?= $capteur->nom; ?></div>
<div class="right">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment