From 16c6b4f9897f899be79d611443681c3104d0bb78 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 6 Feb 2006 17:34:32 +0000 Subject: [PATCH] forward port of doc work --- lib/WebGUI/Asset/Wobject/InOutBoard.pm | 8 ++++- lib/WebGUI/Help/Asset_InOutBoard.pm | 32 +++++++++++++++++ lib/WebGUI/Operation/Commerce.pm | 8 ++++- lib/WebGUI/i18n/English/Asset_InOutBoard.pm | 38 ++++++++++++++++++++- 4 files changed, 83 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/InOutBoard.pm b/lib/WebGUI/Asset/Wobject/InOutBoard.pm index 9e08ddb0e..583ae052a 100644 --- a/lib/WebGUI/Asset/Wobject/InOutBoard.pm +++ b/lib/WebGUI/Asset/Wobject/InOutBoard.pm @@ -107,35 +107,41 @@ sub getEditForm { $tabform->getTab("properties")->textarea( -name=>"statusList", -label=>$i18n->get(1), + -hoverHelp=>$i18n->get('1 description'), -value=>$self->getValue("statusList"), -subtext=>$i18n->get(2), ); $tabform->getTab("display")->integer( -name=>"paginateAfter", -label=>$i18n->get(12), - -value=>$self->getValue("paginateAfter") + -hoverHelp=>$i18n->get('12 description'), + -value=>$self->getValue("paginateAfter"), ); $tabform->getTab("display")->template ( -name => "inOutTemplateId", -value => $self->getValue("inOutTemplateId"), -label => $i18n->get("In Out Template"), + -hoverHelp => $i18n->get("In Out Template description"), -namespace => "InOutBoard" ); $tabform->getTab("display")->template ( -name => "reportTemplateId", -value => $self->getValue("reportTemplateId"), -label => $i18n->get(13), + -hoverHelp => $i18n->get("13 description"), -namespace => "InOutBoard/Report" ); $tabform->getTab("security")->group( -name=>"reportViewerGroup", -value=>[$self->getValue("reportViewerGroup")], -label=>$i18n->get(3) + -hoverHelp=>$i18n->get("3 description"), ); $tabform->getTab("security")->group( -name=>"inOutGroup", -value=>[$self->getValue("inOutGroup")], -label=>$i18n->get('inOutGroup') + -hoverHelp=>$i18n->get('inOutGroup description'), ); return $tabform; } diff --git a/lib/WebGUI/Help/Asset_InOutBoard.pm b/lib/WebGUI/Help/Asset_InOutBoard.pm index 194eece84..0e95d0a0a 100644 --- a/lib/WebGUI/Help/Asset_InOutBoard.pm +++ b/lib/WebGUI/Help/Asset_InOutBoard.pm @@ -4,6 +4,38 @@ our $HELP = { 'in out board add/edit' => { title => '18', body => '19', + fields => [ + { + title => '1', + description => '1 description', + namespace => 'Asset_InOutBoard', + }, + { + title => '12', + description => '12 description', + namespace => 'Asset_InOutBoard', + }, + { + title => 'In Out Template', + description => 'In Out Template description', + namespace => 'Asset_InOutBoard', + }, + { + title => '13', + description => '13 description', + namespace => 'Asset_InOutBoard', + }, + { + title => '3', + description => '3 description', + namespace => 'Asset_InOutBoard', + }, + { + title => 'inOutGroup', + description => 'inOutGroup description', + namespace => 'Asset_InOutBoard', + }, + ], related => [ { tag => '2', diff --git a/lib/WebGUI/Operation/Commerce.pm b/lib/WebGUI/Operation/Commerce.pm index bae179151..ee6ce0d8e 100644 --- a/lib/WebGUI/Operation/Commerce.pm +++ b/lib/WebGUI/Operation/Commerce.pm @@ -390,6 +390,7 @@ sub www_editCommerceSettings { # general $tabform->getTab('general')->template( -name => 'commerceConfirmCheckoutTemplateId', + -value => $session{setting}{commerceConfirmCheckoutTemplateId}, -label => $i18n->get('confirm checkout template'), -hoverHelp => $i18n->get('confirm checkout template description'), -value => $session->setting->get("commerceConfirmCheckoutTemplateId"), @@ -399,7 +400,7 @@ sub www_editCommerceSettings { -name => 'commerceTransactionErrorTemplateId', -label => $i18n->get('transaction error template'), -hoverHelp => $i18n->get('transaction error template description'), - -value => $session->setting->get("commerceTransactionPendingTemplateId"), + -value => $session{setting}{commerceTransactionPendingTemplateId}, -namespace => 'Commerce/TransactionError' ); $tabform->getTab('general')->template( @@ -407,6 +408,7 @@ sub www_editCommerceSettings { -label => $i18n->get('checkout canceled template'), -hoverHelp => $i18n->get('checkout canceled template description'), -value => $session->setting->get("commerceCheckoutCanceledTemplateId"), + -hoverHelp => $i18n->get('checkout canceled template description'), -namespace => 'Commerce/CheckoutCanceled' ); $tabform->getTab('general')->template( @@ -414,6 +416,7 @@ sub www_editCommerceSettings { -label => $i18n->get('checkout select payment template'), -hoverHelp => $i18n->get('checkout select payment template description'), -value => $session->setting->get("commerceSelectPaymentGatewayTemplateId"), + -hoverHelp => $i18n->get('checkout select payment template description'), -namespace => 'Commerce/SelectPaymentGateway' ); $tabform->getTab('general')->template( @@ -421,6 +424,7 @@ sub www_editCommerceSettings { -label => $i18n->get('checkout select shipping template'), -hoverHelp => $i18n->get('checkout select shipping template description'), -value => $session->setting->get("commerceSelectShippingMethodTemplateId"), + -hoverHelp => $i18n->get('checkout select shipping template description'), -namespace => 'Commerce/SelectShippingMethod' ); $tabform->getTab('general')->template( @@ -428,6 +432,7 @@ sub www_editCommerceSettings { -label => $i18n->get('view shopping cart template'), -hoverHelp => $i18n->get('view shopping cart template description'), -value => $session->setting->get("commerceViewShoppingCartTemplateId"), + -hoverHelp => $i18n->get('view shopping cart template description'), -namespace => 'Commerce/ViewShoppingCart' ); @@ -436,6 +441,7 @@ sub www_editCommerceSettings { -label => $i18n->get('daily report email'), -hoverHelp => $i18n->get('daily report email description'), -value => $session->setting->get("commerceSendDailyReportTo") + -hoverHelp => $i18n->get('daily report email description'), ); # Check which payment plugins will compile, and load them. diff --git a/lib/WebGUI/i18n/English/Asset_InOutBoard.pm b/lib/WebGUI/i18n/English/Asset_InOutBoard.pm index 7b2019951..5ab9bd665 100644 --- a/lib/WebGUI/i18n/English/Asset_InOutBoard.pm +++ b/lib/WebGUI/i18n/English/Asset_InOutBoard.pm @@ -34,8 +34,44 @@ our $I18N = { lastUpdated =>1091624565 }, + '1 description' => { + message => q|The status list allows you to customize what the 'states' of a user are. i.e., 'In' or 'Out'.|, + lastUpdated => 1138988640, + }, + + '12 description' => { + message => q|How many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?|, + lastUpdated => 1138988640, + }, + + 'In Out Template description' => { + message => q|Choose a template to style the display of the In/Out Board to users.|, + lastUpdated => 1138988640, + }, + + '13 description' => { + message => q|Choose a template to style the display of the In/Out Board Report.|, + lastUpdated => 1138988640, + }, + + '3 description' => { + message => q|Which groups are allowed to view reports generated by the In/Out Board Wobject?|, + lastUpdated => 1138988640, + }, + + 'inOutGroup description' => { + message => q|Whichs groups are allowed to use this In/Out Board to change their status?|, + lastUpdated => 1138988640, + }, + '19' => { - message => q|An In/Out board is used to keep track of whether people are currently in/out of the office. It shows the current In/Out status of all WebGUI users and also logs the event the person has left for, the time they left and the time they return.

Status List
The status list allows you to customize what the 'states' of a user are. i.e., 'In' or 'Out'.

Paginate After
How many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?

Report Paginate After
Same as paginate after except that it controls the number of rows displayed in the In/Out Report.

Who Can View Reports?
What group is allowed to view reports generated by the In/Out Board Wobject.

|, + message => q|

+An In/Out board is used to keep track of whether people are currently +in/out of the office. It shows the current In/Out status of all WebGUI +users and also logs the reason the person has left, the time they +left and the time they return. The log +

+|, lastUpdated =>1091624565 },