From 47e06bd2be28fe999fd018a26244582e4dbba64a Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 26 Jul 2016 10:42:23 +1200 Subject: [PATCH] Adjust layout of page search form --- code/controllers/CMSMain.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 114ea3ab..e7bb29b1 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -314,7 +314,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr public function SearchForm() { // Create the fields $content = new TextField('q[Term]', _t('CMSSearch.FILTERLABELTEXT', 'Search')); - $dateHeader = new HeaderField('q[Date]', _t('CMSSearch.PAGEFILTERDATEHEADING', 'Last edited'), 4); $dateFrom = new DateField( 'q[LastEditedFrom]', _t('CMSSearch.FILTERDATEFROM', 'From') @@ -339,11 +338,10 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr // Group the Datefields $dateGroup = new FieldGroup( - $dateHeader, $dateFrom, $dateTo ); - $dateGroup->setFieldHolderTemplate('FieldGroup_DefaultFieldHolder')->addExtraClass('stacked'); + $dateGroup->setTitle('Last Edited', _t('CMSSearch.PAGEFILTERDATEHEADING', 'Last edited')); // Create the Field list $fields = new FieldList(