Skip to content

Commit

Permalink
Use the time picker field module for time fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshort committed Feb 23, 2013
1 parent 13118cf commit 77061b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/CalendarDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function getCMSFields() {
$fields->addFieldsToTab('Root.Main', array(
$start = new DateField('StartDate',_t('CalendarDateTime.STARTDATE', 'Start date')),
$end = new DateField('EndDate',_t('CalendarDateTime.ENDDATE', 'End date')),
new TimeField('StartTime', _t('CalendarDateTime.STARTTIME', 'Start time')),
new TimeField('EndTime', _t('CalendarDateTime.ENDTIME', 'End time')),
new TimePickerField('StartTime', _t('CalendarDateTime.STARTTIME', 'Start time')),
new TimePickerField('EndTime', _t('CalendarDateTime.ENDTIME', 'End time')),
new CheckboxField('AllDay', _t('CalendarDateTime.ALLDAY','This event lasts all day'))
));

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"require": {
"php": ">=5.3.2",
"silverstripe/framework": "3.*",
"silverstripe/cms": "3.*"
"silverstripe/cms": "3.*",
"silverstripe/timepickerfield": "dev-master"
},
"support": {
"issues": "https://github.com/unclecheese/EventCalendar/issues"
Expand Down

0 comments on commit 77061b8

Please sign in to comment.