Initial task editor

This commit is contained in:
Francis Lachapelle
2015-06-25 11:30:44 -04:00
parent c144f736dc
commit c524782395
10 changed files with 302 additions and 80 deletions
+11 -3
View File
@@ -64,7 +64,11 @@
url: '/:calendarId/{componentType:(?:appointment|task)}/new',
views: {
componentEditor: {
templateUrl: 'UIxAppointmentEditorTemplate',
templateUrl: function($stateParams) {
// UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox or
// UI/Templates/SchedulerUI/UIxTaskEditorTemplate.wox
return 'UIx' + $stateParams.componentType.capitalize() + 'EditorTemplate';
},
controller: 'ComponentController',
controllerAs: 'editor'
}
@@ -74,10 +78,14 @@
}
})
.state('calendars.component', {
url: '/:calendarId/event/:componentId',
url: '/:calendarId/{componentType:(?:appointment|task)}/:componentId',
views: {
componentEditor: {
templateUrl: 'UIxAppointmentEditorTemplate',
templateUrl: function($stateParams) {
// UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox or
// UI/Templates/SchedulerUI/UIxTaskEditorTemplate.wox
return 'UIx' + $stateParams.componentType.capitalize() + 'EditorTemplate';
},
controller: 'ComponentController',
controllerAs: 'editor'
}