diff options
author | friendica <info@friendica.com> | 2015-01-01 21:49:01 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-01 21:49:01 -0800 |
commit | 545e47933a0816699c68d98a7742a03260d6a54f (patch) | |
tree | 1590e642e1eb48c76dd7c82b4bab4bb93ddf344d /view/tpl/field_select_grouped.tpl | |
parent | 0286c5a35b7f6fb0f02e50110deb78ae66a028cf (diff) | |
parent | 9d4c4efb5176afe5284bc5c22df277510c64786b (diff) | |
download | volse-hubzilla-545e47933a0816699c68d98a7742a03260d6a54f.tar.gz volse-hubzilla-545e47933a0816699c68d98a7742a03260d6a54f.tar.bz2 volse-hubzilla-545e47933a0816699c68d98a7742a03260d6a54f.zip |
Merge https://github.com/friendica/red into pending_merge
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> |