MDL-55656 theme_noname: Include advanced and required field markup
[moodle.git] / theme / noname / templates / core_form / element-template-inline.mustache
index 08751af..bc20a80 100644 (file)
@@ -1,6 +1,8 @@
-<div class="form-group {{#error}}has-danger{{/error}} fitem">
+<div class="form-group {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}}">
     <label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
         {{{label}}} {{{helpbutton}}}
+        {{#required}}<abbr class="initialism text-danger" title="{{#str}}required{{/str}}">✲</abbr>{{/required}}
+        {{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">❗</abbr>{{/advanced}}
     </label>
         {{$ element }}
             <!-- Element goes here -->