List page now checking to see if there's any available events.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 26 Oct 2017 16:21:27 +0000 (12:21 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 26 Oct 2017 16:21:27 +0000 (12:21 -0400)
views/front/registrations/list.html

index 8542400..5e55926 100644 (file)
@@ -1,5 +1,6 @@
 {include file='front/registrations/header.html'}
 <div class="glm-reg-event-list">
+{if $haveRegEvents}
     {foreach $regEvents as $event}
     <div class="glm-reg-event-item clearfix">
         <h2><a href="{$thisUrl}?page=registration&eventRegId={$event.id}">{$event.event_name}</a></h2>
@@ -7,5 +8,8 @@
 
     </div>
     {/foreach}
+{else}
+    <h2>Sorry, no events are available for registration at this time.</h2>
+{/if}
 
 </div>