From 56c2da72186d6953057c1a8eae521f1f05a8127f Mon Sep 17 00:00:00 2001
From: Colin Kuskie
Date: Sun, 19 Jun 2005 21:08:24 +0000
Subject: [PATCH] enabled for hover help
---
lib/WebGUI/Asset/FilePile.pm | 22 ++-
lib/WebGUI/Help/Asset_FilePile.pm | 32 ++++
lib/WebGUI/i18n/English/Asset_FilePile.pm | 177 +++++++++++++++++-----
3 files changed, 183 insertions(+), 48 deletions(-)
diff --git a/lib/WebGUI/Asset/FilePile.pm b/lib/WebGUI/Asset/FilePile.pm
index 7af6ba942..90e14c6ed 100644
--- a/lib/WebGUI/Asset/FilePile.pm
+++ b/lib/WebGUI/Asset/FilePile.pm
@@ -74,25 +74,29 @@ sub edit {
$tabform->getTab("properties")->yesNo(
-name=>"isHidden",
-value=>1,
- -label=>WebGUI::International::get(886,"Asset"),
+ -label=>WebGUI::International::get(886,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('886 description',"FilePile"),
-uiLevel=>6
);
$tabform->getTab("properties")->yesNo(
-name=>"newWindow",
-value=>0,
- -label=>WebGUI::International::get(940,"Asset"),
+ -label=>WebGUI::International::get(940,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('940 description',"FilePile"),
-uiLevel=>6
);
$tabform->addTab("security",WebGUI::International::get(107,"Asset"),6);
$tabform->getTab("security")->dateTime(
-name=>"startDate",
- -label=>WebGUI::International::get(497,"Asset"),
+ -label=>WebGUI::International::get(497,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('497 description',"FilePile"),
-value=>$self->get("startDate"),
-uiLevel=>6
);
$tabform->getTab("security")->dateTime(
-name=>"endDate",
- -label=>WebGUI::International::get(498,"Asset"),
+ -label=>WebGUI::International::get(498,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('498 description',"FilePile"),
-value=>$self->get("endDate"),
-uiLevel=>6
);
@@ -114,26 +118,30 @@ sub edit {
$tabform->getTab("security")->selectList(
-name=>"ownerUserId",
-options=>$users,
- -label=>WebGUI::International::get(108,"Asset"),
+ -label=>WebGUI::International::get(108,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('108 description',"FilePile"),
-value=>[$self->get("ownerUserId")],
-subtext=>$subtext,
-uiLevel=>6
);
$tabform->getTab("security")->group(
-name=>"groupIdView",
- -label=>WebGUI::International::get(872,"Asset"),
+ -label=>WebGUI::International::get(872,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('872 description',"FilePile"),
-value=>[$self->get("groupIdView")],
-uiLevel=>6
);
$tabform->getTab("security")->group(
-name=>"groupIdEdit",
- -label=>WebGUI::International::get(871,"Asset"),
+ -label=>WebGUI::International::get(871,"FilePile"),
+ -hoverHelp=>WebGUI::International::get('871 description',"FilePile"),
-value=>[$self->get("groupIdEdit")],
-excludeGroups=>[1,7],
-uiLevel=>6
);
$tabform->getTab("properties")->readOnly(
-label=>WebGUI::International::get("upload files", "Asset_FilePile"),
+ -hoverHelp=>WebGUI::International::get("upload files", "Asset_FilePile"),
-value=>$self->getUploadControl
);
$self->getAdminConsole->setHelp("file pile add/edit","FilePile");
diff --git a/lib/WebGUI/Help/Asset_FilePile.pm b/lib/WebGUI/Help/Asset_FilePile.pm
index 5ac5dc3ed..1cafa274d 100644
--- a/lib/WebGUI/Help/Asset_FilePile.pm
+++ b/lib/WebGUI/Help/Asset_FilePile.pm
@@ -6,6 +6,38 @@ our $HELP = {
title => 'file pile add/edit title',
body => 'file pile add/edit body',
fields => [
+ {
+ title => '886',
+ description => '886 description'
+ },
+ {
+ title => '940',
+ description => '940 description'
+ },
+ {
+ title => '497',
+ description => '497 description'
+ },
+ {
+ title => '498',
+ description => '498 description'
+ },
+ {
+ title => '108',
+ description => '108 description'
+ },
+ {
+ title => '872',
+ description => '872 description'
+ },
+ {
+ title => '871',
+ description => '871 description'
+ },
+ {
+ title => 'upload files',
+ description => 'upload files description'
+ },
],
related => [
{
diff --git a/lib/WebGUI/i18n/English/Asset_FilePile.pm b/lib/WebGUI/i18n/English/Asset_FilePile.pm
index d148aa65d..452b5bb6e 100644
--- a/lib/WebGUI/i18n/English/Asset_FilePile.pm
+++ b/lib/WebGUI/i18n/English/Asset_FilePile.pm
@@ -12,51 +12,60 @@ our $I18N = {
Unlike most Assets, File Piles do not share the base set of Asset properties. All File Piles
have the following properties:
-
-^International("886","Asset");
-Whether or not this asset will be hidden from the navigation menu and site maps.
-
-
-
-^International("940","Asset");
-Select yes to open this asset in a new window.
-
-
-
-^International("497","Asset");
-The date when users may begin viewing this page. Before this date only Content Managers with the rights to edit this page will see it.
-
-
-
-^International("498","Asset");
-The date when users will stop viewing this page. After this date only Content Managers with the rights to edit this page will see it.
-
-
-
-^International("108","Asset");
-The owner of a page is usually the person who created the page. This user always has full edit and viewing rights on the page.
-
-
-
-^International("872","Asset");
-Choose which group can view this page. If you want both visitors and registered users to be able to view the page then you should choose the "Everybody" group.
-
-
-
-^International("871","Asset");
-Choose the group that can edit this page. The group assigned editing rights can also always view the page.
-
-
-
-^International("upload files","Asset_FilePile");
-This is where files can be uploaded from your computer.
-
-
|,
context => 'Describing file pile add/edit form specific fields',
- lastUpdated => 1111799160,
+ lastUpdated => 1119214836,
},
+ '886 description' => {
+ message => q|Whether or not this asset will be hidden from the navigation menu and site maps.
+
|,
+ lastUpdated => 1119214815,
+ },
+
+ '940 description' => {
+ message => q|Select yes to open this asset in a new window.
+|,
+ lastUpdated => 1119214815,
+ },
+
+ '497 description' => {
+ message => q|The date when users may begin viewing this page. Before this date only Content Managers with the rights to edit this page will see it.
+|,
+ lastUpdated => 1119214815,
+ },
+
+ '498 description' => {
+ message => q|The date when users will stop viewing this page. After this date only Content Managers with the rights to edit this page will see it.
+|,
+ lastUpdated => 1119214815,
+ },
+
+ '108 description' => {
+ message => q|The owner of a page is usually the person who created the page. This user always has full edit and viewing rights on the page.
+|,
+ lastUpdated => 1119214815,
+ },
+
+ '872 description' => {
+ message => q|Choose which group can view this page. If you want both visitors and registered users to be able to view the page then you should choose the "Everybody" group.
+|,
+ lastUpdated => 1119214815,
+ },
+
+ '871 description' => {
+ message => q|Choose the group that can edit this page. The group assigned editing rights can also always view the page.
+|,
+ lastUpdated => 1119214815,
+ },
+
+ 'upload files description' => {
+ message => q|This is where files can be uploaded from your computer.
+|,
+ lastUpdated => 1119214815,
+ },
+
+
'add pile' => {
message => q|Add a Pile of Files|,
context => q|label for File Pile Admin Console|,
@@ -69,6 +78,92 @@ This is where files can be uploaded from your computer.
lastUpdated => 1107387247,
},
+ '886' => {
+ lastUpdated => 1044727952,
+ message => q|Hide from navigation?|
+ },
+
+ '886 description' => {
+ message => q|Whether or not this asset will be hidden from the navigation menu and site maps.
+UI level: 6
+|,
+ lastUpdated => 1119149899,
+ },
+
+ '940' => {
+ lastUpdated => 1050438829,
+ message => q|Open in new window?|
+ },
+
+ '940 description' => {
+ message => q|Select yes to open this asset in a new window.
+UI level: 6
+|,
+ lastUpdated => 1119149899,
+ }
+
+ '497' => {
+ lastUpdated => 1031514049,
+ message => q|Start Date|
+ },
+
+ '497 description' => {
+ message => q|The date when users may begin viewing this asset. Before this date only Content Managers with the rights to edit this asset will see it
+UI level: 6.
+|,
+ lastUpdated => 1119149899,
+ }
+
+ '498' => {
+ lastUpdated => 1031514049,
+ message => q|End Date|
+ },
+
+ '498 description' => {
+ message => q|The date when users will stop viewing this asset. After this date only Content Managers with the rights to edit this asset will see it.
+UI level: 6
+|,
+ lastUpdated => 1119149899,
+ },
+
+ '108' => {
+ lastUpdated => 1031514049,
+ message => q|Owner|
+ },
+
+ '108 description' => {
+ message => q|The owner of a asset is usually the person who created the asset. This user always has full edit and viewing rights on the asset.
+UI level: 6
+
+ NOTE: The owner can only be changed by an administrator.
+
|,
+ lastUpdated => 1119149899,
+ },
+
+ '872' => {
+ lastUpdated => 1044218038,
+ message => q|Who can view?|
+ },
+
+ '872 description' => {
+ message => q|Choose which group can view this asset. If you want both visitors and registered users to be able to view the asset then you should choose the "Everybody" group.
+UI level: 6
+|,
+ lastUpdated => 1119149899,
+ },
+
+ '871' => {
+ lastUpdated => 1044218026,
+ message => q|Who can edit?|
+ },
+
+ '871 description' => {
+ message => q|Choose the group that can edit this asset. The group assigned editing rights can also always view the asset.
+UI level: 6
+|,
+ lastUpdated => 1119149899,
+ },
+
};
1;