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 @@
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;
}
......
......@@ -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":
......
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