mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Button styling for "insert" dialogs
This commit is contained in:
parent
add3dfae0d
commit
0cf6421afe
@ -377,7 +377,7 @@ form.member-profile-form #Groups .middleColumn .TreeDropdownField { width: 90%;
|
||||
.ui-dialog label.numeric-label .label-flyout-indicator { position: absolute; left: 26px; margin-top: -18px; overflow: visible; display: block; width: 0; height: 0; border-top: 11px solid transparent; border-left: 7px dashed #7b8c91; border-bottom: 11px solid transparent; }
|
||||
.ui-dialog #ParentID label.left { padding: 8px 0 8px 0; float: left !important; width: 125px; }
|
||||
.ui-dialog #ParentID .middleColumn { width: 320px; }
|
||||
.ui-dialog .Actions { position: absolute; bottom: 10px; right: 10px; float: right; }
|
||||
.ui-dialog .Actions { float: right; }
|
||||
|
||||
/** ------------------------------------------------------------------
|
||||
* Titlebar for pop-up dialog.
|
||||
|
@ -997,9 +997,6 @@ $DialogLabelColor: #7B8C91;
|
||||
}
|
||||
|
||||
.Actions {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
@ -268,11 +268,13 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
)
|
||||
),
|
||||
new FieldList(
|
||||
new FormAction('insert', _t('HtmlEditorField.BUTTONINSERTLINK', 'Insert link')),
|
||||
new FormAction('remove', _t('HtmlEditorField.BUTTONREMOVELINK', 'Remove link'))
|
||||
$removeAction = new FormAction('remove', _t('HtmlEditorField.BUTTONREMOVELINK', 'Remove link')),
|
||||
$insertAction = new FormAction('insert', _t('HtmlEditorField.BUTTONINSERTLINK', 'Insert link'))
|
||||
)
|
||||
);
|
||||
|
||||
$insertAction->addExtraClass('ss-ui-action-constructive');
|
||||
$removeAction->addExtraClass('ss-ui-action-destructive');
|
||||
$contentComposite->addExtraClass('content');
|
||||
|
||||
$form->unsetValidator();
|
||||
@ -332,9 +334,10 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
);
|
||||
|
||||
$actions = new FieldList(
|
||||
new FormAction('insertimage', _t('HtmlEditorField.BUTTONINSERTIMAGE', 'Insert image'))
|
||||
$insertAction = new FormAction('insertimage', _t('HtmlEditorField.BUTTONINSERTIMAGE', 'Insert image'))
|
||||
);
|
||||
|
||||
$insertAction->addExtraClass('ss-ui-action-constructive');
|
||||
|
||||
$form = new Form(
|
||||
$this->controller,
|
||||
"{$this->name}/ImageForm",
|
||||
@ -379,9 +382,10 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
)
|
||||
),
|
||||
new FieldList(
|
||||
new FormAction("insertflash", _t('HtmlEditorField.BUTTONINSERTFLASH', 'Insert Flash'))
|
||||
$insertAction = new FormAction("insertflash", _t('HtmlEditorField.BUTTONINSERTFLASH', 'Insert Flash'))
|
||||
)
|
||||
);
|
||||
$insertAction->addExtraClass('ss-ui-action-constructive');
|
||||
$contentComposite->addExtraClass('content');
|
||||
|
||||
$this->extend('updateFlashForm', $form);
|
||||
|
Loading…
x
Reference in New Issue
Block a user