add hover help to edit metadata

This commit is contained in:
Colin Kuskie 2005-10-14 23:05:32 +00:00
parent 98dc56f95b
commit dfe1cc9c04
3 changed files with 51 additions and 16 deletions

View file

@ -182,21 +182,25 @@ sub www_editMetaDataField {
$f->text( $f->text(
-name=>"fieldName", -name=>"fieldName",
-label=>WebGUI::International::get('Field name','Asset'), -label=>WebGUI::International::get('Field name','Asset'),
-hoverHelp=>WebGUI::International::get('Field Name description','Asset'),
-value=>$fieldInfo->{fieldName} -value=>$fieldInfo->{fieldName}
); );
$f->textarea( $f->textarea(
-name=>"description", -name=>"description",
-label=>WebGUI::International::get(85,"Asset"), -label=>WebGUI::International::get(85,"Asset"),
-hoverHelp=>WebGUI::International::get('Metadata Description description',"Asset"),
-value=>$fieldInfo->{description}); -value=>$fieldInfo->{description});
$f->fieldType( $f->fieldType(
-name=>"fieldType", -name=>"fieldType",
-label=>WebGUI::International::get(486,"Asset"), -label=>WebGUI::International::get(486,"Asset"),
-hoverHelp=>WebGUI::International::get('Data Type description',"Asset"),
-value=>$fieldInfo->{fieldType} || "text", -value=>$fieldInfo->{fieldType} || "text",
-types=> [ qw /text integer yesNo selectList radioList/ ] -types=> [ qw /text integer yesNo selectList radioList/ ]
); );
$f->textarea( $f->textarea(
-name=>"possibleValues", -name=>"possibleValues",
-label=>WebGUI::International::get(487,"Asset"), -label=>WebGUI::International::get(487,"Asset"),
-hoverHelp=>WebGUI::International::get('Possible Values description',"Asset"),
-value=>$fieldInfo->{possibleValues} -value=>$fieldInfo->{possibleValues}
); );
$f->submit(); $f->submit();

View file

@ -182,6 +182,26 @@ our $HELP = {
title => 'metadata edit property', title => 'metadata edit property',
body => 'metadata edit property body', body => 'metadata edit property body',
fields => [ fields => [
{
title => 'Field name',
description => 'Field Name description',
namespace => 'Asset',
},
{
title => '85',
description => 'Metadata Description description',
namespace => 'Asset',
},
{
title => '486',
description => 'Data Type description',
namespace => 'Asset',
},
{
title => '487',
description => 'Possible Values description',
namespace => 'Asset',
},
], ],
related => [ related => [
{ {

View file

@ -464,25 +464,36 @@ These are the icons and URLs that allow editing, cutting, copying, deleting and
context => q|The title of the content profiling manager for the admin console.| context => q|The title of the content profiling manager for the admin console.|
}, },
'Field Name description' => {
message => q|The name of this metadata property.It must be unique. <br>
It is advisable to use only letters (a-z), numbers (0-9) or underscores (_) for
the field names.</p>|,
lastUpdated => 1129329870,
},
'Metadata Description description' => {
message => q|An optional description for this metadata property. This text is displayed
as mouseover text in the asset properties tab.</p>|,
lastUpdated => 1129329870,
},
'Data Type description' => {
message => q|Choose the type of form element for this field.</p>|,
lastUpdated => 1129329870,
},
'Possible Values description' => {
message => q|This field is used only for the Radio List and Select List data types. Enter
the values you wish to appear, one per line.</p>|,
lastUpdated => 1129329870,
},
'metadata edit property body' => { 'metadata edit property body' => {
message => q| message => q|
You may add as many Metadata properties to a Wobject as you like.<br> <p>You may add as many Metadata properties to a Wobject as you like.</p>
<br>
<b>Field Name</b><br>
The name of this metadata property.It must be unique. <br>
It is advisable to use only letters (a-z), numbers (0-9) or underscores (_) for
the field names.
<p><b>Description<br>
</b>An optional description for this metadata property. This text is displayed
as mouseover text in the asset properties tab.</p>
<p><b>Data Type<br>
</b>Choose the type of form element for this field.<b><br>
<br>
Possible Values<br>
</b>This field is used only for the Radio List and Select List data types. Enter
the values you wish to appear, one per line.</p>
|, |,
lastUpdated => 1100232327 lastUpdated => 1129330051
}, },
'metadata manage body' => { 'metadata manage body' => {