MDL-55417 forms: Clean up form element template patch
[moodle.git] / theme / noname / templates / core_form / element-autocomplete.mustache
1 {{< core_form/element-template }}
2     {{$element}}
3         <select class="custom-select {{#error}}form-control-danger{{/error}}" name="{{element.name}}"
4             id="{{element.id}}"
5             {{#element.multiple}}multiple{{/element.multiple}}
6             {{#element.frozen}}readonly disabled{{/element.frozen}}
7             {{#error}}
8                 autofocus aria-describedby="id_error_{{element.name}}"
9             {{/error}}
10             {{{element.attributes}}} >
11             {{#element.options}}
12             <option value="{{value}}" {{#selected}}selected{{/selected}}>{{text}}</option>
13             {{/element.options}}
14         </select>
15     {{/element}}
16 {{/ core_form/element-template }}