Update for the rTime
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 9 Oct 2017 16:09:12 +0000 (12:09 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 9 Oct 2017 16:11:21 +0000 (12:11 -0400)
Loop through this as array.

views/front/registrations/registration.html

index e8f1b2e..287a0f4 100644 (file)
         <p><%= descr %></p>
         <% if ( !time_specific ) { %>
             <p>Attend any time during event</p>
+            <% _.each(reg_time, function(rTime){ %>
             <p>
-                Maximum Registrants: <%= attendee_max %><br>
-                Currently Available: <%= attendees_available %>
+                Maximum Registrants: <%= rTime.attendee_max %><br>
+                Currently Available: <%= rTime.attendees_available %>
             </p>
+            <% }); %>
         <% } else { %>
         <% } %>