Update for front end all day support for reg time
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 18 May 2018 15:01:20 +0000 (11:01 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 18 May 2018 15:01:20 +0000 (11:01 -0400)
Show just the date if all day.

views/front/registrations/registration.html

index 0c963c8..f8b06bc 100644 (file)
 {* Template for regTime *}{literal}
 <script type="text/template" id="regTime-template">
     <% if ( app.timeSpecific ) { %>
-        <b><%= start_datetime.datetime %></b>
+        <% if ( !all_day.value ) { %>
+            <b><%= start_datetime.datetime %></b>
+        <% } else { %>
+            <b><%= start_datetime.datetime.split( ' ' )[0] %></b>
+        <% } %>
     <% } %>
 
     <button class="glm-add-new-account button">{/literal}{$terms.reg_term_button_add_attendee}{literal}</button>