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

fix

parent d1f71a5e
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,10 @@
class PhoneField extends Field
{
public function html() {
$html = '<div class = "form-group">
<label for = "form'.$this->name.'">
<input type = "tel" name = "'.$this->name.'" value ="'.$this->value.'"> '.$this->label.'
</label>
// Todo, if isset($_POST[$this->name]) && !$this->validate() => Show a error msg explanation for this line.
$html = '<div class="form-group">
<label for="form'.$this->name.'">'.$this->label.'</label>
<input type="tel" name="'.$this->name.'" value="'.$this->value.'">
</div>';
return $html;
}
......
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