MDL-65069 core_form: Expose the form's submit's class attribute
[moodle.git] / lib / form / templates / element-submit.mustache
CommitLineData
344321e1
DW
1{{< core_form/element-template }}
2 {{$element}}
63e4df60
DW
3 {{^element.frozen}}
4 <input type="submit"
344321e1 5 class="btn
e455d6f4
P
6 {{^element.customclass}}
7 {{^element.secondary}}btn-primary{{/element.secondary}}
8 {{#element.secondary}}btn-secondary{{/element.secondary}}
9 {{/element.customclass}}
10 {{#error}} btn-danger {{/error}}
11 {{element.extraclasses}}
12 {{#element.customclass}}{{element.customclass}}{{/element.customclass}}"
91bda4cd
DW
13 name="{{element.name}}"
14 id="{{element.id}}"
15 {{#error}}
16 autofocus aria-describedby="id_error_{{element.name}}"
17 {{/error}}
344321e1
DW
18 value="{{element.value}}"
19 {{{element.attributes}}} >
63e4df60 20 {{/element.frozen}}
344321e1 21 {{/element}}
ce18fb1e 22{{/ core_form/element-template }}