From 1b9c2f324ce1511a3ed9320dec66f671e389c4e0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 2 Sep 2009 08:48:07 -0700 Subject: [PATCH] fix 10838, AdSku template variable help. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Help/Asset_AdSku.pm | 62 +++++++++ lib/WebGUI/i18n/English/Asset_AdSku.pm | 170 ++++++++++++++++++++++++- 3 files changed, 232 insertions(+), 1 deletion(-) create mode 100644 lib/WebGUI/Help/Asset_AdSku.pm diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index c6913d09a..4a9728646 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.8.0 + - fixed #10844: Ad Sales: No template variable Help 7.7.19 - fixed #10838: Forwarded forum post email to new CS adds reply to original thread diff --git a/lib/WebGUI/Help/Asset_AdSku.pm b/lib/WebGUI/Help/Asset_AdSku.pm new file mode 100644 index 000000000..a2df836ed --- /dev/null +++ b/lib/WebGUI/Help/Asset_AdSku.pm @@ -0,0 +1,62 @@ +package WebGUI::Help::Asset_AdSku; + +use strict; + +our $HELP = { + + 'view template' => { + title => 'view template title', + body => '', + isa => [ + ], + variables => [ + { name => 'formHeader', }, + { name => 'formFooter', }, + { name => 'formSubmit', }, + { name => 'error_msg', }, + { name => 'hasAddedToCart', }, + { name => 'continueShoppingUrl', }, + { name => 'manageLink', }, + { name => 'adSkuTitle', }, + { name => 'adSkuDescription', }, + { name => 'formTitle', }, + { name => 'formLink', }, + { name => 'formImage', }, + { name => 'formClicks', }, + { name => 'formImpressions', }, + { name => 'formAdId', }, + { name => 'clickPrice', }, + { name => 'impressionPrice', }, + { name => 'minimumClicks', }, + { name => 'minimumImpressions', }, + { name => 'clickDiscount', }, + { name => 'impressionDiscount', }, + ], + related => [ + ], + }, + + 'manage template' => { + title => 'manage template title', + body => '', + isa => [ + ], + variables => [ + { + name => 'myAds', + variables => [ + { name => 'rowTitle', }, + { name => 'rowClicks', }, + { name => 'rowImpressions', }, + { name => 'rowRenewLink', }, + ], + }, + ], + related => [ + ], + }, + +}; + +1; +#vim:ft=perl diff --git a/lib/WebGUI/i18n/English/Asset_AdSku.pm b/lib/WebGUI/i18n/English/Asset_AdSku.pm index 41b34e972..1636e0f33 100644 --- a/lib/WebGUI/i18n/English/Asset_AdSku.pm +++ b/lib/WebGUI/i18n/English/Asset_AdSku.pm @@ -102,7 +102,7 @@ our $I18N = { 'property impression discounts help' => { message => q|Enter discounts one per line at the start of the line. Extra text is ignored so you can add comments to the discounts. Each discount consists of two numbers separated by '@' with no spaces. The first number is the percent discount(no decimal point) the second number is the number of items purchased. So 5@1000 indicates a 5% discount for 1000 or more impressions purchased.|, lastUpdated => 1251410361, - context => q|Help text for the impresison discounts field.| + context => q|Help text for the impression discounts field.| }, 'property adsku karma' => { @@ -267,6 +267,174 @@ our $I18N = { context => q|Remind the user to that they must purchase a minimum number of impressions, use '%d' to indicate the minimum number of impressions.| }, + 'view template title' => { + message => q|Ad Sales View Template.|, + lastUpdated => 0, + context => q|Help topic title.| + }, + + 'formHeader' => { + message => q|HTML code to start the form to buy an Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formFooter' => { + message => q|HTML code to end the form to buy an Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formSubmit' => { + message => q|A button with internationalized label to submit the form.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'error_msg' => { + message => q|Any errors from submitting the form. Multiple errors will be joined by break tags.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'hasAddedToCart' => { + message => q|A boolean which is true when the user has just bought an Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'continueShoppingUrl' => { + message => q|The URL back to the normal view screen of the Ad Sales asset.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'manageLink' => { + message => q|The URL to the screen that lists all Ads bought by the current user.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'adSkuTitle' => { + message => q|The title of this Asset.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'adSkuDescription' => { + message => q|The description of this Asset.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formTitle' => { + message => q|Form for the user to input the title of the Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formLink' => { + message => q|Form for the user to input the URL the Ad will link to.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formImage' => { + message => q|Form for the user to upload an image for the Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formClicks' => { + message => q|Form for the user to enter the number of clicks they want to buy.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formImpressions' => { + message => q|Form for the user to enter the number of impressions they want to buy.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'formAdId' => { + message => q|Hidden form element containing the unique identifier for the Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'clickPrice' => { + message => q|The price for each click.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'impressionPrice' => { + message => q|The price for each impression.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'clickDiscount' => { + message => q|Shows what discounts are available for buying lots of clicks.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'impressionDiscount' => { + message => q|Shows what discounts are available for buying lots of impressions.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'minimumClicks' => { + message => q|Shows the minimum number of clicks that must be bought.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'minimumImpressions' => { + message => q|Shows the minimum number of impressions that must be bought.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'manage template title' => { + message => q|Ad Sales Manage Template.|, + lastUpdated => 0, + context => q|Help topic title.| + }, + + 'myAds' => { + message => q|A loop containing information about all ads bought by the current user.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'rowTitle' => { + message => q|The title of an Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'rowClicks' => { + message => q|The number of clicks bought for this Ad, and the number of clicks used so far.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'rowImpressions' => { + message => q|The number of impressions bought for this Ad, and the number of impressions used so far.|, + lastUpdated => 0, + context => q|Template variable.| + }, + + 'rowRenewLink' => { + message => q|A link to take the user to a screen where they can purchase additional clicks, impressions and edit their Ad.|, + lastUpdated => 0, + context => q|Template variable.| + }, + # 'TODO' => { # message => q|TODO|, # lastUpdated => 0,