mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-06 20:51:48 +02:00
Updates to Event Form
This commit is contained in:
parent
f776756798
commit
e61ef151f6
43 changed files with 736 additions and 484 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue