Skip to content
Snippets Groups Projects
Commit 9e88f30d authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

debug

parent 2d0ca531
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,8 @@ ...@@ -2,10 +2,8 @@
class BoolField extends Field class BoolField extends Field
{ {
public function html($form) { public function html($form) {
$html = '<div class = "form-group"> if($this->value) { $checked="checked"; } else { $checked = false; }
<label for = "form'.$this->name.'">'.ucfirst($this->name).'</label> $html = '<div class="checkbox"> <label> <input type="checkbox" name="'.$this->name.'" '.$checked.'>'.ucfirst($this->name).'</label> </div>';
<input type = "checkbox" class="form-control" name = "'.$this->name.'" value ="'.$this->value.'">
</div>';
return $html; return $html;
} }
......
...@@ -29,8 +29,6 @@ switch($action) { ...@@ -29,8 +29,6 @@ switch($action) {
case "addPersonnel": case "addPersonnel":
$employe = new Employe(); $employe = new Employe();
$formConf = $employe->getForm(); $formConf = $employe->getForm();
print_r($employe->_specialFields);
die();
include 'view/form.php'; include 'view/form.php';
break; break;
case "addClient": case "addClient":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment