From 9e88f30d1e33d97ad3b4ad9370fcceae3573ad67 Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy <mattgu74@gmail.com> Date: Wed, 18 Jun 2014 11:21:03 +0200 Subject: [PATCH] debug --- class/boolField.php | 6 ++---- controller/personne.php | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/class/boolField.php b/class/boolField.php index e1845d7..27810b9 100644 --- a/class/boolField.php +++ b/class/boolField.php @@ -2,10 +2,8 @@ class BoolField extends Field { public function html($form) { - $html = '<div class = "form-group"> - <label for = "form'.$this->name.'">'.ucfirst($this->name).'</label> - <input type = "checkbox" class="form-control" name = "'.$this->name.'" value ="'.$this->value.'"> - </div>'; + if($this->value) { $checked="checked"; } else { $checked = false; } + $html = '<div class="checkbox"> <label> <input type="checkbox" name="'.$this->name.'" '.$checked.'>'.ucfirst($this->name).'</label> </div>'; return $html; } diff --git a/controller/personne.php b/controller/personne.php index 6ffee96..9b1465f 100644 --- a/controller/personne.php +++ b/controller/personne.php @@ -29,8 +29,6 @@ switch($action) { case "addPersonnel": $employe = new Employe(); $formConf = $employe->getForm(); - print_r($employe->_specialFields); - die(); include 'view/form.php'; break; case "addClient": -- GitLab