MDL-55793 theme_noname: Use fixed width container
[moodle.git] / theme / noname / templates / core_form / element-template-inline.mustache
... / ...
CommitLineData
1<div class="form-group {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}}">
2 <label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
3 {{{label}}} {{{helpbutton}}}
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}}
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}}
15require(['theme_noname/form-display-errors'], function(module) {
16 module.enhance({{#quote}}{{element.id}}{{/quote}});
17});
18{{/js}}