diff options
-rw-r--r-- | www/js/views/submit.js | 7 | ||||
-rw-r--r-- | www/templates/en/submit_name.html | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/www/js/views/submit.js b/www/js/views/submit.js index 1dad90d..63864db 100644 --- a/www/js/views/submit.js +++ b/www/js/views/submit.js @@ -4,6 +4,7 @@ template: 'submit', id: 'submit-page', prev: 'details', + nopassword: 0, events: { 'pagehide': 'destroy', @@ -23,7 +24,7 @@ } template = _.template( tpl.get( this.template ) ); if ( this.model ) { - this.$el.html(template({ model: this.model.toJSON(), user: FMS.currentUser.toJSON() })); + this.$el.html(template({ model: this.model.toJSON(), user: FMS.currentUser.toJSON(), nopassword: this.nopassword })); } else { this.$el.html(template()); } @@ -180,6 +181,7 @@ template: 'submit_name', id: 'submit-name-page', prev: 'submit-email', + nopassword: 1, events: { 'pagehide': 'destroy', @@ -251,7 +253,8 @@ SubmitNameSetPasswordView: FMS.SubmitNameView.extend({ template: 'submit_name', id: 'submit-name-page-set-password', - prev: 'submit-set-password' + prev: 'submit-set-password', + nopassword: 0 }) }); })(FMS, Backbone, _, $); diff --git a/www/templates/en/submit_name.html b/www/templates/en/submit_name.html index bbfa219..50a0a10 100644 --- a/www/templates/en/submit_name.html +++ b/www/templates/en/submit_name.html @@ -4,6 +4,12 @@ <div data-role="content"> <div id="errors"></div> + <p> + <% if ( nopassword ) { %> + No problem - we don't like faffing with passwords either. + <% } %> + Please give us some basic details, and you're nearly done. + </p> <div class="inputcard"> <% if ( typeof model.title_list !== 'undefined' ) { %> <div> |