From 706fecfedd09339943e2a3e0d786c903bcccd376 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 24 May 2006 04:20:31 +0000 Subject: [PATCH] basic help commit version tag --- lib/WebGUI/Help/VersionTag.pm | 31 +++++++++++++++++++++++++++ lib/WebGUI/Operation/VersionTag.pm | 3 +++ lib/WebGUI/i18n/English/VersionTag.pm | 17 +++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/lib/WebGUI/Help/VersionTag.pm b/lib/WebGUI/Help/VersionTag.pm index 931b7cedf..f42c8e223 100644 --- a/lib/WebGUI/Help/VersionTag.pm +++ b/lib/WebGUI/Help/VersionTag.pm @@ -7,6 +7,10 @@ our $HELP = { fields => [ ], related => [ + { + tag => 'commit version tag', + namespace => 'VersionTag' + }, { tag => 'manage pending versions', namespace => 'VersionTag' @@ -35,6 +39,33 @@ our $HELP = { ], }, + 'commit version tag' => { + title => 'commit version tag', + body => 'commit version tag body', + fields => [ + { + title => 'version tag name', + description => 'version tag name description commit', + namespace => 'VersionTag', + }, + { + title => 'comments', + description => 'comments description commit', + namespace => 'VersionTag', + }, + ], + related => [ + { + tag => 'versions manage', + namespace => 'VersionTag' + }, + { + tag => 'manage committed versions', + namespace => 'VersionTag' + }, + ], + }, + 'manage committed versions' => { title => 'manage committed versions', body => 'manage committed versions body', diff --git a/lib/WebGUI/Operation/VersionTag.pm b/lib/WebGUI/Operation/VersionTag.pm index e45d232e7..56e0dec50 100644 --- a/lib/WebGUI/Operation/VersionTag.pm +++ b/lib/WebGUI/Operation/VersionTag.pm @@ -191,6 +191,7 @@ sub www_commitVersionTag { $f->submit; $f->readOnly( label=>$i18n->get("version tag name"), + hoverHelp=>$i18n->get("version tag name description commit"), value=>$tag->get("name") ); $f->hidden( @@ -204,9 +205,11 @@ sub www_commitVersionTag { $f->textarea( name=>"comments", label=>$i18n->get("comments") + hoverHelp=>$i18n->get("comments description commit") ); $f->submit; my $ac = WebGUI::AdminConsole->new($session,"versions"); + $ac->setHelp('commit version tag', 'VersionTag'); return $ac->render($f->print); } } diff --git a/lib/WebGUI/i18n/English/VersionTag.pm b/lib/WebGUI/i18n/English/VersionTag.pm index 86f626088..509cfccba 100644 --- a/lib/WebGUI/i18n/English/VersionTag.pm +++ b/lib/WebGUI/i18n/English/VersionTag.pm @@ -35,6 +35,12 @@ our $I18N = { context => q|hover help for the comments field| }, + 'comments description commit' => { + message => q|Attach any comments or feedback to this tag that you wish. They will be available to anyone looking at this tag in the future as reference.|, + lastUpdated => 0, + context => q|hover help for the comments field| + }, + 'deny' => { message => q|Deny|, lastUpdated => 0, @@ -280,6 +286,11 @@ our $I18N = { lastUpdated => 1129403469, }, + 'version tag name description commit' => { + message => q|

The name of the version tag you are about to commit.

|, + lastUpdated => 1129403469, + }, + 'content versioning' => { message => q|Content Versioning|, lastUpdated => 0, @@ -334,6 +345,12 @@ our $I18N = { lastUpdated => 1148359381, }, + 'commit version tag body' => { + message => q|

Committing the version tag will make it the current version that is used and displayed on your website.

+|, + lastUpdated => 1148444236, + }, + 'topicName' => { message => q|Version Control|, lastUpdated => 1148360141,