{if $regEventUpdateError}<span class="glm-error glm-flash-updated">Registration Event Update Error</span>{/if}
{if $regEventAdded}<span class="glm-notice glm-flash-updated">Registration Event Added</span>{/if}
</h1>
-
+
{* Event Registration App - Backbone.js *}
{* Underscore Templates for the Event Registration App *}
-
+
{literal}
<script type="text/template" id="regEvent-template">
<div style="margin-bottom: 1em;">
<a id="class-add" class="button button-secondary glm-button glm-right">Add a Registration Level</a>
- <h3>Event: <%= event_name %></h3>
- <p><%= descr %></p>
+ <p> </p>
</div>
</script>
-
+
<script type="text/template" id="regClass-template">
<div style="background-color: white; padding: .25rem; border: 1px solid black;">
<div class="class-display-template">
</div>
<div class="glm-rate-label" style="margin-bottom: .5em;">
<h3><%= name %></h3>
- Start Days: <%= start_days %>, End Days: <%= end_days %>, Base: $<%= base_rate %>. Per-Registrant: $<%= per_registrant %>. Registrant Credits: <%= registrant_credits %>
+ Start Days: <%= start_days %>, End Days: <%= end_days %>, Base: $<%= base_rate %>. Per-Registrant: $<%= per_registrant %>. Registrant Credits: <%= registrant_credits %>
</div>
</div>
</div>
<div class="glm-reg-event-list" id="regApp">
</div>
-
+
{* Bootstrap the models needed on page load *}
{* Need to have RegEvent model created *}
{* And create the RegClasses collection *}
// Start with submit not required as 0, this is incremented for each edit area opened
var glmSubmitRequired = 0;
-
+
//var $=jQuery.noConflict();
- var ajaxUrl = '{$ajaxUrl}?action=glm_members_admin_ajax';
+ var ajaxUrl = '{$ajaxUrl}?action=glm_members_admin_ajax';
var app = {
Models: { Admin: {} },
Collections: { Admin: {} },
Views: { Admin: {} },
};
var regEvent = '';
-
+
jQuery(function($){
regEvent = new app.Models.Admin.RegEvent;
earliestDate = '{$earliestDate}';
regEvent.setClasses({$regClassesJSON});
// regEvent.setTimes({$regTimesJSON});
- regEvent.set( {$regEventJSON} );
+ regEvent.set( {$regEventJSON} );
new app.Views.Admin.EventEditLevels();
// If submit is required and we're laving the page, alert the user - Note, there is no way to change the pop-up message anymore.
});
</script>
-
+
</div>
{include file='admin/footer.html'}