hover help

This commit is contained in:
Colin Kuskie 2005-07-08 22:37:12 +00:00
parent 3a44da6fa7
commit e97d998c1b
3 changed files with 146 additions and 39 deletions

View file

@ -5,6 +5,41 @@ our $HELP = {
title => 'help edit subscription title',
body => 'help edit subscription body',
fields => [
{
title => 'subscription name',
description => 'subscription name description',
namespace => 'Subscription',
},
{
title => 'subscription price',
description => 'subscription price description',
namespace => 'Subscription',
},
{
title => 'subscription description',
description => 'subscription description description',
namespace => 'Subscription',
},
{
title => 'subscription group',
description => 'subscription group description',
namespace => 'Subscription',
},
{
title => 'subscription duration',
description => 'subscription duration description',
namespace => 'Subscription',
},
{
title => 'execute on subscription',
description => 'execute on subscription description',
namespace => 'Subscription',
},
{
title => 'subscription karma',
description => 'subscription karma description',
namespace => 'Subscription',
},
],
related => [
{
@ -52,6 +87,31 @@ our $HELP = {
title => 'help create batch title',
body => 'help create batch body',
fields => [
{
title => 'noc',
description => 'noc description',
namespace => 'Subscription',
},
{
title => 'code length',
description => 'code length description',
namespace => 'Subscription',
},
{
title => 'code expire',
description => 'code expire description',
namespace => 'Subscription',
},
{
title => 'association',
description => 'association description',
namespace => 'Subscription',
},
{
title => 'batch description',
description => 'batch description description',
namespace => 'Subscription',
},
],
related => [
{

View file

@ -68,21 +68,25 @@ sub www_createSubscriptionCodeBatch {
$f->integer(
-name => 'noc',
-label => $i18n->get('noc'),
-hoverHelp => $i18n->get('noc description'),
-value => $session{form}{noc} || 1
);
$f->integer(
-name => 'codeLength',
-label => $i18n->get('code length'),
-hoverHelp => $i18n->get('code length description'),
-value => $session{form}{codeLength} || 64
);
$f->interval(
-name => 'expires',
-label => $i18n->get('codes expire'),
-hoverHelp => $i18n->get('codes expire description'),
-value => $session{form}{expires} || WebGUI::DateTime::intervalToSeconds(1, 'months')
);
$f->selectList(
-name => 'subscriptionId',
-label => $i18n->get('association'),
-hoverHelp => $i18n->get('association description'),
-options=> \%subscriptions,
-multiple=>1,
-size => 5,
@ -91,6 +95,7 @@ sub www_createSubscriptionCodeBatch {
$f->textarea(
-name => 'description',
-label => $i18n->get('batch description'),
-hoverHelp => $i18n->get('batch description description'),
-value => $session{form}{description}
);
$f->submit;
@ -194,38 +199,45 @@ sub www_editSubscription {
$f->text(
-name => 'name',
-label => $i18n->get('subscription name'),
-hoverHelp => $i18n->get('subscription name description'),
-value => $properties->{name}
);
$f->float(
-name => 'price',
-label => $i18n->get('subscription price'),
-hoverHelp => $i18n->get('subscription price description'),
-value => $properties->{price} || '0.00'
);
$f->textarea(
-name => 'description',
-label => $i18n->get('subscription description'),
-hoverHelp => $i18n->get('subscription description description'),
-value => $properties->{description}
);
$f->group(
-name => 'subscriptionGroup',
-label => $i18n->get('subscription group'),
-hoverHelp => $i18n->get('subscription group description'),
-value => [$properties->{subscriptionGroup} || 2]
);
$f->selectList(
-name => 'duration',
-label => $i18n->get('subscription duration'),
-hoverHelp => $i18n->get('subscription duration description'),
-value => [$properties->{duration} || 'Monthly'],
-options=> WebGUI::Commerce::Payment::recurringPeriodValues
);
$f->text(
-name => 'executeOnSubscription',
-label => $i18n->get('execute on subscription'),
-hoverHelp => $i18n->get('execute on subscription description'),
-value => $properties->{executeOnSubscription}
);
if ($session{setting}{useKarma}) {
$f->integer(
-name => 'karma',
-label => $i18n->get('subscription karma'),
-hoverHelp => $i18n->get('subscription karma description'),
-value => $properties->{karma} || 0
);
}
@ -423,6 +435,7 @@ sub www_redeemSubscriptionCode {
$f->text(
-name => 'code',
-label => $i18n->get('code'),
-hoverHelp => $i18n->get('code description'),
-maxLength => 64,
-size => 30
);

View file

@ -61,6 +61,11 @@ our $I18N = {
context => q|Shows up in the table header in listSubscriptionCodes.|
},
'code description' => {
message => q|The subscription code that you want to redeem|,
lastUpdated => 1101228391,
},
'delete batch confirm' => {
message => q|Are you sure to delete this batch?|,
lastUpdated => 1101228391,
@ -97,32 +102,46 @@ our $I18N = {
context => q|The Add/Edit subscription help page title.|
},
'subscription name description' => {
message => q|Name of the subscription.<p>|,
lastUpdated => 1120861450,
},
'subscription price description' => {
message => q|Price to pay for the subscription.<p>|,
lastUpdated => 1120861450,
},
'subscription description description' => {
message => q|Detailed description of the subscription.<p>|,
lastUpdated => 1120861450,
},
'subscription group description' => {
message => q|When a user payed the fee, he/she will be added to this group.<p>|,
lastUpdated => 1120861450,
},
'subscription duration description' => {
message => q|This sets the length of one subscription term. ie. You pay every month, or every half year.<p>|,
lastUpdated => 1120861450,
},
'execute on subscription description' => {
message => q|A (Perl) script to call when someone has subscribed and payed.<p>|,
lastUpdated => 1120861450,
},
'subscription karma description' => {
message => q|The amount of karma which is added to the user after he/she subscribes.<p>|,
lastUpdated => 1120861450,
},
'help edit subscription body' => {
message => q|A subscription will allow the user a piece of content which he/she has
payed for. The following is the list of properties attached to each
Description.<br>
<br>
<b>Subscription name</b><br>
Name of the subscription.<br>
<br>
<b>Price</b><br>
Price to pay for the subscription.<br>
<br>
<b>Description</b><br>
Detailed description of the subscription.<br>
<br>
<b>Group to subscribe to</b><br>
When a user payed the fee, he/she will be added to this group.<br>
<br>
<b>Subscription period</b><br>
This sets the length of one subscription term. ie. You pay every month, or every half year.<br>
<br>
<b>Execute on subscription</b><br>
A (Perl) script to call when someone has subscribed and payed.<br>
<br>
<b>Karma</b><br>
The amount of karma which is added to the user after he/she subscribes.<br>|,
lastUpdated => 1101754802,
payed for. The following is the list of properties attached to each Description.<p>
|,
lastUpdated => 1120861475,
context => q|The Add/Edit subscription help page text.|
},
@ -289,7 +308,7 @@ The amount of karma which is added to the user after he/she subscribes.<br>|,
},
'help manage subscription codes body' => {
message => q|A subscription code is a 64 character code that is tied to a set of subscriptions. A user can redeem such a code, and thus make himself subscribed for one term to all subscriptions the code is tied to, using the 'Redeem a subscription code' link in his account menu. Note that when redeeming a subscription code no money is charged.|,
message => q|A subscription code is a string of characters that is tied to a set of subscriptions. A user can redeem such a code, and thus make himself subscribed for one term to all subscriptions the code is tied to, using the 'Redeem a subscription code' link in his account menu. Note that when redeeming a subscription code no money is charged.|,
lastUpdated => 1101754831,
context => q|The content of the Manage Subscriptions codes help page.|
},
@ -299,22 +318,37 @@ The amount of karma which is added to the user after he/she subscribes.<br>|,
lastUpdated => 0,
context => q|The title of the Create Subscription code batch help page.|
},
'noc description' => {
message => q|Number of codes to create<p>|,
lastUpdated => 1120858265,
},
'code length description' => {
message => q|The number of characters in the generated codes. Codes must be at least 10
characters long.<p>|,
lastUpdated => 1120858265,
},
'code expire description' => {
message => q|The code must be used before this date.<p>|,
lastUpdated => 1120858265,
},
'association description' => {
message => q|Which subscription(s) are made with the generated codes.<p>|,
lastUpdated => 1120858265,
},
'batch description description' => {
message => q|Description of the batch.<br>|,
lastUpdated => 1120858265,
},
'help create batch body' => {
message => q|Generate a batch of subscription codes.<br>
<br>
<b>Number of codes in batch</b><br>
Number of codes to create<br>
<br>
<b>Codes expires on</b><br>
The code must be used before this date.<br>
<br>
<b>Associate with subscription</b><br>
Which subscription(s) are made with the generated codes.<br>
<br>
<b>Batch description</b><br>
Description of the batch.<br>|,
lastUpdated => 0,
message => q|Generate a batch of subscription codes.<p> |,
lastUpdated => 1120858203,
context => q|The content of the Create Subscription code batch help page.|
},