diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm index b3409b7e5..9c1494711 100644 --- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm +++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm @@ -2601,7 +2601,7 @@ sub view { push (@events, {'event' => $self->processTemplate(\%eventFields, $event->{'templateId'}), %eventFields }); } $var{'checkout.url'} = $self->getUrl('op=viewCart'); - $var{'checkout.label'} = "Checkout"; + $var{'checkout.label'} = $i18n->get('checkout'); $var{'events_loop'} = \@events; $var{'paginateBar'} = $p->getBarTraditional; $var{'manageEvents.url'} = $self->getUrl('func=manageEvents'); @@ -2619,7 +2619,6 @@ sub view { $p->appendTemplateVars(\%var); $self->buildMenu(\%var); $var{'ems.wobject.dir'} = $self->session->config->get("extrasURL")."/wobject/EventManagementSystem"; - my $templateId = $self->get("displayTemplateId"); return $self->processTemplate(\%var, undef, $self->{_viewTemplate}); } diff --git a/lib/WebGUI/Help/Asset_EventManagementSystem.pm b/lib/WebGUI/Help/Asset_EventManagementSystem.pm index b0e8264a7..89ae895c5 100644 --- a/lib/WebGUI/Help/Asset_EventManagementSystem.pm +++ b/lib/WebGUI/Help/Asset_EventManagementSystem.pm @@ -168,6 +168,10 @@ our $HELP = { tag => 'event management system event template', namespace => 'Asset_EventManagementSystem', }, + { + tag => 'pagination template variables', + namespace => 'WebGUI', + }, { tag => 'template language', namespace => 'Asset_Template', diff --git a/lib/WebGUI/Help/Asset_SQLForm.pm b/lib/WebGUI/Help/Asset_SQLForm.pm index 2933dc085..802b39074 100644 --- a/lib/WebGUI/Help/Asset_SQLForm.pm +++ b/lib/WebGUI/Help/Asset_SQLForm.pm @@ -1,7 +1,7 @@ package WebGUI::Help::Asset_SQLForm; our $HELP = { - 'sqlform add/edit' => { + 'sql form add/edit' => { title => 'edit sqlform', body => 'sqlform description', fields => [ @@ -335,7 +335,7 @@ our $HELP = { body => 'edit template help', related => [ { - tag => 'sqlform add/edit', + tag => 'sql form add/edit', namespace => 'Asset_SQLForm', }, { @@ -350,7 +350,7 @@ our $HELP = { body => 'search template help', related => [ { - tag => 'sqlform add/edit', + tag => 'sql form add/edit', namespace => 'Asset_SQLForm', }, { diff --git a/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm b/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm index f80cec355..0c0d98b44 100644 --- a/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm +++ b/lib/WebGUI/i18n/English/Asset_EventManagementSystem.pm @@ -375,12 +375,28 @@ This loop contains all events that have been approved so that users can register The information for one event that has been processed by its own event template.
+Event template variables
+The template variables from the Event template. This gives you access to the raw
+data for the event.
+
+
checkout.url
+A URL to take the user the screen that displays the contents of their shopping cart.
+
checkout.label
+A label to go with checkout.url. The internationalized word "Checkout".
+
paginateBar
A bar to help the user page through sets of Events if several pages of Events exist.
Pagination variables
+Common pagination template variables.
+
canManageEvents
A flag to indiciate if the current user is allowed to Manage Events.
managePurchases.url
+A URL to take the user to the screen where purchases can be managed (i.e. added, approved, deleted)
+
managePurchases.label
+An internationalized label to dispaly to the user the link for managing purchases.
+
search.filters.options
+Javascript for a search interface for Events based on metadata.
+
search.data.url
+The URL to this Asset.
+
ems.wobject.dir
+The URL the EventManagementSystem area in the WebGUI Extras directory.
+
purchase.url
-A URL for the user to register for this event and add it to their shopping cart.
+
numberRegistered
+The number of people currently registered for this event.
+
maximumAttendees
+The number of people allowed to attend this event.
+
seatsRemaining
+The number of available seats remaining for this event.
+
startDate.human
+The date and time this event starts, in human readable format.
+
endDate.human
+The date and time this event ends, in human readable format.
+
eventIsFull
+A boolean that is true if the there are no available seats remaining in this event.
purchase.label
-An internationalized label to dispaly to the user the link for purchasing this event.
+An internationalized label to display to the user the link for purchasing this event.
+If the event is full, the label will be "Sold out".
+
purchase.url
+A URL for the user to register for this event and add it to their shopping cart.
+If the event is full, the url will be blank.