hover help

This commit is contained in:
Colin Kuskie 2005-06-22 04:00:55 +00:00
parent 9f662be71c
commit 100b9fa4ec
3 changed files with 103 additions and 35 deletions

View file

@ -174,6 +174,7 @@ sub getEditForm {
-value=>$self->getValue('templateId'),
-namespace=>"Poll",
-label=>WebGUI::International::get(73,"Asset_Poll")
-hoverHelp=>WebGUI::International::get('73 description',"Asset_Poll")
);
my ($i, $answers);
for ($i=1; $i<=20; $i++) {
@ -184,17 +185,20 @@ sub getEditForm {
$tabform->getTab("security")->yesNo(
-name=>"active",
-label=>WebGUI::International::get(3,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('3 description',"Asset_Poll"),
-value=>$self->getValue("active")
);
$tabform->getTab("security")->group(
-name=>"voteGroup",
-label=>WebGUI::International::get(4,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('4 description',"Asset_Poll"),
-value=>[$self->getValue("voteGroup")]
);
if ($session{setting}{useKarma}) {
$tabform->getTab("properties")->integer(
-name=>"karmaPerVote",
-label=>WebGUI::International::get(20,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('20 description',"Asset_Poll"),
-value=>$self->getValue("karmaPerVote")
);
} else {
@ -206,27 +210,32 @@ sub getEditForm {
$tabform->getTab("display")->integer(
-name=>"graphWidth",
-label=>WebGUI::International::get(5,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('5 description',"Asset_Poll"),
-value=>$self->getValue("graphWidth")
);
$tabform->getTab("properties")->text(
-name=>"question",
-label=>WebGUI::International::get(6,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('6 description',"Asset_Poll"),
-value=>$self->getValue("question")
);
$tabform->getTab("properties")->textarea(
-name=>"answers",
-label=>WebGUI::International::get(7,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('7 description',"Asset_Poll"),
-subtext=>('<span class="formSubtext"><br>'.WebGUI::International::get(8,"Asset_Poll").'</span>'),
-value=>$answers
);
$tabform->getTab("display")->yesNo(
-name=>"randomizeAnswers",
-label=>WebGUI::International::get(72,"Asset_Poll"),
-hoverHelp=>WebGUI::International::get('72 description',"Asset_Poll"),
-value=>$self->getValue("randomizeAnswers")
);
$tabform->getTab("properties")->yesNo(
-name=>"resetVotes",
-label=>WebGUI::International::get(10,"Asset_Poll")
-hoverHelp=>WebGUI::International::get('10 description',"Asset_Poll")
);
return $tabform;
}

View file

@ -5,6 +5,51 @@ our $HELP = {
title => '61',
body => '71',
fields => [
{
title => '73',
description => '73 description',
namespace => 'Asset_Poll',
},
{
title => '3',
description => '3 description',
namespace => 'Asset_Poll',
},
{
title => '4',
description => '4 description',
namespace => 'Asset_Poll',
},
{
title => '20',
description => '20 description',
namespace => 'Asset_Poll',
},
{
title => '5',
description => '5 description',
namespace => 'Asset_Poll',
},
{
title => '6',
description => '6 description',
namespace => 'Asset_Poll',
},
{
title => '7',
description => '7 description',
namespace => 'Asset_Poll',
},
{
title => '72',
description => '72 description',
namespace => 'Asset_Poll',
},
{
title => '10',
description => '10 description',
namespace => 'Asset_Poll',
},
],
related => [
{

View file

@ -81,44 +81,53 @@ The total number of votes that have been placed on this poll.
'71' => {
message => q|Polls can be used to get the impressions of your users on various topics. Polls are Wobjects and Assets so they have the basic properties of both of those. Polls also have these unique properties:
<p>
<b>Active</b><br>
If this box is checked, then users will be able to vote. Otherwise they'll only be able to see the results of the poll.
<p>
<b>Who can vote?</b><br>
Choose a group that can vote on this Poll. The default group is Everyone.
<p>
<b>Karma Per Vote</b><br>
How much karma should be given to a user when they vote? This option is only
available if karma is enabled in the settings. The default amount is 0.
<p>
<b>Graph Width</b><br>
The width of the poll results graph. The width is measured in pixels. The default
width is 150 pixels.
<p>
<b>Question</b><br>
What is the question you'd like to ask your users?
<p>
<b>Answers</b><br>
Enter the possible answers to your question. Enter only one answer per line. Polls are only capable of 20 possible answers.
<p>
<b>Randomize answers?</b><br>
In order to be sure that the ordering of the answers in the poll does not bias your users, it is often helpful to present the options in a random order each time they are shown. Select "yes" to randomize the answers on the poll.
<p>
<b>Reset votes?</b><br>
Reset the votes on this Poll. This option is only available when editing an existing Poll.
<p>
|,
lastUpdated => 1109998278,
lastUpdated => 1119412535,
},
'3 description' => {
message => q|If this box is checked, then users will be able to vote. Otherwise they'll only be able to see the results of the poll.|,
lastUpdated => 1119412478,
},
'4 description' => {
message => q|Choose a group that can vote on this Poll. The default group is Everyone.|,
lastUpdated => 1119412478,
},
'20 description' => {
message => q|How much karma should be given to a user when they vote? This option is only
available if karma is enabled in the settings. The default amount is 0.|,
lastUpdated => 1119412478,
},
'5 description' => {
message => q|The width of the poll results graph. The width is measured in pixels. The default
width is 150 pixels.|,
lastUpdated => 1119412478,
},
'6 description' => {
message => q|What is the question you'd like to ask your users?|,
lastUpdated => 1119412478,
},
'7 description' => {
message => q|Enter the possible answers to your question. Enter only one answer per line. Polls are only capable of 20 possible answers.|,
lastUpdated => 1119412478,
},
'72 description' => {
message => q|In order to be sure that the ordering of the answers in the poll does not bias your users, it is often helpful to present the options in a random order each time they are shown. Select "yes" to randomize the answers on the poll.|,
lastUpdated => 1119412478,
},
'10 description' => {
message => q|Reset the votes on this Poll. This option is only available when editing an existing Poll.|,
lastUpdated => 1119412478,
},
'3' => {
message => q|Active|,
lastUpdated => 1031514049
@ -174,6 +183,11 @@ Reset the votes on this Poll. This option is only available when editing an exi
lastUpdated => 1050183668
},
'73 description' => {
message => q|Select a template to display your Poll|,
lastUpdated => 1119412624
},
'10' => {
message => q|Reset votes?|,
lastUpdated => 1091514049