MDL-65069 core_form: Expose the form's submit's class attribute
[moodle.git] / lib / form / templates / element-submit-inline.mustache
1 {{< core_form/element-template-inline }}
2     {{$element}}
3         {{^element.frozen}}
4         <input type="submit"
5                 class="btn
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.customclass}}{{element.customclass}}{{/element.customclass}}"
12                 name="{{element.name}}"
13                 id="{{element.id}}"
14                 value="{{element.value}}"
15                 {{{element.attributes}}} >
16         {{/element.frozen}}
17     {{/element}}
18 {{/ core_form/element-template-inline }}