Adjust layout of page search form

This commit is contained in:
Damian Mooyman 2016-07-26 10:42:23 +12:00
parent 75d72285c7
commit 47e06bd2be

View File

@ -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(