diff --git a/modules/route/front/create/index.html b/modules/route/front/create/index.html new file mode 100644 index 000000000..23f5033a2 --- /dev/null +++ b/modules/route/front/create/index.html @@ -0,0 +1,60 @@ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/modules/route/front/create/index.js b/modules/route/front/create/index.js new file mode 100644 index 000000000..03fe574fc --- /dev/null +++ b/modules/route/front/create/index.js @@ -0,0 +1,20 @@ +import ngModule from '../module'; + +export default class Controller { + constructor($scope, $state) { + this.$scope = $scope; + this.$state = $state; + } + + onSubmit() { + this.$scope.watcher.submit().then( + res => this.$state.go('route.card.summary', {id: res.data.id}) + ); + } +} +Controller.$inject = ['$scope', '$state']; + +ngModule.component('vnRouteCreate', { + template: require('./index.html'), + controller: Controller +});