MDL-55584 theme_noname: Patching for better feel in grades
[moodle.git] / theme / noname / templates / core_form / element-template.mustache
1 <div class="form-group row {{#error}}has-danger{{/error}} fitem">
2     <label class="col-md-3 col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
3         {{{label}}} {{{helpbutton}}}
4     </label>
5     <div class="col-md-9 form-inline felement">
6         {{$ element }}
7             <!-- Element goes here -->
8         {{/ element }}
9         <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
10             {{{error}}}
11         </div>
12     </div>
13 </div>
14 {{#js}}
15 require(['theme_noname/form-display-errors'], function(module) {
16     module.enhance({{#quote}}{{element.id}}{{/quote}});
17 });
18 {{/js}}