From 800f72b759d4cc3ddf654ce590edb70a79d56767 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 31 Oct 2017 16:58:14 -0400 Subject: [PATCH] Starting work on the select time notes for require time to be selected before they choose to add an attendee. --- js/frontRegApp.js | 3 ++- js/views/front/regClass.js | 3 ++- views/front/registrations/registration.html | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) 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){ %>