MDL-55593 theme_noname: Post-prod on preset default styling
[moodle.git] / theme / noname / templates / core_form / element-template-inline.mustache
CommitLineData
63e4df60 1<div class="form-group {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
344321e1
DW
2 <label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
3 {{{label}}} {{{helpbutton}}}
d6f2ce14
DW
4 {{#required}}<abbr class="initialism text-danger" title="{{#str}}required{{/str}}">✲</abbr>{{/required}}
5 {{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">❗</abbr>{{/advanced}}
344321e1 6 </label>
63e4df60 7 <span data-fieldtype="{{element.type}}">
344321e1
DW
8 {{$ element }}
9 <!-- Element goes here -->
10 {{/ element }}
63e4df60 11 </span>
344321e1
DW
12 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
13 {{{error}}}
14 </div>
15</div>
16{{#js}}
4691b2d0
DW
17require(['theme_noname/form-display-errors'], function(module) {
18 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 19});
bffc0ef1 20{{/js}}