mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #709 from creative-commoners/pulls/5.0/display-rules-message
FIX Update display rules not enabled warning message to be full width
This commit is contained in:
commit
9ca53d1adb
@ -343,14 +343,14 @@ class EditableFormField extends DataObject
|
|||||||
{
|
{
|
||||||
// Check display rules
|
// Check display rules
|
||||||
if ($this->Required) {
|
if ($this->Required) {
|
||||||
return new FieldList(
|
return FieldList::create(
|
||||||
LabelField::create(
|
LiteralField::create(
|
||||||
_t(
|
'DisplayRulesNotEnabled',
|
||||||
|
'<div class="alert alert-warning">' . _t(
|
||||||
__CLASS__.'.DISPLAY_RULES_DISABLED',
|
__CLASS__.'.DISPLAY_RULES_DISABLED',
|
||||||
'Display rules are not enabled for required fields. Please uncheck "Is this field Required?" under "Validation" to re-enable.'
|
'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