f561e5ade1db9319a59bfdef87d44ffdf036b7dd
[moodle.git] / theme / boost / templates / core_form / element-selectwithlink.mustache
1 {{< core_form/element-template }}
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}}>{{text}}</option>
13             {{/element.options}}
14         </select>
15         {{/element.frozen}}
16         {{#element.frozen}}
17             {{#element.options}}
18                 {{#selected}}{{text}}{{/selected}}
19             {{/element.options}}
20         {{/element.frozen}}
21         <a class="m-x-1" href="{{{element.link}}}">{{element.linklabel}}</a>
22     {{/element}}
23 {{/ core_form/element-template }}