]> git.mxchange.org Git - friendica.git/blob - view/templates/field_combobox.tpl
9edc4aeff630fbcdefe1aebffb1f87b5b5ba4d54
[friendica.git] / view / templates / field_combobox.tpl
1         
2         <div class='field combobox'>
3                 <label for='id_{{$field.0}}' id='id_{{$field.0}}_label'>{{$field.1}}</label>
4                 {{* html5 don't work on Chrome, Safari and IE9
5                 <input id="id_{{$field.0}}" type="text" list="data_{{$field.0}}" >
6                 <datalist id="data_{{$field.0}}" >
7                    {{foreach $field.4 as $opt=>$val}}<option value="{{$val}}">{{/foreach}}
8                 </datalist> *}}
9                 
10                 <input id="id_{{$field.0}}" type="text" value="{{$field.2}}" aria-describedby='{{$field.0}}_tip'>
11                 <select id="select_{{$field.0}}" onChange="$('#id_{{$field.0}}').val($(this).val())">
12                         <option value="">{{$field.5}}</option>
13                         {{foreach $field.4 as $opt=>$val}}<option value="{{$val}}">{{$val}}</option>{{/foreach}}
14                 </select>
15                 
16                 {{if $field.3}}
17                 <span class="field_help" role="tooltip" id="{{$field.0}}_tip">{{$field.3}}</span>
18                 {{/if}}
19         </div>
20