Fixes for calendar day view, and template docs for calendar week view.
This commit is contained in:
parent
eabe3ea776
commit
60027b9a5b
2 changed files with 225 additions and 15 deletions
|
|
@ -159,6 +159,113 @@ our $HELP = {
|
||||||
|
|
||||||
#### View Week Template
|
#### View Week Template
|
||||||
|
|
||||||
|
'view week template' => {
|
||||||
|
title => 'view calendar week title',
|
||||||
|
body => 'view calendar week body',
|
||||||
|
isa => [
|
||||||
|
{
|
||||||
|
namespace => "Asset_Calendar",
|
||||||
|
tag => "view calendar template"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
fields => [
|
||||||
|
],
|
||||||
|
variables => [
|
||||||
|
{
|
||||||
|
'name' => 'days',
|
||||||
|
'variables' => [
|
||||||
|
{
|
||||||
|
'name' => 'dayName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'dayAbbr'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'dayOfMonth'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'dayOfWeek'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'monthName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'monthAbbr'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'year'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'ymd'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'mdy'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'dmy'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'epoch'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'events',
|
||||||
|
'description' => 'events weekVar',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'pageNextUrl',
|
||||||
|
'description' => 'pageNextUrl weekVar'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'pagePrevUrl',
|
||||||
|
'description' => 'pagePrevUrl weekVar'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'startMonthName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'startMonthAbbr'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'startDayOfMonth'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'startDayName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'startDayAbbr'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'startYear'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'endMonthName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'endMonthAbbr'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'endDayOfMonth'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'endDayName'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'endDayAbbr'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'endYear'
|
||||||
|
},
|
||||||
|
],
|
||||||
|
related => [
|
||||||
|
{
|
||||||
|
tag => 'calendar add/edit',
|
||||||
|
namespace => 'Asset_Calendar'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
#### View Day Template
|
#### View Day Template
|
||||||
|
|
||||||
'view day template' => {
|
'view day template' => {
|
||||||
|
|
@ -174,28 +281,36 @@ our $HELP = {
|
||||||
],
|
],
|
||||||
variables => [
|
variables => [
|
||||||
{
|
{
|
||||||
'name' => 'hours'
|
'name' => 'hours',
|
||||||
},
|
'variables' => [
|
||||||
{
|
{
|
||||||
'name' => 'hour12'
|
'name' => 'hour12'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'hour24'
|
'name' => 'hour24'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'hourM'
|
'name' => 'hourM'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name' => 'events',
|
||||||
|
'description' => 'events dayVar'
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'pageNextStart'
|
'name' => 'pageNextStart'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'pageNextUrl'
|
'name' => 'pageNextUrl',
|
||||||
|
'description' => 'pageNextUrl dayVar'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'pagePrevStart'
|
'name' => 'pagePrevStart'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'pagePrevUrl'
|
'name' => 'pagePrevUrl',
|
||||||
|
'description' => 'pagePrevUrl dayVar'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name' => 'dayName'
|
'name' => 'dayName'
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ our $I18N = {
|
||||||
},
|
},
|
||||||
|
|
||||||
'hours' => {
|
'hours' => {
|
||||||
message => q|This loop contains all the events and labels for the hours that they occur in.|,
|
message => q|This loop contains all the events and labels for the hours that they occur in. Hours with no events will not be placed into the loop.|,
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -400,12 +400,17 @@ our $I18N = {
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'events dayVar' => {
|
||||||
|
message => q|This loop contains all the events for this hour.|,
|
||||||
|
lastUpdated => 1171169586,
|
||||||
|
},
|
||||||
|
|
||||||
'pageNextStart' => {
|
'pageNextStart' => {
|
||||||
message => q|The date of the next day in the calendar in YYYY-MM-DD (Year, Month, Day) format.|,
|
message => q|The date of the next day in the calendar in YYYY-MM-DD (Year, Month, Day) format.|,
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
||||||
'pageNextUrl' => {
|
'pageNextUrl dayVar' => {
|
||||||
message => q|A URL to the next day in the calendar.|,
|
message => q|A URL to the next day in the calendar.|,
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
@ -415,7 +420,7 @@ our $I18N = {
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
||||||
'pagePrevUrl' => {
|
'pagePrevUrl dayVar' => {
|
||||||
message => q|A URL to the previous day in the calendar.|,
|
message => q|A URL to the previous day in the calendar.|,
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
@ -475,6 +480,96 @@ our $I18N = {
|
||||||
lastUpdated => 1171043883,
|
lastUpdated => 1171043883,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'view calendar week title' => {
|
||||||
|
message => q|View Calendar Week Template Variables|,
|
||||||
|
lastUpdated => 1171172007,
|
||||||
|
},
|
||||||
|
|
||||||
|
'view calendar week body' => {
|
||||||
|
message => q|<p>This template shows all events in a week in the calendar, sorted by day.</p>|,
|
||||||
|
lastUpdated => 1171172004,
|
||||||
|
},
|
||||||
|
|
||||||
|
'days' => {
|
||||||
|
message => q|This loop contains all the events and labels for the days that they occur in. All days in a week are included in the loop, whether they contain events or not.|,
|
||||||
|
lastUpdated => 1171172001,
|
||||||
|
},
|
||||||
|
|
||||||
|
'events weekVar' => {
|
||||||
|
message => q|This loop contains all the events for this day.|,
|
||||||
|
lastUpdated => 1171169586,
|
||||||
|
},
|
||||||
|
|
||||||
|
'pageNextUrl weekVar' => {
|
||||||
|
message => q|A URL to the next week in the calendar.|,
|
||||||
|
lastUpdated => 1171172001,
|
||||||
|
},
|
||||||
|
|
||||||
|
'pagePrevUrl weekVar' => {
|
||||||
|
message => q|A URL to the previous week in the calendar.|,
|
||||||
|
lastUpdated => 1171171998,
|
||||||
|
},
|
||||||
|
|
||||||
|
'startMonthName' => {
|
||||||
|
message => q|The name of the month this week starts.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'startMonthAbbr' => {
|
||||||
|
message => q|The abbreviation of the name of the month this week starts.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'startDayOfMonth' => {
|
||||||
|
message => q|The day of the month this week starts, a number from 1 to 31.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'startDayName' => {
|
||||||
|
message => q|The name of the day this week starts with.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'startDayAbbr' => {
|
||||||
|
message => q|The abbreviation of the name of the day this week starts with.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'startYear' => {
|
||||||
|
message => q|The year this week starts in.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'endMonthName' => {
|
||||||
|
message => q|The name of the month this week ends.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'endMonthAbbr' => {
|
||||||
|
message => q|The abbreviation of the name of the month this week ends.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'endDayOfMonth' => {
|
||||||
|
message => q|The day of the month this week ends, a number from 1 to 31.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'endDayName' => {
|
||||||
|
message => q|The name of the day this week ends with.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'endDayAbbr' => {
|
||||||
|
message => q|The abbreviation of the name of the day this week ends with.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
'endYear' => {
|
||||||
|
message => q|The year this week ends in.|,
|
||||||
|
lastUpdated => 1171043883,
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
#################### ASSET NAME ####################
|
#################### ASSET NAME ####################
|
||||||
'assetName' => {
|
'assetName' => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue