MDL-55417 theme_noname: Update mform templates to re-use javascript
[moodle.git] / theme / noname / templates / core_form / element-autocomplete.mustache
CommitLineData
344321e1
DW
1{{< core_form/element-template }}
2 {{$element}}
91bda4cd
DW
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}}
344321e1 10 {{{element.attributes}}} >
91bda4cd
DW
11 {{#element.options}}
12 <option value="{{value}}" {{#selected}}selected{{/selected}}>{{text}}</option>
13 {{/element.options}}
14 </select>
344321e1
DW
15 {{/element}}
16{{/ core_form/element-template }}