]> git.mxchange.org Git - friendica.git/blob - view/templates/field_combobox.tpl
d3cc75635e16210459649fc925a84ce81b459543
[friendica.git] / view / templates / field_combobox.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6         
7         <div class='field combobox'>
8                 <label for='id_{{$field.0}}' id='id_{{$field.0}}_label'>{{$field.1}}</label>
9                 {{* html5 don't work on Chrome, Safari and IE9
10                 <input id="id_{{$field.0}}" type="text" list="data_{{$field.0}}" >
11                 <datalist id="data_{{$field.0}}" >
12                    {{foreach $field.4 as $opt=>$val}}<option value="{{$val}}">{{/foreach}}
13                 </datalist> *}}
14                 
15                 <input id="id_{{$field.0}}" type="text" value="{{$field.2}}">
16                 <select id="select_{{$field.0}}" onChange="$('#id_{{$field.0}}').val($(this).val())">
17                         <option value="">{{$field.5}}</option>
18                         {{foreach $field.4 as $opt=>$val}}<option value="{{$val}}">{{$val}}</option>{{/foreach}}
19                 </select>
20                 
21                 <span class='field_help'>{{$field.3}}</span>
22         </div>
23