Skip to content
Snippets Groups Projects
Commit 69a69ed7 authored by clement's avatar clement
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents deb261d1 c0b0c641
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