mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
Removed TimeWithDropdown, no longer supported in core
This commit is contained in:
parent
d7d2afe250
commit
e98f22f400
@ -17,7 +17,7 @@ class BasicFieldsTestPage extends TestPage
|
|||||||
'DateTime' => 'Datetime',
|
'DateTime' => 'Datetime',
|
||||||
'DateTimeWithCalendar' => 'Datetime',
|
'DateTimeWithCalendar' => 'Datetime',
|
||||||
'Time' => 'Time',
|
'Time' => 'Time',
|
||||||
'TimeWithDropdown' => 'Time',
|
|
||||||
'Money' => 'Money',
|
'Money' => 'Money',
|
||||||
'Number' => 'Int',
|
'Number' => 'Int',
|
||||||
'Price' => 'Double',
|
'Price' => 'Double',
|
||||||
@ -106,7 +106,6 @@ class BasicFieldsTestPage extends TestPage
|
|||||||
'CalendarDate' => "2002-10-23",
|
'CalendarDate' => "2002-10-23",
|
||||||
'DMYDate' => "2002-10-23",
|
'DMYDate' => "2002-10-23",
|
||||||
'Time' => "23:59",
|
'Time' => "23:59",
|
||||||
'TimeWithDropdown' => "23:59",
|
|
||||||
'DateTime' => "2002-10-23 23:59",
|
'DateTime' => "2002-10-23 23:59",
|
||||||
'DateTimeWithCalendar' => "2002-10-23 23:59",
|
'DateTimeWithCalendar' => "2002-10-23 23:59",
|
||||||
'MyFieldGroup1' => 'My value (ä!)',
|
'MyFieldGroup1' => 'My value (ä!)',
|
||||||
@ -184,13 +183,11 @@ class BasicFieldsTestPage extends TestPage
|
|||||||
Object::create('DateField', 'Date', 'DateField'),
|
Object::create('DateField', 'Date', 'DateField'),
|
||||||
$dmyDateField = Object::create('DateField', 'DMYDate', 'DateField with separate fields'),
|
$dmyDateField = Object::create('DateField', 'DMYDate', 'DateField with separate fields'),
|
||||||
Object::create('TimeField', 'Time', 'TimeField'),
|
Object::create('TimeField', 'Time', 'TimeField'),
|
||||||
$timeFieldDropdown = Object::create('TimeField', 'TimeWithDropdown', 'TimeField with dropdown'),
|
|
||||||
Object::create('DatetimeField', 'DateTime', 'DateTime'),
|
Object::create('DatetimeField', 'DateTime', 'DateTime'),
|
||||||
$dateTimeShowCalendar = Object::create('DatetimeField', 'DateTimeWithCalendar', 'DateTime with calendar')
|
$dateTimeShowCalendar = Object::create('DatetimeField', 'DateTimeWithCalendar', 'DateTime with calendar')
|
||||||
));
|
));
|
||||||
$calendarDateField->setConfig('showcalendar', true);
|
$calendarDateField->setConfig('showcalendar', true);
|
||||||
$dmyDateField->setConfig('dmyfields', true);
|
$dmyDateField->setConfig('dmyfields', true);
|
||||||
$timeFieldDropdown->setConfig('showdropdown', true);
|
|
||||||
$dateTimeShowCalendar->getDateField()->setConfig('showcalendar', true);
|
$dateTimeShowCalendar->getDateField()->setConfig('showcalendar', true);
|
||||||
$dateTimeShowCalendar->getTimeField()->setConfig('showdropdown', true);
|
$dateTimeShowCalendar->getTimeField()->setConfig('showdropdown', true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user