mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Update display rules not enabled warning message to be full width
This commit is contained in:
parent
77c47a38fa
commit
7339c1c498
@ -343,14 +343,14 @@ class EditableFormField extends DataObject
|
||||
{
|
||||
// Check display rules
|
||||
if ($this->Required) {
|
||||
return new FieldList(
|
||||
LabelField::create(
|
||||
_t(
|
||||
return FieldList::create(
|
||||
LiteralField::create(
|
||||
'DisplayRulesNotEnabled',
|
||||
'<div class="alert alert-warning">' . _t(
|
||||
__CLASS__.'.DISPLAY_RULES_DISABLED',
|
||||
'Display rules are not enabled for required fields. Please uncheck "Is this field Required?" under "Validation" to re-enable.'
|
||||
)
|
||||
) . '</div>'
|
||||
)
|
||||
->addExtraClass('message warning')
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user