add hover help to add/edit field form
This commit is contained in:
parent
8a3ad730e3
commit
414d6aa386
3 changed files with 135 additions and 57 deletions
|
|
@ -209,6 +209,7 @@ sub getEditForm {
|
|||
-value=>$self->getValue("templateId"),
|
||||
-namespace=>"DataForm",
|
||||
-label=>WebGUI::International::get(82,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('82 description',"Asset_DataForm"),
|
||||
-afterEdit=>'func=edit',
|
||||
-defaultValue=>"PBtmpl0000000000000141"
|
||||
);
|
||||
|
|
@ -217,6 +218,7 @@ sub getEditForm {
|
|||
-value=>$self->getValue("emailTemplateId"),
|
||||
-namespace=>"DataForm",
|
||||
-label=>WebGUI::International::get(80,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('80 description',"Asset_DataForm"),
|
||||
-afterEdit=>'func=edit'
|
||||
);
|
||||
$tabform->getTab("display")->template(
|
||||
|
|
@ -224,6 +226,7 @@ sub getEditForm {
|
|||
-value=>$self->getValue("acknowlegementTemplateId"),
|
||||
-namespace=>"DataForm",
|
||||
-label=>WebGUI::International::get(81,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('81 description',"Asset_DataForm"),
|
||||
-afterEdit=>'func=edit'
|
||||
);
|
||||
$tabform->getTab("display")->template(
|
||||
|
|
@ -231,6 +234,7 @@ sub getEditForm {
|
|||
-value=>$self->getValue("listTemplateId"),
|
||||
-namespace=>"DataForm/List",
|
||||
-label=>WebGUI::International::get(87,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('87 description',"Asset_DataForm"),
|
||||
-afterEdit=>'func=edit'
|
||||
);
|
||||
$tabform->getTab("display")->radioList(
|
||||
|
|
@ -238,16 +242,19 @@ sub getEditForm {
|
|||
-options=>{ 0 => WebGUI::International::get('data form','Asset_DataForm'),
|
||||
1 => WebGUI::International::get('data list','Asset_DataForm'),},
|
||||
-label=>WebGUI::International::get('defaultView',"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('defaultView description',"Asset_DataForm"),
|
||||
-value=>$self->getValue("defaultView"),
|
||||
);
|
||||
$tabform->getTab("properties")->HTMLArea(
|
||||
-name=>"acknowledgement",
|
||||
-label=>WebGUI::International::get(16, "Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('16 description', "Asset_DataForm"),
|
||||
-value=>($self->get("acknowledgement") || WebGUI::International::get(3, "Asset_DataForm"))
|
||||
);
|
||||
$tabform->getTab("properties")->yesNo(
|
||||
-name=>"mailData",
|
||||
-label=>WebGUI::International::get(74,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('74 description',"Asset_DataForm"),
|
||||
-value=>$self->getValue("mailData")
|
||||
);
|
||||
if ($self->getId eq "new" && $session{form}{proceed} ne "manageAssets") {
|
||||
|
|
@ -776,17 +783,20 @@ sub www_editField {
|
|||
$f->text(
|
||||
-name=>"label",
|
||||
-label=>WebGUI::International::get(77,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('77 description',"Asset_DataForm"),
|
||||
-value=>$field{label}
|
||||
);
|
||||
$f->text(
|
||||
-name=>"name",
|
||||
-label=>WebGUI::International::get(21,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('21 description',"Asset_DataForm"),
|
||||
-value=>$field{name}
|
||||
);
|
||||
if($field{sequenceNumber} && ! $field{isMailField}) {
|
||||
$f->integer(
|
||||
-name=>"position",
|
||||
-label=>WebGUI::International::get('Field Position',"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('Field Position description',"Asset_DataForm"),
|
||||
-value=>$field{sequenceNumber}
|
||||
);
|
||||
}
|
||||
|
|
@ -794,55 +804,65 @@ sub www_editField {
|
|||
-name=>"tid",
|
||||
-options=>$tab,
|
||||
-label=>WebGUI::International::get(104,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('104 description',"Asset_DataForm"),
|
||||
-value=>[ $field{DataForm_tabId} || 0 ]
|
||||
);
|
||||
$f->text(
|
||||
-name=>"subtext",
|
||||
-value=>$field{subtext},
|
||||
-label=>WebGUI::International::get(79,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('79 description',"Asset_DataForm"),
|
||||
);
|
||||
$f->selectList(
|
||||
-name=>"status",
|
||||
-options=>\%fieldStatus,
|
||||
-label=>WebGUI::International::get(22,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('22 description',"Asset_DataForm"),
|
||||
-value=> [ $field{status} || "editable" ] ,
|
||||
);
|
||||
$f->fieldType(
|
||||
-name=>"type",
|
||||
-label=>WebGUI::International::get(23,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('23 description',"Asset_DataForm"),
|
||||
-value=>$field{type} || "text"
|
||||
);
|
||||
$f->integer(
|
||||
-name=>"width",
|
||||
-label=>WebGUI::International::get(8,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('8 description',"Asset_DataForm"),
|
||||
-value=>($field{width} || 0)
|
||||
);
|
||||
$f->integer(
|
||||
-name=>"rows",
|
||||
-value=>$field{rows} || 0,
|
||||
-label=>WebGUI::International::get(27,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('27 description',"Asset_DataForm"),
|
||||
-subtext=>WebGUI::International::get(28,"Asset_DataForm"),
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"vertical",
|
||||
-value=>$field{vertical},
|
||||
-label=>WebGUI::International::get('editField-vertical-label', "Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('editField-vertical-label description', "Asset_DataForm"),
|
||||
-subtext=>WebGUI::International::get('editField-vertical-subtext', "Asset_DataForm")
|
||||
);
|
||||
$f->text(
|
||||
-name=>"extras",
|
||||
-value=>$field{extras},
|
||||
-label=>WebGUI::International::get('editField-extras-label', "Asset_DataForm")
|
||||
-hoverHelp=>WebGUI::International::get('editField-extras-label description', "Asset_DataForm")
|
||||
);
|
||||
$f->textarea(
|
||||
-name=>"possibleValues",
|
||||
-label=>WebGUI::International::get(24,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('24 description',"Asset_DataForm"),
|
||||
-value=>$field{possibleValues},
|
||||
-subtext=>'<br>'.WebGUI::International::get(85,"Asset_DataForm")
|
||||
);
|
||||
$f->textarea(
|
||||
-name=>"defaultValue",
|
||||
-label=>WebGUI::International::get(25,"Asset_DataForm"),
|
||||
-hoverHelp=>WebGUI::International::get('25 description',"Asset_DataForm"),
|
||||
-value=>$field{defaultValue},
|
||||
-subtext=>'<br>'.WebGUI::International::get(85,"Asset_DataForm")
|
||||
);
|
||||
|
|
|
|||
|
|
@ -81,6 +81,54 @@ our $HELP = {
|
|||
title => '62',
|
||||
body => '72',
|
||||
fields => [
|
||||
{
|
||||
title => '104',
|
||||
description => '104 description'
|
||||
},
|
||||
{
|
||||
title => '77',
|
||||
description => '77 description'
|
||||
},
|
||||
{
|
||||
title => '102',
|
||||
description => '102 description'
|
||||
},
|
||||
{
|
||||
title => '21',
|
||||
description => '21 description'
|
||||
},
|
||||
{
|
||||
title => '22',
|
||||
description => '22 description'
|
||||
},
|
||||
{
|
||||
title => '23',
|
||||
description => '23 description'
|
||||
},
|
||||
{
|
||||
title => '8',
|
||||
description => '8 description'
|
||||
},
|
||||
{
|
||||
title => '27',
|
||||
description => '27 description'
|
||||
},
|
||||
{
|
||||
title => 'editField-vertical-label',
|
||||
description => 'editField-vertical-label description'
|
||||
},
|
||||
{
|
||||
title => 'editField-extras-label',
|
||||
description => 'editField-extras-label description'
|
||||
},
|
||||
{
|
||||
title => '24',
|
||||
description => '24 description'
|
||||
},
|
||||
{
|
||||
title => '25',
|
||||
description => '25 description'
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -152,65 +152,75 @@ or to return to the page where the it was created.|,
|
|||
},
|
||||
|
||||
'72' => {
|
||||
message => q|<p>You may add as many additional fields to your Data Form as you like.
|
||||
|
||||
<p>
|
||||
<b>^International("104","Asset_DataForm");</b><br>
|
||||
When the form has multiple tabs, defines which tab of the form that the
|
||||
field is displayed in. Otherwise, all fields are displayed on the same
|
||||
page.
|
||||
|
||||
<p>
|
||||
<b>^International("77","Asset_DataForm");</b><br>
|
||||
This is an informative text label to let the user know what this field represents.
|
||||
|
||||
<p>
|
||||
<b>^International("102","Asset_DataForm");</b><br>
|
||||
An extension of the label, this is a description of what should go in the field or optional instructions for the field.
|
||||
|
||||
<p>
|
||||
<b>^International("21","Asset_DataForm");</b><br>
|
||||
The name of this field. It must be unique among all of the other fields on your form.
|
||||
|
||||
<p>
|
||||
<b>^International("22","Asset_DataForm");</b><br>
|
||||
Hidden fields will not be visible to the user, but will be sent in the email. Displayed fields can be seen by the user but not modified. Modifiable fields can be filled in by the user. Required fields must be filled in by the user.
|
||||
If you choose Hidden or Displayed, be sure to fill in a Default Value.
|
||||
|
||||
<p>
|
||||
<b>^International("23","Asset_DataForm");</b><br>
|
||||
Choose the type of form element for this field. This is also used
|
||||
to validate any input that the user may supply.
|
||||
|
||||
<p>
|
||||
<b>^International("8","Asset_DataForm");</b><br>
|
||||
Set the number of characters wide this form field will be.
|
||||
|
||||
<p>
|
||||
<b>^International("27","Asset_DataForm");</b><br>
|
||||
Set the number of characters tall this form field will be. Only used on textareas and HTMLAreas.
|
||||
|
||||
<p>
|
||||
<b>^International("editField-vertical-label","Asset_DataForm");</b><br>
|
||||
This property controls whether radio buttons and checklists are laid out horizontally or vertically.
|
||||
|
||||
<p>
|
||||
<b>^International("editField-extras-label","Asset_DataForm");</b><br>
|
||||
Here you can enter additional tag properties for the field tag. For instance 'class="myClass"'.
|
||||
|
||||
<p>
|
||||
<b>^International("24","Asset_DataForm");</b><br>
|
||||
This field is used for the list types (like Checkbox List and Select List). Enter the values you wish to appear, one per line.
|
||||
|
||||
<p>
|
||||
<b>^International("25","Asset_DataForm");</b><br>
|
||||
Enter the default value (if any) for the field. For Yes/No fields, enter "yes" to select "Yes" and "no" to select "No".
|
||||
<p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1112732072,
|
||||
message => q|<p>You may add as many additional fields to your Data Form as you like.<p>|,
|
||||
lastUpdated => 1119156650,
|
||||
},
|
||||
|
||||
'104 description' => {
|
||||
message => q|When the form has multiple tabs, defines which tab of the form that the
|
||||
field is displayed in. Otherwise, all fields are displayed on the same
|
||||
page.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'77 description' => {
|
||||
message => q|This is an informative text label to let the user know what this field represents.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'102 description' => {
|
||||
message => q|An extension of the label, this is a description of what should go in the field or optional instructions for the field.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'21 description' => {
|
||||
message => q|The name of this field. It must be unique among all of the other fields on your form.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'22 description' => {
|
||||
message => q|Hidden fields will not be visible to the user, but will be sent in the email. Displayed fields can be seen by the user but not modified. Modifiable fields can be filled in by the user. Required fields must be filled in by the user.
|
||||
If you choose Hidden or Displayed, be sure to fill in a Default Value.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'23 description' => {
|
||||
message => q|Choose the type of form element for this field. This is also used
|
||||
to validate any input that the user may supply.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'8 description' => {
|
||||
message => q|Set the number of characters wide this form field will be.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'27 description' => {
|
||||
message => q|Set the number of characters tall this form field will be. Only used on textareas and HTMLAreas.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'editField-vertical-label description' => {
|
||||
message => q|This property controls whether radio buttons and checklists are laid out horizontally or vertically.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'editField-extras-label description' => {
|
||||
message => q|Here you can enter additional tag properties for the field tag. For instance 'class="myClass"'.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'24 description' => {
|
||||
message => q|This field is used for the list types (like Checkbox List and Select List). Enter the values you wish to appear, one per line.|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
'25 description' => {
|
||||
message => q|Enter the default value (if any) for the field. For Yes/No fields, enter "yes" to select "Yes" and "no" to select "No".|,
|
||||
lastUpdated => 1119156590,
|
||||
},
|
||||
|
||||
|
||||
'16' => {
|
||||
message => q|Acknowledgment|,
|
||||
lastUpdated => 1101772851,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue