MDL-55793 theme_noname: Use fixed width container
[moodle.git] / theme / noname / templates / core_form / element-template-inline.mustache
CommitLineData
d6f2ce14 1<div class="form-group {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}}">
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
DW
6 </label>
7 {{$ element }}
8 <!-- Element goes here -->
9 {{/ element }}
10 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
11 {{{error}}}
12 </div>
13</div>
14{{#js}}
4691b2d0
DW
15require(['theme_noname/form-display-errors'], function(module) {
16 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 17});
bffc0ef1 18{{/js}}