From: Steve Sutton Date: Tue, 31 Oct 2017 20:58:14 +0000 (-0400) Subject: Starting work on the select time X-Git-Tag: v1.0.0^2~309^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=800f72b759d4cc3ddf654ce590edb70a79d56767;p=WP-Plugins%2Fglm-member-db-registrations.git Starting work on the select time notes for require time to be selected before they choose to add an attendee. --- diff --git a/js/frontRegApp.js b/js/frontRegApp.js index 3a4d853..44aeca9 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -439,7 +439,7 @@ app.Views.Front.RegClass = Backbone.View.extend({ var accountContainer = this.$('.reg-class-accounts'); accountContainer.append(view); if ( app.timeSpecific ) { - // this.setCalendar(); + // Need to require that the user select the time before entering attendees. } if ( loginAccount === '' ) { this.$('.glm-add-account').hide(); @@ -528,6 +528,7 @@ app.Views.Front.RegClass = Backbone.View.extend({ } } }, + addNew: function(){ var findByEmail = []; var fname = this.$('.add_reg_fname').val().trim(); diff --git a/js/views/front/regClass.js b/js/views/front/regClass.js index 046b0a4..162fa0a 100644 --- a/js/views/front/regClass.js +++ b/js/views/front/regClass.js @@ -40,7 +40,7 @@ app.Views.Front.RegClass = Backbone.View.extend({ var accountContainer = this.$('.reg-class-accounts'); accountContainer.append(view); if ( app.timeSpecific ) { - // this.setCalendar(); + // Need to require that the user select the time before entering attendees. } if ( loginAccount === '' ) { this.$('.glm-add-account').hide(); @@ -129,6 +129,7 @@ app.Views.Front.RegClass = Backbone.View.extend({ } } }, + addNew: function(){ var findByEmail = []; var fname = this.$('.add_reg_fname').val().trim(); diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 48d399d..d87b032 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -55,6 +55,7 @@
Base Rate: $<%= reg_rate_base_price %>
Per Registrant: $<%= reg_rate_per_reg %>
+ Select a time <% _.each( this.getTimeArray(), function(time){ %>