weekly release 4.0dev
[moodle.git] / lib / form / templates / element-template-inline.mustache
CommitLineData
766d6f9a 1<div class="form-group {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}" {{#element.groupname}}data-groupname="{{.}}"{{/element.groupname}}>
acbbe930
SR
2 {{#label}}
3 <label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
4 {{{label}}}
5 </label>
6 {{/label}}
0a501e1b 7 <span data-fieldtype="{{element.type}}">
344321e1
DW
8 {{$ element }}
9 <!-- Element goes here -->
10 {{/ element }}
63e4df60 11 </span>
521989ec 12 <div class="form-control-feedback invalid-feedback" id="{{element.iderror}}" {{#error}} style="display: block;"{{/error}}>
344321e1
DW
13 {{{error}}}
14 </div>
15</div>
16{{#js}}
2ede86d7 17require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 18 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 19});
bffc0ef1 20{{/js}}