Starting work on the select time feature/formsUpdates
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 31 Oct 2017 20:58:14 +0000 (16:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 31 Oct 2017 20:58:14 +0000 (16:58 -0400)
notes for require time to be selected before they choose to add an
attendee.

js/frontRegApp.js
js/views/front/regClass.js
views/front/registrations/registration.html

index 3a4d853..44aeca9 100644 (file)
@@ -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();
index 046b0a4..162fa0a 100644 (file)
@@ -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();
index 48d399d..d87b032 100644 (file)
@@ -55,6 +55,7 @@
                 <div class="glm-columns glm-small-12 glm-large-12"> Base Rate: $<%= reg_rate_base_price %> </div>
                 <div class="glm-columns glm-small-12 glm-large-12"> Per Registrant: $<%= reg_rate_per_reg %> </div>
                 <div class="glm-columns glm-small-12 glm-large-12">
+                    <b>Select a time</b>
                     <% _.each( this.getTimeArray(), function(time){ %>
                     <label>
                         <input class="timeSelection" type="radio" name="timeOption" value="<%= time.id %>" /> <%= time.date.toLocaleTimeString('en-US', {hour: '2-digit', minute: '2-digit'}) %>