Added comment form
This commit is contained in:
parent
99ea628d1a
commit
fec11728d2
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -95,4 +96,4 @@ class BaseForm {
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue