15 lines
475 B
PHP
15 lines
475 B
PHP
|
|
<?
|
||
|
|
namespace ui\input;
|
||
|
|
|
||
|
|
class Email extends Input {
|
||
|
|
public function render(array $opt = array()): string
|
||
|
|
{
|
||
|
|
return '<div class="form-group form-group-float" data-input="email" data-name="'.$this->name.'" '.$this->getDataInit().'>
|
||
|
|
<label class="form-group-float-label">'.$this->label.'</label>
|
||
|
|
<input type="email" class="form-control" name="'.$this->name.'" placeholder="'.$this->options[Input::PLACEHOLDER].'" value="'.h($this->value).'">
|
||
|
|
</div>';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|