Commit b7a5d3e2 by pupi1985

Add form file field to base theme

parent e0e124c4
...@@ -1087,6 +1087,10 @@ class qa_html_theme_base ...@@ -1087,6 +1087,10 @@ class qa_html_theme_base
$this->form_number($field, $style); $this->form_number($field, $style);
break; break;
case 'file':
$this->form_file($field, $style);
break;
case 'select': case 'select':
$this->form_select($field, $style); $this->form_select($field, $style);
break; break;
...@@ -1232,6 +1236,11 @@ class qa_html_theme_base ...@@ -1232,6 +1236,11 @@ class qa_html_theme_base
$this->output('<input '.@$field['tags'].' type="text" value="'.@$field['value'].'" class="qa-form-'.$style.'-number"/>'); $this->output('<input '.@$field['tags'].' type="text" value="'.@$field['value'].'" class="qa-form-'.$style.'-number"/>');
} }
public function form_file($field, $style)
{
$this->output('<input '.@$field['tags'].' type="file" class="qa-form-'.$style.'-file"/>');
}
/** /**
* Output a <select> element. The $field array may contain the following keys: * Output a <select> element. The $field array may contain the following keys:
* options: (required) a key-value array containing all the options in the select. * options: (required) a key-value array containing all the options in the select.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment