mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Misc styling fixes around dialogs and "add page" styling
This commit is contained in:
parent
7a1e25ba71
commit
e35991b363
@ -1096,7 +1096,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$this->extend('updatePageOptions', $fields);
|
||||
|
||||
$form = new Form($this, "AddForm", $fields, $actions);
|
||||
$form->addExtraClass('cms-add-form');
|
||||
$form->addExtraClass('cms-add-form stacked');
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
@ -39,4 +39,8 @@ class SiteTreeURLSegmentField extends TextField {
|
||||
$idField = $this->getForm()->dataFieldByName('ID');
|
||||
return ($idField && $idField->Value()) ? DataObject::get_by_id('SiteTree', $idField->Value()) : singleton('SiteTree');
|
||||
}
|
||||
|
||||
function Type() {
|
||||
return 'text sitetreeurlsegment';
|
||||
}
|
||||
}
|
@ -1822,7 +1822,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
$tabMain = new Tab('Main',
|
||||
new TextField("Title", $this->fieldLabel('Title')),
|
||||
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
|
||||
new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", PR_MEDIUM, 'HTML editor title'))
|
||||
$htmlField = new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", PR_MEDIUM, 'HTML editor title'))
|
||||
),
|
||||
$tabMeta = new Tab('Metadata',
|
||||
new SiteTreeURLSegmentField("URLSegment", $this->fieldLabel('URLSegment') . $urlHelper),
|
||||
@ -1841,6 +1841,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
)
|
||||
)
|
||||
);
|
||||
$htmlField->addExtraClass('stacked');
|
||||
|
||||
// Conditional dependent pages tab
|
||||
if($dependentPagesCount) $tabDependent->setTitle(_t('SiteTree.TABDEPENDENT', "Dependent pages") . " ($dependentPagesCount)");
|
||||
|
@ -40,7 +40,7 @@
|
||||
$SiteTreeAsUL
|
||||
</div>
|
||||
|
||||
<div class="ss-dialog cms-page-add-form-dialog" id="cms-page-add-form" title="<% _t('CMSMain.AddNew', 'Add new page') %>">
|
||||
<div class="ss-dialog cms-page-add-form-dialog cms-dialog-content" id="cms-page-add-form" title="<% _t('CMSMain.AddNew', 'Add new page') %>">
|
||||
$AddForm
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user