]> git.mxchange.org Git - friendica.git/blob - view/templates/field_combobox.tpl
Merge pull request #703 from fabrixxm/master
[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}}">
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                 <span class='field_help'>{{$field.3}}</span>
17         </div>
18