MDL-56577 core_form: Let other option attrs to be set in select elements
[moodle.git] / theme / boost / templates / core_form / element-select-inline.mustache
1 {{< core_form/element-template-inline }}
2     {{$element}}
3         {{^element.frozen}}
4     <select class="custom-select {{#error}}form-control-danger{{/error}}" name="{{element.name}}"
5         id="{{element.id}}"
6         {{#element.multiple}}multiple{{/element.multiple}}
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}} {{#disabled}}disabled{{/disabled}} {{{optionattributes}}}>{{text}}</option>
13         {{/element.options}}
14     </select>
15         {{/element.frozen}}
16         {{#element.frozen}}
17             {{#element.options}}
18                 {{#selected}}
19                     {{text}}
20                     {{^element.hardfrozen}}
21                         <input type="hidden" name="{{element.name}}" value="{{value}}" id="{{element.id}}">
22                     {{/element.hardfrozen}}
23                 {{/selected}}
24             {{/element.options}}
25         {{/element.frozen}}
26     {{/element}}
27 {{/ core_form/element-template-inline }}