X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=templates%2Fconference%2FRegistration.html.ep;h=6a5a1548c5998861344628876eef9ef111d20086;hb=9aabf01994845ae1102edd7dbba3e4e6f82b0f2a;hp=507725d29ceec57dc51bb87b98cee184b700b100;hpb=fb1b2931cbc0c4eb21e5d06e948cea8a7c8a58f3;p=angular-mojolicious.git diff --git a/templates/conference/Registration.html.ep b/templates/conference/Registration.html.ep index 507725d..6a5a154 100644 --- a/templates/conference/Registration.html.ep +++ b/templates/conference/Registration.html.ep @@ -15,7 +15,6 @@ function Registration($resource){ }, symposium: { organizers: [ {name:'', surname:'', inst:'', email:'' } ], work_nr: 1, }, }; - this.last_saved = {}; this.Registration = $resource( '/data/conference/Registration/:id', { id:'' } ); this.Symposium = $resource( '/data/conference/Symposium/:id', { id:'' } ); this.reset(); @@ -45,22 +44,21 @@ console.debug( 'load symposium ', s_id ); }, reset: function() { console.debug( this.Registration ); - var current_symposium = null; - var current_person = null; - if ( this.registration && this.registration.type == 'symposium' ) { - current_symposium = this.registration.symposium; - current_person = this.registration.person; - if ( this.registration.$id ) current_symposium.work_nr++; // only if saved -console.debug( 'current_symposium', current_symposium, this.registration ) + var last = this.registration; + if ( last && last.type == 'symposium' ) { + if ( last.$id ) last.symposium.work_nr++; // only if saved } this.registration = new this.Registration( this.master ); - if ( current_symposium ) { - this.registration.symposium = current_symposium; - this.registration.type = 'symposium'; - this.registration.person = current_person; + if ( last ) { + this.registration.category = last.category; + this.registration.type = last.type; + this.registration.person = last.person; + + if ( last.type == 'symposium' ) + this.registration.symposium = last.symposium; } this.last_saved = {}; -console.debug( 'reset', current_symposium, this.registration, this.$location.hashPath ); +console.debug( 'reset', this.registration, this.$location.hashPath, last ); }, save: function(){ var self = this; @@ -265,22 +263,15 @@ input.ng-validation-error {
-
+ +

Please choose:

- Just attending the conference
- I want to submit a work
+ +
-
-
-

Choose submittion type:

- Symposia
- Oral presentation
- Poster presentation
- Round table discussion
-
-
-
+ +

Contact Information

First name
@@ -324,8 +315,20 @@ input.ng-validation-error {
+
+
+

Choose submittion type:

+ Symposia
+ Oral presentation
+ Poster presentation
+ Round table discussion
+
+
-
+ + + +

Symposia Submission

@@ -378,38 +381,35 @@ input.ng-validation-error { -
-
- {{registration.symposium.work_nr}}. {{registration.work.title}} has been submited successfully.
-
- -
- - - - - - or go to conference home page.
-
- -
Please fill all required fields ({{$invalidWidgets.visible()}} fields left). + +
+ {{registration.work.title}} has been submited successfully.
+
-
- Your registration has been submitted successfully.

-
- - Your work has been submitted successfully.

-
- Please review your data, correct and save if needed or go to conference home page.

+ + +
Please fill all required fields ({{$invalidWidgets.visible()}} fields left). +
+ + + + +
+
+ Your registration has been submitted successfully. +
+ Please review your data, correct and save if needed or go to conference home page. +
Registration ID: {{registration.$id}}.
You can bookmark this page and review it later. +
+ +