mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-59775 forms: add femptylabel class to els without labels
This class was present in clean/more but was forgotted in boost
This commit is contained in:
parent
32f9550e85
commit
032674eebc
@ -81,6 +81,7 @@ trait templatable_form_element {
|
||||
$context['extraclasses'] = $extraclasses;
|
||||
$context['type'] = $this->getType();
|
||||
$context['attributes'] = implode(' ', $otherattributes);
|
||||
$context['emptylabel'] = ($this->getLabel() === '');
|
||||
|
||||
// Elements with multiple values need array syntax.
|
||||
if ($this->getAttribute('multiple')) {
|
||||
|
@ -41,7 +41,7 @@
|
||||
}
|
||||
}
|
||||
}}
|
||||
<div class="form-group row {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}" {{#element.groupname}}data-groupname="{{.}}"{{/element.groupname}}>
|
||||
<div class="form-group row {{#error}}has-danger{{/error}} fitem {{#element.emptylabel}}femptylabel{{/element.emptylabel}} {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}" {{#element.groupname}}data-groupname="{{.}}"{{/element.groupname}}>
|
||||
<div class="col-md-3">
|
||||
<span class="pull-xs-right text-nowrap">
|
||||
{{#required}}<abbr class="initialism text-danger" title="{{#str}}required{{/str}}">{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}</abbr>{{/required}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user