diff --git a/lib/WebGUI/Asset/Sku/Donation.pm b/lib/WebGUI/Asset/Sku/Donation.pm index 7a02e108f..8f4e85b8d 100644 --- a/lib/WebGUI/Asset/Sku/Donation.pm +++ b/lib/WebGUI/Asset/Sku/Donation.pm @@ -70,7 +70,7 @@ sub definition { defaultValue => $i18n->get("default thank you message"), fieldType => "HTMLArea", label => $i18n->get("thank you message"), - hoverHelp => $i18n->get("thank you message"), + hoverHelp => $i18n->get("thank you message help"), }, defaultPrice => { tab => "shop", diff --git a/lib/WebGUI/Asset/Wobject/Shelf.pm b/lib/WebGUI/Asset/Wobject/Shelf.pm index 07aa41378..6533173bd 100644 --- a/lib/WebGUI/Asset/Wobject/Shelf.pm +++ b/lib/WebGUI/Asset/Wobject/Shelf.pm @@ -34,8 +34,8 @@ sub definition { defaultValue => 'nFen0xjkZn8WkpM93C9ceQ', tab => "display", namespace => "Shelf", - hoverHelp => $i18n->get('view template help'), - label => $i18n->get('view template'), + hoverHelp => $i18n->get('shelf template help'), + label => $i18n->get('shelf template'), } ); push(@{$definition}, { diff --git a/lib/WebGUI/Help/Asset_Donation.pm b/lib/WebGUI/Help/Asset_Donation.pm new file mode 100644 index 000000000..504365717 --- /dev/null +++ b/lib/WebGUI/Help/Asset_Donation.pm @@ -0,0 +1,35 @@ +package WebGUI::Help::Asset_Donation; + +use strict; + + +our $HELP = { + 'template' => { + + title => 'donation template', + body => '', + isa => [ + { + tag => 'sku properties', + namespace => 'Asset_Sku', + }, + ], + fields => [ + ], + variables => [ + { name => "formHeader" , required=>1}, + { name => "formFooter" , required=>1 }, + { name => "donateButton" , required=>1 }, + { name => "priceField" , required=>1 }, + { name => "hasAddedToCart" , required=>1 }, + { name => "thankYouMessage", description=>"thank you message help" }, + { name => "defaultPrice", description=>"default price help" }, + { name => "templateId", description=>"donation template help" }, + ], + related => [ + ], + }, + +}; + +1; diff --git a/lib/WebGUI/Help/Asset_Shelf.pm b/lib/WebGUI/Help/Asset_Shelf.pm new file mode 100644 index 000000000..09b73ba08 --- /dev/null +++ b/lib/WebGUI/Help/Asset_Shelf.pm @@ -0,0 +1,36 @@ +package WebGUI::Help::Asset_Shelf; + +use strict; + + +our $HELP = { + 'template' => { + + title => 'shelf template', + body => '', + isa => [ + { namespace => "Asset_Wobject", + tag => "wobject template variables" + }, + { tag => 'pagination template variables', + namespace => 'WebGUI' + }, + ], + fields => [ + ], + variables => [ + { name => "shelves" , required=>1}, + { name => "products" , required=>1, variables => [ + { name => "thumbnailUrl" }, + { name => "price" }, + ], + }, + { name => "templateId", description=>"shelf template help" }, + ], + related => [ + ], + }, + +}; + +1; diff --git a/lib/WebGUI/Help/_help.skeleton b/lib/WebGUI/Help/_help.skeleton index 15810e049..5fbc528ff 100644 --- a/lib/WebGUI/Help/_help.skeleton +++ b/lib/WebGUI/Help/_help.skeleton @@ -1,10 +1,9 @@ -package WebGUI::Help::_Help; ## Be sure to change the package name to match your filename. +package WebGUI::Help::Asset_FlatDiscount; -use strict; ##Required for good Perl::Critic code +use strict; -##Stub document for creating help documents. -our $HELP = { ##hashref of hashes +our $HELP = { 'help article' => { #name of article, used as a reference by other articles #note, all Assets should have an "assetName add/edit" entry if #you want them automatically listed in Asset, List of Available diff --git a/lib/WebGUI/i18n/English/Asset_Donation.pm b/lib/WebGUI/i18n/English/Asset_Donation.pm index 91ab11674..9bf618f87 100644 --- a/lib/WebGUI/i18n/English/Asset_Donation.pm +++ b/lib/WebGUI/i18n/English/Asset_Donation.pm @@ -3,6 +3,42 @@ package WebGUI::i18n::English::Asset_Donation; use strict; our $I18N = { + 'donation template help' => { + message => q|Donation Template|, + lastUpdated => 0, + context => q|a help label| + }, + + 'donateButton' => { + message => q|The button for the donation form.|, + lastUpdated => 0, + context => q|template variable| + }, + + 'formHeader' => { + message => q|The top of the donation form.|, + lastUpdated => 0, + context => q|template variable| + }, + + 'formFooter' => { + message => q|The bottom of the donation form.|, + lastUpdated => 0, + context => q|template variable| + }, + + 'priceField' => { + message => q|The field in the donation form that the user types in what they wish to donate.|, + lastUpdated => 0, + context => q|template variable| + }, + + 'hasAddedToCart' => { + message => q|A condition indicating that the user has added the donation to their cart, so we can display the thank you message.|, + lastUpdated => 0, + context => q|template variable| + }, + 'donate button' => { message => q|Add Donation To Cart|, lastUpdated => 0, @@ -27,13 +63,13 @@ our $I18N = { context => q|help for default price field| }, - 'template' => { - message => q|Template|, + 'donation template' => { + message => q|Donation Template|, lastUpdated => 0, context => q|the label for the field where you select the template for this asset| }, - 'template help' => { + 'donation template help' => { message => q|Choose a template that should be used to display the donation.|, lastUpdated => 0, context => q|help for default price field| diff --git a/lib/WebGUI/i18n/English/Asset_Shelf.pm b/lib/WebGUI/i18n/English/Asset_Shelf.pm index 262569cfa..114e50ecb 100644 --- a/lib/WebGUI/i18n/English/Asset_Shelf.pm +++ b/lib/WebGUI/i18n/English/Asset_Shelf.pm @@ -3,19 +3,43 @@ package WebGUI::i18n::English::Asset_Shelf; use strict; our $I18N = { + 'price' => { + message => q|The price of this sku.|, + lastUpdated => 0, + context => q|a template variable|, + }, + + 'thumbnailUrl' => { + message => q|The URL for a thumbnail image of this sku. If it has no thumbnail, then this variable will be empty.|, + lastUpdated => 0, + context => q|a template variable|, + }, + + 'shelves' => { + message => q|A loop containing the list of shelves that are children of this one in the asset tree. Each record in the loop contains all the properties of a shelf.|, + lastUpdated => 0, + context => q|a template variable|, + }, + + 'products' => { + message => q|A loop containing the list of products that match the keywords specified in this shelf. Each record in the loop contains all the properties of the matching sku, plus the following variables.|, + lastUpdated => 0, + context => q|a template variable|, + }, + 'subcategories' => { message => q|Subcategories|, lastUpdated => 0, context => q|a template label|, }, - 'view template' => { - message => q|View Template|, + 'shelf template' => { + message => q|Shelf Template|, lastUpdated => 0, context => q|a property|, }, - 'view template help' => { + 'shelf template help' => { message => q|Choose the template that will display the list of products associated with this shelf.|, lastUpdated => 0, context => q|help for a property|,