MDL-53848 form: hide entire group if hideIf test is applied to the group
[moodle.git] / theme / boost / templates / core_form / 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}}>
344321e1
DW
2 <label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
3 {{{label}}} {{{helpbutton}}}
348aed80 4 {{#required}}<abbr class="initialism text-danger" title="{{#str}}required{{/str}}">{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}</abbr>{{/required}}
d91cbe1e 5 {{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">!</abbr>{{/advanced}}
344321e1 6 </label>
0a501e1b 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}}
2ede86d7 17require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 18 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 19});
bffc0ef1 20{{/js}}