on-demand release 4.0dev+
[moodle.git] / lib / form / templates / element-submit-inline.mustache
... / ...
CommitLineData
1{{< core_form/element-template-inline }}
2 {{$element}}
3 {{^element.frozen}}
4 <input type="submit"
5 class="btn
6 {{^element.customclassoverride}}
7 {{^element.secondary}}btn-primary{{/element.secondary}}
8 {{#element.secondary}}btn-secondary{{/element.secondary}}
9 {{/element.customclassoverride}}
10 {{#error}} btn-danger {{/error}}
11 {{#element.customclassoverride}}{{element.customclassoverride}}{{/element.customclassoverride}}"
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 }}
19{{# js }}
20 {{^element.frozen}}
21 require(['core_form/submit'], function(Submit) {
22 Submit.init("{{ element.id }}");
23 });
24 {{/element.frozen}}
25{{/ js }}