FIX Update display rules not enabled warning message to be full width

This commit is contained in:
Robbie Averill 2018-02-02 11:35:04 +13:00
parent 77c47a38fa
commit 7339c1c498

View File

@ -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')
);
}