X-Git-Url: http://git.rot13.org/?p=angular-mojolicious.git;a=blobdiff_plain;f=templates%2Fconference%2FRegistration.html.ep;h=8511e6252662c75380e29bd8e4d671eb36f0c201;hp=543272c32c950dd613043ac922d961a5e0d9a6fb;hb=e0fd7a0e9bb77ea8f97f528a81b5980371c09e64;hpb=c158c6b8d8b33f71e46db63ca0573c9033263f5b diff --git a/templates/conference/Registration.html.ep b/templates/conference/Registration.html.ep index 543272c..8511e62 100644 --- a/templates/conference/Registration.html.ep +++ b/templates/conference/Registration.html.ep @@ -4,10 +4,10 @@ if (typeof (console) === 'undefined') console = { debug: function() {} }; // moc function Registration($resource){ this.master = { - name: '', surname: '', inst: '', email: '', - + person: { + name: '', surname: '', inst: '', email: '', + }, type: '', // just attending - work: { title: '', abstract: '', @@ -46,8 +46,10 @@ 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 ) } @@ -55,6 +57,7 @@ console.debug( 'current_symposium', current_symposium, this.registration ) if ( current_symposium ) { this.registration.symposium = current_symposium; this.registration.type = 'symposium'; + this.registration.person = current_person; } this.last_saved = {}; console.debug( 'reset', current_symposium, this.registration, this.$location.hashPath ); @@ -224,11 +227,11 @@ input.ng-validation-error {
- - + + - - + +