Commit d0eda45b by Scott Committed by GitHub

Merge pull request #456 from pupi1985/patch-69

Add form file field to base theme
parents 2023e5eb b7a5d3e2
......@@ -1087,6 +1087,10 @@ class qa_html_theme_base
$this->form_number($field, $style);
break;
case 'file':
$this->form_file($field, $style);
break;
case 'select':
$this->form_select($field, $style);
break;
......@@ -1232,6 +1236,11 @@ class qa_html_theme_base
$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:
* 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