Convert event forms to be partially embery.

This commit is contained in:
Tom Price
2016-08-09 18:26:16 +01:00
parent bccd82c6aa
commit 60cf5dbb71
20 changed files with 619 additions and 343 deletions

View File

@@ -1,5 +1,5 @@
import Ember from 'ember';
import config from './config/environment';
import Ember from "ember";
import config from "./config/environment";
const Router = Ember.Router.extend({
location: config.locationType,
@@ -7,6 +7,20 @@ const Router = Ember.Router.extend({
});
Router.map(function () {
this.route('event', function () {
this.route('create');
this.route('show', {
path: ':id'
});
this.route('duplicate', {
path: ':id/duplicate'
});
this.route('edit', {
path: ':id/edit'
});
});
this.route('legacy', {path: '/*wildcard'});
});
export default Router;