moodle/lib/form/templates/element-submit.mustache

30 lines
1.1 KiB
Plaintext

{{< core_form/element-template }}
{{$element}}
{{^element.frozen}}
<input type="submit"
class="btn
{{^element.customclassoverride}}
{{^element.secondary}}btn-primary{{/element.secondary}}
{{#element.secondary}}btn-secondary{{/element.secondary}}
{{/element.customclassoverride}}
{{#error}} btn-danger {{/error}}
{{element.extraclasses}}
{{#element.customclassoverride}}{{element.customclassoverride}}{{/element.customclassoverride}}"
name="{{element.name}}"
id="{{element.id}}"
{{#error}}
autofocus aria-describedby="{{element.iderror}}"
{{/error}}
value="{{element.value}}"
{{{element.attributes}}} >
{{/element.frozen}}
{{/element}}
{{/ core_form/element-template }}
{{# js }}
{{^element.frozen}}
require(['core_form/submit'], function(Submit) {
Submit.init("{{ element.id }}");
});
{{/element.frozen}}
{{/ js }}