mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #34 from scott1702/master
Make 'Mark as reviewed' button look more like an action
This commit is contained in:
commit
1574ae1a05
@ -129,6 +129,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
|||||||
$ReviewNotes = LiteralField::create("ReviewNotes", "<textarea class=\"no-change-track\" id=\"Form_EditForm_ReviewNotes\" name=\"ReviewNotes\" placeholder=\"" . _t("ContentReview.COMMENTS", "(optional) Add comments...") . "\" class=\"text\"></textarea>");
|
$ReviewNotes = LiteralField::create("ReviewNotes", "<textarea class=\"no-change-track\" id=\"Form_EditForm_ReviewNotes\" name=\"ReviewNotes\" placeholder=\"" . _t("ContentReview.COMMENTS", "(optional) Add comments...") . "\" class=\"text\"></textarea>");
|
||||||
|
|
||||||
$quickReviewAction = FormAction::create("savereview", _t("ContentReview.MARKREVIEWED", "Mark as reviewed"))
|
$quickReviewAction = FormAction::create("savereview", _t("ContentReview.MARKREVIEWED", "Mark as reviewed"))
|
||||||
|
->setAttribute("data-icon", "pencil")
|
||||||
->setAttribute("data-text-alternate", _t("ContentReview.MARKREVIEWED", "Mark as reviewed"));
|
->setAttribute("data-text-alternate", _t("ContentReview.MARKREVIEWED", "Mark as reviewed"));
|
||||||
|
|
||||||
$allFields = CompositeField::create($reviewTitle, $ReviewNotes, $quickReviewAction)
|
$allFields = CompositeField::create($reviewTitle, $ReviewNotes, $quickReviewAction)
|
||||||
|
@ -34,3 +34,30 @@
|
|||||||
.cms .ss-ui-action-tabset.action-menus.ss-tabset .ui-tabs-panel.contentreview-tab {
|
.cms .ss-ui-action-tabset.action-menus.ss-tabset .ui-tabs-panel.contentreview-tab {
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cms .ss-ui-action-tabset.action-menus.ss-tabset .ui-tabs-panel .review-notes button {
|
||||||
|
margin: 4px 10px 8px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #393939;
|
||||||
|
border: 1px solid #c0c0c2;
|
||||||
|
border-bottom: 1px solid #a6a6a9;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
background: linear-gradient(#ffffff, #d9d9d9);
|
||||||
|
text-shadow: white 0 1px 1px;
|
||||||
|
width: auto;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cms .ss-ui-action-tabset.action-menus.ss-tabset .ui-tabs-panel .review-notes button:hover,
|
||||||
|
.cms .ss-ui-action-tabset.action-menus.ss-tabset .ui-tabs-panel .review-notes button:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
background: linear-gradient(#ffffff, #e6e6e6);
|
||||||
|
box-shadow: 0 0 5px #b3b3b3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cms .ss-ui-action-tabset.action-menus.ss-tabset .ui-tabs-panel .review-notes button .ui-button-text {
|
||||||
|
padding: .4em 1em .4em 2.1em;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user