More tests for AdSpace/Ad.pm, one of which found a bug with
handling Macros in Rich Media ads. This was fixed. Just the start of template docs for the Calendar. Finishing the Calendar docs requires doing the Event docs.
This commit is contained in:
parent
4ebc99108f
commit
84198ceea0
6 changed files with 422 additions and 97 deletions
|
|
@ -3,92 +3,153 @@ package WebGUI::Help::Asset_Calendar;
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $HELP = {};
|
||||
|
||||
#### Edit Calendar Page
|
||||
my $editPage = $HELP->{'calendar add/edit'} = {};
|
||||
|
||||
$editPage->{ title } = 'help add/edit title';
|
||||
$editPage->{ body } = 'help add/edit body';
|
||||
|
||||
push @{$editPage->{ isa }}, {
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset',
|
||||
},
|
||||
;
|
||||
|
||||
push @{$editPage->{ fields }},
|
||||
{
|
||||
title => "defaultView label",
|
||||
description => "defaultView description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "defaultDate label",
|
||||
description => "defaultDate description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "groupIdEventEdit label",
|
||||
description => "groupIdEventEdit description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdMonth label",
|
||||
description => "templateIdMonth description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdWeek label",
|
||||
description => "templateIdWeek description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdDay label",
|
||||
description => "templateIdDay description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdEvent label",
|
||||
description => "templateIdEvent description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdEventEdit label",
|
||||
description => "templateIdEventEdit description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdSearch label",
|
||||
description => "templateIdSearch description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintMonth label",
|
||||
description => "templateIdPrintMonth description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintWeek label",
|
||||
description => "templateIdPrintWeek description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintDay label",
|
||||
description => "templateIdPrintDay description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintEvent label",
|
||||
description => "templateIdPrintEvent description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'calendar add/edit' => {
|
||||
title => 'help add/edit title',
|
||||
body => 'help add/edit body',
|
||||
isa => [
|
||||
{
|
||||
namespace => "Asset_Wobject",
|
||||
tag => "wobject add/edit"
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
{
|
||||
title => "defaultView label",
|
||||
description => "defaultView description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "defaultDate label",
|
||||
description => "defaultDate description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "groupIdEventEdit label",
|
||||
description => "groupIdEventEdit description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdMonth label",
|
||||
description => "templateIdMonth description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdWeek label",
|
||||
description => "templateIdWeek description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdDay label",
|
||||
description => "templateIdDay description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdEvent label",
|
||||
description => "templateIdEvent description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdEventEdit label",
|
||||
description => "templateIdEventEdit description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdSearch label",
|
||||
description => "templateIdSearch description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintMonth label",
|
||||
description => "templateIdPrintMonth description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintWeek label",
|
||||
description => "templateIdPrintWeek description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintDay label",
|
||||
description => "templateIdPrintDay description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
{
|
||||
title => "templateIdPrintEvent label",
|
||||
description => "templateIdPrintEvent description",
|
||||
namespace => "Asset_Calendar",
|
||||
},
|
||||
],
|
||||
variables => [
|
||||
],
|
||||
related => [
|
||||
],
|
||||
},
|
||||
|
||||
#### View Calendar Page
|
||||
|
||||
'view calendar template' => {
|
||||
title => 'view calendar title',
|
||||
body => 'view calendar body',
|
||||
isa => [
|
||||
{
|
||||
namespace => "Asset_Template",
|
||||
tag => "template variables"
|
||||
},
|
||||
{
|
||||
namespace => "Asset",
|
||||
tag => "asset template"
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
],
|
||||
variables => [
|
||||
{
|
||||
'name' => 'admin'
|
||||
},
|
||||
{
|
||||
'name' => 'adminControls'
|
||||
},
|
||||
{
|
||||
'name' => 'editor'
|
||||
},
|
||||
{
|
||||
'name' => 'urlAdd'
|
||||
},
|
||||
{
|
||||
'name' => 'urlDay'
|
||||
},
|
||||
{
|
||||
'name' => 'urlWeek'
|
||||
},
|
||||
{
|
||||
'name' => 'urlMonth'
|
||||
},
|
||||
{
|
||||
'name' => 'urlSearch'
|
||||
},
|
||||
{
|
||||
'name' => 'urlPrint'
|
||||
},
|
||||
{
|
||||
'name' => 'paramStart'
|
||||
},
|
||||
{
|
||||
'name' => 'paramType'
|
||||
},
|
||||
{
|
||||
'name' => 'extrasUrl'
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'calendar add/edit',
|
||||
namespace => 'Asset_Calendar'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
#### Search Calendar Page
|
||||
|
||||
#### ICal Calendar Page
|
||||
|
|
@ -100,25 +161,88 @@ push @{$editPage->{ fields }},
|
|||
|
||||
#### View Day Template
|
||||
|
||||
#### Search Template
|
||||
|
||||
__END__
|
||||
our $HELP = {
|
||||
'calendar add/edit' => {
|
||||
title => 'add/edit title',
|
||||
body => 'add/edit body',
|
||||
'view day template' => {
|
||||
title => 'view calendar day title',
|
||||
body => 'view calendar day body',
|
||||
isa => [
|
||||
{
|
||||
tag => 'asset fields',
|
||||
namespace => 'Asset'
|
||||
namespace => "Asset_Calendar",
|
||||
tag => "view calendar template"
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
],
|
||||
],
|
||||
variables => [
|
||||
{
|
||||
'name' => 'hours'
|
||||
},
|
||||
{
|
||||
'name' => 'hour12'
|
||||
},
|
||||
{
|
||||
'name' => 'hour24'
|
||||
},
|
||||
{
|
||||
'name' => 'hourM'
|
||||
},
|
||||
{
|
||||
'name' => 'pageNextStart'
|
||||
},
|
||||
{
|
||||
'name' => 'pageNextUrl'
|
||||
},
|
||||
{
|
||||
'name' => 'pagePrevStart'
|
||||
},
|
||||
{
|
||||
'name' => 'pagePrevUrl'
|
||||
},
|
||||
{
|
||||
'name' => 'dayName'
|
||||
},
|
||||
{
|
||||
'name' => 'dayAbbr'
|
||||
},
|
||||
{
|
||||
'name' => 'dayOfMonth'
|
||||
},
|
||||
{
|
||||
'name' => 'dayOfWeek'
|
||||
},
|
||||
{
|
||||
'name' => 'monthName'
|
||||
},
|
||||
{
|
||||
'name' => 'monthAbbr'
|
||||
},
|
||||
{
|
||||
'name' => 'year'
|
||||
},
|
||||
{
|
||||
'name' => 'ymd'
|
||||
},
|
||||
{
|
||||
'name' => 'mdy'
|
||||
},
|
||||
{
|
||||
'name' => 'dmy'
|
||||
},
|
||||
{
|
||||
'name' => 'epoch'
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'calendar add/edit',
|
||||
namespace => 'Asset_Calendar'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
#### Search Template
|
||||
|
||||
1;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue