mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
This commit is contained in:
parent
e55d8bc5d6
commit
778fd28877
@ -311,9 +311,9 @@ JS
|
|||||||
|
|
||||||
$fields = $context->getSearchFields();
|
$fields = $context->getSearchFields();
|
||||||
$actions = new FieldList(
|
$actions = new FieldList(
|
||||||
Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.CLEAR', 'Clear'))
|
FormAction::create('doSearch', _t('CMSMain_left.ss.APPLY FILTER', 'Apply Filter'))
|
||||||
->addExtraClass('ss-ui-action-minor'),
|
->addExtraClass('ss-ui-action-constructive'),
|
||||||
FormAction::create('doSearch', _t('CMSMain_left.ss.SEARCH', 'Search'))
|
Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.RESET', 'Reset'))
|
||||||
);
|
);
|
||||||
|
|
||||||
$form = new Form($this, 'filter', $fields, $actions);
|
$form = new Form($this, 'filter', $fields, $actions);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* The main "content" area of the CMS.
|
* The main "content" area of the CMS.
|
||||||
@ -177,6 +178,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
$fields = new FieldList(
|
$fields = new FieldList(
|
||||||
new TextField('Term', _t('CMSSearch.FILTERLABELTEXT', 'Content')),
|
new TextField('Term', _t('CMSSearch.FILTERLABELTEXT', 'Content')),
|
||||||
$dateGroup = new FieldGroup(
|
$dateGroup = new FieldGroup(
|
||||||
|
new HeaderField('Date', _t('CMSSearch.FILTERDATEHEADING', 'Date'), 4),
|
||||||
$dateFrom = new DateField('LastEditedFrom', _t('CMSSearch.FILTERDATEFROM', 'From')),
|
$dateFrom = new DateField('LastEditedFrom', _t('CMSSearch.FILTERDATEFROM', 'From')),
|
||||||
$dateTo = new DateField('LastEditedTo', _t('CMSSearch.FILTERDATETO', 'To'))
|
$dateTo = new DateField('LastEditedTo', _t('CMSSearch.FILTERDATETO', 'To'))
|
||||||
),
|
),
|
||||||
@ -200,9 +202,9 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
$dateTo->setConfig('showcalendar', true);
|
$dateTo->setConfig('showcalendar', true);
|
||||||
|
|
||||||
$actions = new FieldList(
|
$actions = new FieldList(
|
||||||
Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.CLEAR', 'Clear'))
|
FormAction::create('doSearch', _t('CMSMain_left.ss.APPLY FILTER', 'Apply Filter'))
|
||||||
->addExtraClass('ss-ui-action-minor'),
|
->addExtraClass('ss-ui-action-constructive'),
|
||||||
FormAction::create('doSearch', _t('CMSMain_left.ss.SEARCH', 'Search'))
|
Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.RESET', 'Reset'))
|
||||||
);
|
);
|
||||||
|
|
||||||
// Use <button> to allow full jQuery UI styling
|
// Use <button> to allow full jQuery UI styling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user