FIX Fine-tune button styles

This commit is contained in:
Saophalkun Ponlu 2017-09-11 16:26:16 +12:00 committed by Damian Mooyman
parent 06fda1a9bf
commit 4f3b4f7626
2 changed files with 4 additions and 2 deletions

View File

@ -200,7 +200,9 @@ class CMSPageHistoryController extends CMSMain
$revert = FormAction::create(
'doRollback',
_t('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController.REVERTTOTHISVERSION', 'Revert to this version')
)->setUseButtonTag(true)
)
->setUseButtonTag(true)
->addExtraClass('font-icon-back-in-time')
);
$actions->setForm($form);
$form->setActions($actions);

View File

@ -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.
$noChangesClasses = 'btn-outline-secondary font-icon-check-mark';
$noChangesClasses = 'btn-outline-primary font-icon-tick';
if ($canEdit && $isOnDraft) {
$majorActions->push(
FormAction::create('save', _t(__CLASS__.'.BUTTONSAVED', 'Saved'))