From 6430a672c10a27dde35eef9f9a407e7208f2df1d Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 9 Jan 2006 22:48:36 +0000 Subject: [PATCH] merge of Matrix doc patches #1 --- lib/WebGUI/Asset/Wobject/Matrix.pm | 7 ++- lib/WebGUI/Help/Asset_Matrix.pm | 56 ++++++++++++++++++++++++ lib/WebGUI/i18n/English/Asset_Matrix.pm | 57 +++++++++++++++++++++++++ 3 files changed, 119 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/Matrix.pm b/lib/WebGUI/Asset/Wobject/Matrix.pm index 0056caaa0..3524cf00e 100644 --- a/lib/WebGUI/Asset/Wobject/Matrix.pm +++ b/lib/WebGUI/Asset/Wobject/Matrix.pm @@ -455,22 +455,26 @@ sub www_editListing { -name=>"productName", -value=>$listing->{productName}, -label=>WebGUI::International::get('product name','Asset_Matrix'), + -hoverHelp=>WebGUI::International::get('product name description','Asset_Matrix'), -maxLength=>25 ); $f->text( -name=>"versionNumber", -value=>$listing->{versionNumber}, -label=>WebGUI::International::get('version number','Asset_Matrix'), + -hoverHelp=>WebGUI::International::get('version number description','Asset_Matrix'), ); $f->url( -name=>"productUrl", -value=>$listing->{productUrl}, -label=>WebGUI::International::get('product url','Asset_Matrix'), + -hoverHelp=>WebGUI::International::get('product url description','Asset_Matrix'), ); $f->text( -name=>"manufacturerName", -value=>$listing->{manufacturerName}, -label=>WebGUI::International::get('manufacturer name','Asset_Matrix'), + -hoverHelp=>WebGUI::International::get('manufacturer name description','Asset_Matrix'), ); $f->url( -name=>"manufacturerUrl", @@ -488,6 +492,7 @@ sub www_editListing { -value=>[$listing->{maintainerId}], -label=>WebGUI::International::get('listing maintainer','Asset_Matrix'), -options=>$self->session->db->buildHashRef("select userId,username from users order by username") + -hoverHelp=>WebGUI::International::get('listing maintainer description','Asset_Matrix'), ); } my %goodBad = ( @@ -518,7 +523,7 @@ sub www_editListing { -subtext=>"
".$field->{description} ); } elsif ($field->{fieldType} eq "goodBad") { - my $value = ($field->{value} || $field->{defaultValue} || "No"); + my $value = ($field->{value} || $field->{defaultValue} || WebGUI::International::get("no",'Asset_Matrix')); $f->selectBox( -name=>$field->{name}, -value=>[$value], diff --git a/lib/WebGUI/Help/Asset_Matrix.pm b/lib/WebGUI/Help/Asset_Matrix.pm index 320da5de1..16c5d4511 100644 --- a/lib/WebGUI/Help/Asset_Matrix.pm +++ b/lib/WebGUI/Help/Asset_Matrix.pm @@ -94,6 +94,62 @@ our $HELP = { }, ], }, + 'listing add/edit' => { + title => 'listing add/edit help title', + body => 'listing add/edit help body', + fields => [ + { + title => 'product name', + description => 'product name description', + namespace => 'Asset_Matrix', + }, + { + title => 'version number', + description => 'version number description', + namespace => 'Asset_Matrix', + }, + { + title => 'product url', + description => 'product url description', + namespace => 'Asset_Matrix', + }, + { + title => 'manufacturer name', + description => 'manufacturer name description', + namespace => 'Asset_Matrix', + }, + { + title => 'manufacturer url', + description => 'manufacturer url description', + namespace => 'Asset_Matrix', + }, + { + title => 'description', + description => 'description description', + namespace => 'Asset_Matrix', + }, + { + title => 'listing maintainer', + description => 'listing maintainer description', + namespace => 'Asset_Matrix', + }, + { + title => 'matrix specific fields', + description => 'matrix specific fields description', + namespace => 'Asset_Matrix', + }, + ], + related => [ + { + tag => 'matrix add/edit', + namespace => 'Asset_Matrix' + }, + { + tag => 'listing detail template', + namespace => 'Asset_Matrix' + }, + ], + }, 'search template' => { title => 'search template help title', body => 'search template help body', diff --git a/lib/WebGUI/i18n/English/Asset_Matrix.pm b/lib/WebGUI/i18n/English/Asset_Matrix.pm index c4e1a869c..d0cce6cbf 100644 --- a/lib/WebGUI/i18n/English/Asset_Matrix.pm +++ b/lib/WebGUI/i18n/English/Asset_Matrix.pm @@ -995,6 +995,63 @@ our $I18N = { message => q|Limited| }, + 'listing add/edit help title' => { + lastUpdated => 1136488382, + message => q|Matrix Listing, Add/Edit| + }, + + 'listing add/edit help body' => { + lastUpdated => 1135279558, + message => q|In this form, you may add a listing in the Matrix for a new product or edit the listing for an existing product.| + }, + + 'product name description' => { + lastUpdated => 1135279558, + message => q|Enter the name of the product. If there are entries for the product with different revisions, it would be best to make sure the names are the same.| + }, + + 'version number description' => { + lastUpdated => 1135279558, + message => q|Enter the release or version number for the product.| + }, + + 'product url description' => { + lastUpdated => 1135279558, + message => q|If the product has its own website, enter the complete URL for it here.| + }, + + 'manufacturer name description' => { + lastUpdated => 1135279558, + message => q|Enter the manufacturer of the product.| + }, + + 'manufacturer url description' => { + lastUpdated => 1135279558, + message => q|If the manufacturer has a website, enter the complete URL for it here.| + }, + + 'description description' => { + lastUpdated => 1135279558, + message => q|Please give a general description of the product. Specific details can be rated in the form fields below.| + }, + + 'listing maintainer description' => { + lastUpdated => 1136488950, + message => q|If left blank, this will be the name of the user who created this product listing. The + listing maintainer is allowed to edit this listing, even if they are not members of the group + to add or edit listings.| + }, + + 'matrix specific fields description' => { + lastUpdated => 1135279558, + message => q|Each matrix is configured to compare the features and performance of various products. These features and performance criteria are displayed for you to rate on an item by item basis.| + }, + + 'matrix specific fields' => { + lastUpdated => 1135279558, + message => q|Matrix Specific Fields| + }, + }; 1;