{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template core_form/element-template Template for the form element wrapper template. Context variables required for this template: * label * required * advanced * helpbutton * error * element * id * name Example context (json): { "label": "Course full name", "required": true, "advanced": false, "error": null, "element": { "wrapperid": "fitem_id_fullname", "id": "id_fullname", "name": "fullname" } } }}
{{#required}}{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}{{/required}} {{#advanced}}!{{/advanced}} {{{helpbutton}}} {{^element.staticlabel}} {{/element.staticlabel}} {{#element.staticlabel}} {{{label}}} {{/element.staticlabel}}
{{$ element }} {{/ element }}
{{#js}} require(['theme_boost/form-display-errors'], function(module) { module.enhance({{#quote}}{{element.id}}{{/quote}}); }); {{/js}}