mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Button styling for "Settings" form
This commit is contained in:
parent
5167e394d4
commit
1301df00d6
@ -129,12 +129,13 @@ class SiteConfig extends DataObject implements PermissionProvider {
|
|||||||
function getCMSActions() {
|
function getCMSActions() {
|
||||||
if (Permission::check('ADMIN') || Permission::check('EDIT_SITECONFIG')) {
|
if (Permission::check('ADMIN') || Permission::check('EDIT_SITECONFIG')) {
|
||||||
$actions = new FieldList(
|
$actions = new FieldList(
|
||||||
new FormAction('save_siteconfig', _t('CMSMain.SAVE','Save'))
|
$saveAction = new FormAction('save_siteconfig', _t('CMSMain.SAVE','Save'))
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$actions = new FieldList();
|
$actions = new FieldList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$saveAction->addExtraClass('ss-ui-action-constructive');
|
||||||
$this->extend('updateCMSActions', $actions);
|
$this->extend('updateCMSActions', $actions);
|
||||||
|
|
||||||
return $actions;
|
return $actions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user