Skip to content
Snippets Groups Projects
Commit 578befc1 authored by goujonpa's avatar goujonpa
Browse files

fix boolfield + add phonefield

parent a163e187
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,10 @@ class BoolField extends Field
{
public function html() {
$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.'">
$html = '<div class = "checkbox">
<label for = "form'.$this->name.'">
<input type = "checkbox" name = "'.$this->name.'" value ="'.$this->value.'"> '.ucfirst($this->name).'
</label>
</div>';
return $html;
}
......
......@@ -3,7 +3,7 @@
class PhoneField extends Field
{
public function html() {
$html = '<div class = "checkbox">
$html = '<div class = "form-group">
<label for = "form'.$this->name.'">
<input type = "tel" name = "'.$this->name.'" value ="'.$this->value.'"> '.ucfirst($this->name).'
</label>
......
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