Use new DateField->setHTML5()

See https://github.com/silverstripe/silverstripe-framework/issues/6626
This commit is contained in:
Ingo Schommer 2017-03-31 14:10:45 +13:00
parent b7dff27ec1
commit d07115e665

View File

@ -432,12 +432,10 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
'q[LastEditedFrom]',
_t('CMSSearch.FILTERDATEFROM', 'From')
);
$dateFrom->setShowCalendar(true);
$dateTo = new DateField(
'q[LastEditedTo]',
_t('CMSSearch.FILTERDATETO', 'To')
);
$dateTo->setShowCalendar(true);
$pageFilter = new DropdownField(
'q[FilterClass]',
_t('CMSMain.PAGES', 'Page status'),