Merge pull request #1960 from open-sausages/pulls/4.0/fine-tune-buttons

FIX Fine-tune button styles
This commit is contained in:
Damian Mooyman 2017-09-13 10:58:50 +12:00 committed by GitHub
commit f756a98989
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'))