From e97d998c1b53f699b0c4e8cc56203c89e47ac865 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 8 Jul 2005 22:37:12 +0000 Subject: [PATCH] hover help --- lib/WebGUI/Help/Subscription.pm | 60 +++++++++++++ lib/WebGUI/Operation/Subscription.pm | 13 +++ lib/WebGUI/i18n/English/Subscription.pm | 112 +++++++++++++++--------- 3 files changed, 146 insertions(+), 39 deletions(-) diff --git a/lib/WebGUI/Help/Subscription.pm b/lib/WebGUI/Help/Subscription.pm index c956e7b0c..c99b66483 100644 --- a/lib/WebGUI/Help/Subscription.pm +++ b/lib/WebGUI/Help/Subscription.pm @@ -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 => [ { diff --git a/lib/WebGUI/Operation/Subscription.pm b/lib/WebGUI/Operation/Subscription.pm index ea7671a79..a7f85cb9d 100644 --- a/lib/WebGUI/Operation/Subscription.pm +++ b/lib/WebGUI/Operation/Subscription.pm @@ -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 ); diff --git a/lib/WebGUI/i18n/English/Subscription.pm b/lib/WebGUI/i18n/English/Subscription.pm index 79ad335a2..44b1d1f21 100755 --- a/lib/WebGUI/i18n/English/Subscription.pm +++ b/lib/WebGUI/i18n/English/Subscription.pm @@ -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.

|, + lastUpdated => 1120861450, + }, + + 'subscription price description' => { + message => q|Price to pay for the subscription.

|, + lastUpdated => 1120861450, + }, + + 'subscription description description' => { + message => q|Detailed description of the subscription.

|, + lastUpdated => 1120861450, + }, + + 'subscription group description' => { + message => q|When a user payed the fee, he/she will be added to this group.

|, + lastUpdated => 1120861450, + }, + + 'subscription duration description' => { + message => q|This sets the length of one subscription term. ie. You pay every month, or every half year.

|, + lastUpdated => 1120861450, + }, + + 'execute on subscription description' => { + message => q|A (Perl) script to call when someone has subscribed and payed.

|, + lastUpdated => 1120861450, + }, + + 'subscription karma description' => { + message => q|The amount of karma which is added to the user after he/she subscribes.

|, + 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.
-
-Subscription name
-Name of the subscription.
-
-Price
-Price to pay for the subscription.
-
-Description
-Detailed description of the subscription.
-
-Group to subscribe to
-When a user payed the fee, he/she will be added to this group.
-
-Subscription period
-This sets the length of one subscription term. ie. You pay every month, or every half year.
-
-Execute on subscription
-A (Perl) script to call when someone has subscribed and payed.
-
-Karma
-The amount of karma which is added to the user after he/she subscribes.
|, - lastUpdated => 1101754802, +payed for. The following is the list of properties attached to each Description.

+|, + 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.
|, }, '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.
|, lastUpdated => 0, context => q|The title of the Create Subscription code batch help page.| }, + + 'noc description' => { + message => q|Number of codes to create

|, + lastUpdated => 1120858265, + }, + + 'code length description' => { + message => q|The number of characters in the generated codes. Codes must be at least 10 +characters long.

|, + lastUpdated => 1120858265, + }, + + 'code expire description' => { + message => q|The code must be used before this date.

|, + lastUpdated => 1120858265, + }, + + 'association description' => { + message => q|Which subscription(s) are made with the generated codes.

|, + lastUpdated => 1120858265, + }, + + 'batch description description' => { + message => q|Description of the batch.
|, + lastUpdated => 1120858265, + }, + 'help create batch body' => { - message => q|Generate a batch of subscription codes.
-
-Number of codes in batch
-Number of codes to create
-
-Codes expires on
-The code must be used before this date.
-
-Associate with subscription
-Which subscription(s) are made with the generated codes.
-
-Batch description
-Description of the batch.
|, - lastUpdated => 0, + message => q|Generate a batch of subscription codes.

|, + lastUpdated => 1120858203, context => q|The content of the Create Subscription code batch help page.| },