MDL-55417 forms: Improve some of the new templates for form elements
[moodle.git] / theme / noname / templates / core_form / element-selectwithlink.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         <a class="m-x-1" href="{{{element.link}}}">{{element.linklabel}}</a>
16     {{/element}}
17 {{/ core_form/element-template }}