Added comment form

This commit is contained in:
Antonio de la Rosa 2016-09-14 05:47:23 +02:00
parent 99ea628d1a
commit fec11728d2

View file

@ -34,13 +34,14 @@ class BaseForm {
$this->type='text';
$this->required=0;
$this->field=new CharField();
$this->comment_form='';
$this->txt_error = I18n::lang('common', 'error_in_field', 'Error in field');
}
public function form()
{
return '<input type="'.$this->type.'" id="'.$this->name.'_field_form" class="'.$this->css.'" name="'.$this->name.'" value="'.$this->setform($this->default_value).'">';
return '<input type="'.$this->type.'" id="'.$this->name.'_field_form" class="'.$this->css.'" name="'.$this->name.'" value="'.$this->setform($this->default_value).'"> '.$this->comment_form;
}