mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR: added styling hook for required identifier
This commit is contained in:
parent
86b4df4953
commit
ae8e0fa01a
@ -299,7 +299,7 @@ class UserDefinedForm_Controller extends Page_Controller {
|
|||||||
$fieldToAdd->addExtraClass('requiredField');
|
$fieldToAdd->addExtraClass('requiredField');
|
||||||
|
|
||||||
if(self::$required_identifier) {
|
if(self::$required_identifier) {
|
||||||
$fieldToAdd->setLeftTitle($fieldToAdd->getLeftTitle . ' '. self::$required_identifier);
|
$fieldToAdd->setLeftTitle($fieldToAdd->getLeftTitle . ' <span class="requiredIdentifier">'. self::$required_identifier . '</span>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user