diff options
author | RedMatrix <info@friendica.com> | 2015-01-02 12:10:50 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2015-01-02 12:10:50 +1100 |
commit | 817b54688e8cea4c7671a8326ce4cf815e1b62d6 (patch) | |
tree | b1e398a186c77fa99b67dc6a99195713582fc4a4 /view/tpl/field_select_grouped.tpl | |
parent | db811ca975e6880ff6540a61c216e7e2432ea75e (diff) | |
parent | 85e76773a04995884e798a89cc285f48377bcb62 (diff) | |
download | volse-hubzilla-817b54688e8cea4c7671a8326ce4cf815e1b62d6.tar.gz volse-hubzilla-817b54688e8cea4c7671a8326ce4cf815e1b62d6.tar.bz2 volse-hubzilla-817b54688e8cea4c7671a8326ce4cf815e1b62d6.zip |
Merge pull request #805 from pafcu/moretpl
Move some HTML out to templates
Diffstat (limited to 'view/tpl/field_select_grouped.tpl')
-rw-r--r-- | view/tpl/field_select_grouped.tpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/view/tpl/field_select_grouped.tpl b/view/tpl/field_select_grouped.tpl new file mode 100644 index 000000000..c7fb4f322 --- /dev/null +++ b/view/tpl/field_select_grouped.tpl @@ -0,0 +1,12 @@ + <div class='field select'> + <label for='id_{{$field.0}}'>{{$field.1}}</label> + <select name='{{$field.0}}' id='id_{{$field.0}}'> + {{foreach $field.4 as $group=>$opts}} + <optgroup label='{{$group}}'> + {{foreach $opts as $opt=>$val}} + <option value="{{$opt}}" {{if $opt==$field.2}}selected="selected"{{/if}}>{{$val}}</option>{{/foreach}} + {{/foreach}} + </optgroup> + </select> + <span class='field_help'>{{$field.3}}</span> + </div> |