Skip to content
Browse files

MINOR Misc styling fixes around dialogs and "add page" styling

  • Loading branch information...
1 parent 7a1e25b commit e35991b363b9771e5fcde78628867f8e3421ae8f @chillu chillu committed Jan 3, 2012
View
2 code/controllers/CMSMain.php
@@ -1096,7 +1096,7 @@ function AddForm() {
$this->extend('updatePageOptions', $fields);
$form = new Form($this, "AddForm", $fields, $actions);
- $form->addExtraClass('cms-add-form');
+ $form->addExtraClass('cms-add-form stacked');
return $form;
}
View
4 code/forms/SiteTreeURLSegmentField.php
@@ -39,4 +39,8 @@ function getPage() {
$idField = $this->getForm()->dataFieldByName('ID');
return ($idField && $idField->Value()) ? DataObject::get_by_id('SiteTree', $idField->Value()) : singleton('SiteTree');
}
+
+ function Type() {
+ return 'text sitetreeurlsegment';
+ }
}
View
3 code/model/SiteTree.php
@@ -1822,7 +1822,7 @@ function getCMSFields() {
$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 @@ function getCMSFields() {
)
)
);
+ $htmlField->addExtraClass('stacked');
// Conditional dependent pages tab
if($dependentPagesCount) $tabDependent->setTitle(_t('SiteTree.TABDEPENDENT', "Dependent pages") . " ($dependentPagesCount)");
View
2 templates/Includes/CMSPagesController_Content.ss
@@ -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>

0 comments on commit e35991b

Please sign in to comment.
Something went wrong with that request. Please try again.