Updates to Event Form

This commit is contained in:
Luke Vella 2015-01-19 13:18:27 +01:00
parent f776756798
commit e61ef151f6
43 changed files with 736 additions and 484 deletions

View file

@ -22,16 +22,16 @@ angular.module('rallly', ['ui.router','ngResource','ngFx','btford.modal'])
url : '/notfound',
templateUrl : 'templates/notfound.html'
})
.state('editevent', {
url: '/:id/edit',
templateUrl : 'templates/editevent.html',
controller : 'EditEventCtrl'
})
.state('event',{
url : '/:id',
templateUrl : 'templates/event.html',
controller : 'EventCtrl'
})
.state('editevent', {
url: '/:id/edit',
templateUrl : 'templates/editevent.html',
controller : 'EditEventCtrl'
})
})
.factory('Event', function($resource){
return $resource('/api/event/:id', { id : '@_id' }, {
@ -42,4 +42,11 @@ angular.module('rallly', ['ui.router','ngResource','ngFx','btford.modal'])
return $resource('/api/event/:id/participant/:pid', { id: '@_id', pid : '@pid'}, {
'update' : { method : 'PUT' }
});
})
.factory('Title', function(){
return {
set : function(title){
document.title = title;
}
}
});