$numbRecurrences = 0;
$times = false;
$haveTimes = false;
+ $newEvent = false;
$timesCount = 0;
$firstTime = false;
$lastTime = false;
case 'add':
$event = $this->newEntry();
+ // Assume the event has times.
+ // This will be true if they do not goto the dates tab.
+ $newEvent = true;
$view = 'edit';
'newRecurrence' => $newRecurrence,
'times' => $times,
'haveTimes' => $haveTimes,
+ 'newEvent' => $newEvent,
'timesCount' => $timesCount,
'firstTime' => $firstTime,
'lastTime' => $lastTime,
{if $eventUpdateError || $eventAddError}
<h1 class="glm-error">NOTICE: Your event has not yet been submitted.<br>Please select the tabs indicating a problem, correct the indicated fields and resubmit.</h1>
{else}
- {if !$haveTimes}
+ {if !$haveTimes && !$newEvent}
<h4 class="glm-error">NOTICE: Your event does not have any selected dates/times. Please check your schedule in the "Dates" tab below.</h4>
{/if}
{/if}
<a id="glm-event-location" data-show-table="glm-table-location" class="glm-event-tab nav-tab{if $currentTab == 'glm-table-location'} nav-tab-active{/if}">Location</a>
<a id="glm-event-recurrence" data-show-table="glm-table-recurrence" class="glm-event-tab nav-tab{if $currentTab == 'glm-table-recurrence'} nav-tab-active{/if}">Dates</a>
<a id="glm-event-calendar" data-show-table="glm-table-calendar" class="glm-event-tab nav-tab{if $currentTab == 'glm-table-calendar'} nav-tab-active{/if}">Summary Calendar</a>
- <!-- <a id="glm-event-admin" data-show-table="glm-table-settings" class="glm-event-tab nav-tab{if $currentTab == 'glm-table-settings'} nav-tab-active{/if}">Administrative Contact</a> -->
<a id="glm-event-files" data-show-table="glm-table-files" class="glm-event-tab nav-tab{if $currentTab == 'glm-table-files'} nav-tab-active{/if}">Attach Files</a>
</h2>