From c4b3e1e758435cadc038d7faa89454fc96aa30bf Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 15 Mar 2010 09:43:28 -0700 Subject: [PATCH] Add the calendar month template variables. Fixes bug #11472. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Help/Asset_Calendar.pm | 56 +++++++++++++++ lib/WebGUI/i18n/English/Asset_Calendar.pm | 87 +++++++++++++++++++++-- 3 files changed, 138 insertions(+), 6 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 6f0318f76..079efe1cd 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.9.1 - fixed #11464: blank page after setting posts per page in Collaboration System to 0 (zero) + - fixed #11472: View Calendar Month help missing 7.9.0 - added #11383: AJAX username checks at registration (Luke Robinson / Orchard Solutions) diff --git a/lib/WebGUI/Help/Asset_Calendar.pm b/lib/WebGUI/Help/Asset_Calendar.pm index 060035ad5..8282e36fc 100644 --- a/lib/WebGUI/Help/Asset_Calendar.pm +++ b/lib/WebGUI/Help/Asset_Calendar.pm @@ -6,6 +6,7 @@ our $HELP = { 'view calendar template' => { title => 'view calendar title', body => 'view calendar body', + private => '1', isa => [ { namespace => "Asset_Template", tag => "template variables" @@ -66,6 +67,61 @@ our $HELP = { ], }, + 'view month template' => { + title => 'view calendar month title', + body => 'view calendar month body', + isa => [ + { namespace => "Asset_Calendar", + tag => "view calendar template" + }, + ], + fields => [], + variables => [ + { 'name' => 'weeks', + 'variables' => [ + { 'name' => 'days', + 'variables' => [ + { 'name' => 'dayUrl' }, + { 'name' => 'dayMonth', + 'description' => 'dayOfMonth' }, + { 'name' => 'dayCurrent' }, + { 'name' => 'events', + 'description' => 'events weekVar', + }, + ], + }, + ], + }, + { 'name' => 'pageNextUrl', + 'description' => 'pageNextUrl monthVar' + }, + { 'name' => 'pagePrevUrl', + 'description' => 'pagePrevUrl monthVar' + }, + { 'name' => 'pageNextYear', }, + { 'name' => 'pagePrevYear', }, + { 'name' => 'monthName', }, + { 'name' => 'monthAbbr', }, + { 'name' => 'year' }, + { 'name' => 'dayNames', + 'variables' => [ + { 'name' => 'dayName' }, + { 'name' => 'dayAbbr' }, + ], + }, + { 'name' => 'months', + 'variables' => [ + { 'name' => 'monthName' }, + { 'name' => 'monthAbbr' }, + { 'name' => 'monthEpoch' }, + { 'name' => 'monthUrl' }, + { 'name' => 'monthCurrent' }, + ], + }, + ], + related => [] + }, + 'view week template' => { title => 'view calendar week title', body => 'view calendar week body', diff --git a/lib/WebGUI/i18n/English/Asset_Calendar.pm b/lib/WebGUI/i18n/English/Asset_Calendar.pm index bbd242551..fe9b9da54 100644 --- a/lib/WebGUI/i18n/English/Asset_Calendar.pm +++ b/lib/WebGUI/i18n/English/Asset_Calendar.pm @@ -354,8 +354,8 @@ our $I18N = { }, 'view calendar title' => { - message => q|View Calendar Template Variables|, - lastUpdated => 1171043337, + message => q|Calendar View Template Variables|, + lastUpdated => 1268671312, }, 'view calendar body' => { @@ -430,8 +430,8 @@ our $I18N = { }, 'view calendar day title' => { - message => q|View Calendar Day Template Variables|, - lastUpdated => 1171043337, + message => q|Calendar View Day Template Variables|, + lastUpdated => 1268671336, }, 'view calendar day body' => { @@ -541,8 +541,8 @@ our $I18N = { }, 'view calendar week title' => { - message => q|View Calendar Week Template Variables|, - lastUpdated => 1171172007, + message => q|Calendar View Week Template Variables|, + lastUpdated => 1268671327, }, 'view calendar week body' => { @@ -953,6 +953,81 @@ our $I18N = { lastUpdated => 1230931579, }, + 'pageNextUrl monthVar' => { + message => q|A URL to the next year in the calendar.|, + lastUpdated => 1268669460, + }, + + 'pagePrevUrl monthVar' => { + message => q|A URL to the previous year in the calendar.|, + lastUpdated => 1268669463, + }, + + 'pageNextYear' => { + message => q|The year that follows the current one in the Calendar.|, + lastUpdated => 1268669460, + }, + + 'pagePrevYear' => { + message => q|The year that preceeds the current one in the Calendar.|, + lastUpdated => 1268669463, + }, + + 'dayNames' => { + message => q|A loop containing names and abbreviations for the days of the week.|, + lastUpdated => 1268669463, + }, + + 'months' => { + message => q|A loop containing names and URLs for navigating among the months in a year.|, + lastUpdated => 1268669463, + }, + + 'monthEpoch' => { + message => q|The epoch date for this month.|, + lastUpdated => 1268669463, + }, + + 'monthUrl' => { + message => q|The URL to change the calendar to display this month.|, + lastUpdated => 1268669463, + }, + + 'monthCurrent' => { + message => q|A boolean which is true if the calendar is displaying this month.|, + lastUpdated => 1268669463, + }, + + 'view calendar month title' => { + message => q|Calendar View Month Template Variables|, + lastUpdated => 1268671291, + }, + + 'view calendar month body' => { + message => q|

This template shows all events in a month in the calendar.

|, + lastUpdated => 1171172004, + }, + + 'weeks' => { + message => q|A loop containing loops of events, by day.|, + lastUpdated => 1171172004, + }, + + 'weeks' => { + message => q|A loop containing loops of events, by day.|, + lastUpdated => 1171172004, + }, + + 'dayUrl' => { + message => q|A URL to view all events on this day.|, + lastUpdated => 1171172004, + }, + + 'dayCurrent' => { + message => q|A boolean which is true if this day is today.|, + lastUpdated => 1171172004, + }, + }; 1;