streams/view/tpl/field_select.tpl

8 lines
370 B
Smarty
Raw Permalink Normal View History

2017-03-31 14:13:58 +00:00
<div class="form-group">
<label for="id_{{$field.0}}">{{$field.1}}</label>
<select class="form-control" name="{{$field.0}}" id="id_{{$field.0}}">
{{foreach $field.4 as $opt=>$val}}<option value="{{$opt}}" {{if $opt==$field.2}}selected="selected"{{/if}}>{{$val}}</option>{{/foreach}}
2011-06-13 16:03:06 +00:00
</select>
2017-03-31 14:13:58 +00:00
<small class="form-text text-muted">{{$field.3}}</small>
2011-06-13 16:03:06 +00:00
</div>