mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1960 from open-sausages/pulls/4.0/fine-tune-buttons
FIX Fine-tune button styles
This commit is contained in:
commit
f756a98989
@ -200,7 +200,9 @@ class CMSPageHistoryController extends CMSMain
|
|||||||
$revert = FormAction::create(
|
$revert = FormAction::create(
|
||||||
'doRollback',
|
'doRollback',
|
||||||
_t('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController.REVERTTOTHISVERSION', 'Revert to this version')
|
_t('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController.REVERTTOTHISVERSION', 'Revert to this version')
|
||||||
)->setUseButtonTag(true)
|
)
|
||||||
|
->setUseButtonTag(true)
|
||||||
|
->addExtraClass('font-icon-back-in-time')
|
||||||
);
|
);
|
||||||
$actions->setForm($form);
|
$actions->setForm($form);
|
||||||
$form->setActions($actions);
|
$form->setActions($actions);
|
||||||
|
@ -2253,7 +2253,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// "save", supports an alternate state that is still clickable, but notifies the user that the action is not needed.
|
// "save", supports an alternate state that is still clickable, but notifies the user that the action is not needed.
|
||||||
$noChangesClasses = 'btn-outline-secondary font-icon-check-mark';
|
$noChangesClasses = 'btn-outline-primary font-icon-tick';
|
||||||
if ($canEdit && $isOnDraft) {
|
if ($canEdit && $isOnDraft) {
|
||||||
$majorActions->push(
|
$majorActions->push(
|
||||||
FormAction::create('save', _t(__CLASS__.'.BUTTONSAVED', 'Saved'))
|
FormAction::create('save', _t(__CLASS__.'.BUTTONSAVED', 'Saved'))
|
||||||
|
Loading…
Reference in New Issue
Block a user