rename registration finished to confirmation
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 7 Jan 2013 23:15:00 +0000 (00:15 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 7 Jan 2013 23:15:37 +0000 (00:15 +0100)
app/js/app.js
app/js/controllers.js
app/partials/confirmation.html [new file with mode: 0644]
app/partials/registration-finished.html [deleted file]

index 523743e..5938a2b 100644 (file)
@@ -5,7 +5,7 @@
 angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
   config(['$routeProvider', function($routeProvider) {
     $routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl});
-    $routeProvider.when('/registration-finished/:registrationId', {templateUrl: 'partials/registration-finished.html', controller: RegistrationCtrl});
+    $routeProvider.when('/confirmation/:registrationId', {templateUrl: 'partials/confirmation.html', controller: RegistrationCtrl});
     $routeProvider.when('/list', {templateUrl: 'partials/list.html', controller: ListCtrl});
     $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2});
     $routeProvider.otherwise({redirectTo: '/registration/'});
index 1b0d4f8..f0e6d03 100644 (file)
@@ -19,7 +19,7 @@ function RegistrationCtrl($scope, $log, Registration, $routeParams, $location, $
                        $log.info("saved", registration);
                        $log.info('id =', registration.id);
                        if ( registration.id ) {
-                               $location.path( '/registration-finished/' + registration.id );
+                               $location.path( '/confirmation/' + registration.id );
                        } else {
                                $log.error("can't find id in ", registration);
                        }
diff --git a/app/partials/confirmation.html b/app/partials/confirmation.html
new file mode 100644 (file)
index 0000000..2692558
--- /dev/null
@@ -0,0 +1,28 @@
+
+<div ng-controller="RegistrationCtrl" name="RegistrationForm">
+
+Registration for
+
+{{user.firstname}}
+{{user.surname}}
+<span ng-show="user.organization">
+from
+{{user.organization}}
+</span>
+is received, thanks.
+
+<pre>
+user={{user}}
+
+$routeParams={{$routeParams}}
+
+{{RegistrationForm.$valid}}
+{{RegistrationForm.$error}}
+
+location={{$location}}
+
+</pre>
+
+</div>
+
+
diff --git a/app/partials/registration-finished.html b/app/partials/registration-finished.html
deleted file mode 100644 (file)
index 2692558..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-
-<div ng-controller="RegistrationCtrl" name="RegistrationForm">
-
-Registration for
-
-{{user.firstname}}
-{{user.surname}}
-<span ng-show="user.organization">
-from
-{{user.organization}}
-</span>
-is received, thanks.
-
-<pre>
-user={{user}}
-
-$routeParams={{$routeParams}}
-
-{{RegistrationForm.$valid}}
-{{RegistrationForm.$error}}
-
-location={{$location}}
-
-</pre>
-
-</div>
-
-