hover help

This commit is contained in:
Colin Kuskie 2005-06-27 05:48:35 +00:00
parent 7c159debf2
commit 68c21b3f9f
3 changed files with 223 additions and 74 deletions

View file

@ -185,6 +185,7 @@ sub getEditForm {
$tabform->getTab('display')->template(
-name => 'templateId',
-label => WebGUI::International::get('view template', 'Asset_Survey'),
-hoverHelp => WebGUI::International::get('view template description', 'Asset_Survey'),
-value => $self->getValue('templateId'),
-namespace => 'Survey',
-afterEdit => 'func=edit'
@ -192,6 +193,7 @@ sub getEditForm {
$tabform->getTab('display')->template(
-name => 'responseTemplateId',
-label => WebGUI::International::get('response template', 'Asset_Survey'),
-hoverHelp => WebGUI::International::get('response template description', 'Asset_Survey'),
-value => $self->getValue('responseTemplateId'),
-namespace => 'Survey/Response',
-afterEdit => 'func=edit'
@ -199,6 +201,7 @@ sub getEditForm {
$tabform->getTab('display')->template(
-name => 'gradebookTemplateId',
-label => WebGUI::International::get('gradebook template', 'Asset_Survey'),
-hoverHelp => WebGUI::International::get('gradebook template description', 'Asset_Survey'),
-value => $self->getValue('gradebookTemplateId'),
-namespace => 'Survey/Gradebook',
-afterEdit => 'func=edit'
@ -206,6 +209,7 @@ sub getEditForm {
$tabform->getTab('display')->template(
-name => 'overviewTemplateId',
-label => WebGUI::International::get('overview template', 'Asset_Survey'),
-hoverHelp => WebGUI::International::get('overview template description', 'Asset_Survey'),
-value => $self->getValue('overviewTemplateId'),
-namespace => 'Survey/Overview',
-afterEdit => 'func=edit'
@ -219,12 +223,14 @@ sub getEditForm {
response => WebGUI::International::get(7,'Asset_Survey')
},
-label => WebGUI::International::get(8,'Asset_Survey'),
-hoverHelp => WebGUI::International::get('8 description','Asset_Survey'),
-value => [$self->getValue("questionOrder")]
);
$tabform->getTab('display')->integer(
-name => "questionsPerPage",
-value => $self->getValue("questionsPerPage"),
-label => WebGUI::International::get(83,'Asset_Survey')
-hoverHelp => WebGUI::International::get('83 description','Asset_Survey')
);
$tabform->getTab('properties')->selectList(
-name => "mode",
@ -233,31 +239,37 @@ sub getEditForm {
quiz => WebGUI::International::get(10,'Asset_Survey')
},
-label => WebGUI::International::get(11,'Asset_Survey'),
-hoverHelp => WebGUI::International::get('11 description','Asset_Survey'),
-value => [$self->getValue("mode")]
);
$tabform->getTab('properties')->yesNo(
-name => "anonymous",
-value => $self->getValue("anonymous"),
-label => WebGUI::International::get(81,'Asset_Survey')
-hoverHelp => WebGUI::International::get('81 description','Asset_Survey')
);
$tabform->getTab('properties')->integer(
-name => "maxResponsesPerUser",
-value => $self->getValue("maxResponsesPerUser"),
-label => WebGUI::International::get(84,'Asset_Survey')
-hoverHelp => WebGUI::International::get('84 description','Asset_Survey')
);
$tabform->getTab('properties')->integer(
-name => "questionsPerResponse",
-value => $self->getValue("questionsPerResponse"),
-label => WebGUI::International::get(85,'Asset_Survey')
-hoverHelp => WebGUI::International::get('85 description','Asset_Survey')
);
$tabform->getTab('security')->group(
-name => "groupToTakeSurvey",
-value => [$self->getValue("groupToTakeSurvey")],
-label => WebGUI::International::get(12,'Asset_Survey')
-hoverHelp => WebGUI::International::get('12 description','Asset_Survey')
);
$tabform->getTab('security')->group(
-name => "groupToViewReports",
-label => WebGUI::International::get(13,'Asset_Survey'),
-hoverHelp => WebGUI::International::get('13 description','Asset_Survey'),
-value => [$self->getValue("groupToViewReports")]
);
if ($self->get("wobjectId") eq "new") {
@ -267,6 +279,7 @@ sub getEditForm {
backToPage=>WebGUI::International::get(745,'Asset_Survey')
},
-value=>"addQuestion"
-hoverHelp => WebGUI::International::get('what next','Asset_Survey'),
);
}
@ -783,16 +796,19 @@ sub www_editQuestion {
-name => "question",
-value => $question->{question},
-label => WebGUI::International::get(14,'Asset_Survey')
-hoverHelp => WebGUI::International::get('14 description','Asset_Survey')
);
$f->yesNo(
-name => "allowComment",
-value => $question->{allowComment},
-label => WebGUI::International::get(15,'Asset_Survey')
-hoverHelp => WebGUI::International::get('15 description','Asset_Survey')
);
$f->yesNo(
-name => "randomizeAnswers",
-value => $question->{randomizeAnswers},
-label => WebGUI::International::get(16,'Asset_Survey')
-hoverHelp => WebGUI::International::get('16 description','Asset_Survey')
);
if ($self->get("questionOrder") eq "response") {
my $ql = WebGUI::SQL->buildHashRef("select Survey_questionId,question
@ -803,6 +819,7 @@ sub www_editQuestion {
-options=> $ql,
-value => [$question->{gotoQuestion}],
-label => WebGUI::International::get(21,'Asset_Survey')
-hoverHelp => WebGUI::International::get('21 description','Asset_Survey')
);
}
@ -821,6 +838,7 @@ sub www_editQuestion {
$f->whatNext(
-options=> \%options,
-value => "addMultipleChoiceAnswer"
-hoverHelp => WebGUI::International::get('what next question description','Asset_Survey')
);
}
$f->submit;

View file

@ -5,6 +5,71 @@ our $HELP = {
title => '3',
body => '4',
fields => [
{
title => 'view template',
description => 'view template description',
namespace => 'Asset_Survey',
},
{
title => 'response template',
description => 'response template description',
namespace => 'Asset_Survey',
},
{
title => 'gradebook template',
description => 'gradebook template description',
namespace => 'Asset_Survey',
},
{
title => 'overview template',
description => 'overview template description',
namespace => 'Asset_Survey',
},
{
title => '8',
description => '8 description',
namespace => 'Asset_Survey',
},
{
title => '83',
description => '83 description',
namespace => 'Asset_Survey',
},
{
title => '11',
description => '11 description',
namespace => 'Asset_Survey',
},
{
title => '81',
description => '81 description',
namespace => 'Asset_Survey',
},
{
title => '84',
description => '84 description',
namespace => 'Asset_Survey',
},
{
title => '85',
description => '85 description',
namespace => 'Asset_Survey',
},
{
title => '12',
description => '12 description',
namespace => 'Asset_Survey',
},
{
title => '13',
description => '13 description',
namespace => 'Asset_Survey',
},
{
title => 'what next',
description => 'what next description',
namespace => 'Asset_Survey',
},
],
related => [
{
@ -45,6 +110,31 @@ our $HELP = {
title => '17',
body => 'question add/edit body',
fields => [
{
title => '14',
description => '14 description',
namespace => 'Asset_Survey',
},
{
title => '15',
description => '15 description',
namespace => 'Asset_Survey',
},
{
title => '16',
description => '16 description',
namespace => 'Asset_Survey',
},
{
title => '21',
description => '21 description',
namespace => 'Asset_Survey',
},
{
title => 'what next question',
description => 'what next question description',
namespace => 'Asset_Survey',
},
],
related => [
{

View file

@ -656,66 +656,93 @@ The default label for survey.url.
message => q|Surveys allow you to gather information from your users. In the case of WebGUI surveys, you can also use them to test your user's knowledge.
<p/>
Surveys are Wobjects and Assets, so they have the properties of both. Survery have these unique properties:<p/>
<b>Template</b><br/>
This template is used to display the Survey itself.
<p/>
<b>Survey Template Response</b><br/>
This template is used to display the questions and answers for the user to pick.
<p/>
<b>Gradebook Template</b><br/>
This template is used to display, on a user-by-user basis how many questions they got
correct and what percentage answered were correct.
<p/>
<b>Statistical Overview Template</b><br/>
This template is used to display a statistical overview of the all responses
to the Survey.
<p/>
<b>Question Order</b><br/>
The order the questions will be asked. Sequential displays the questions in the order you create them. Random displays the questions randomly. Response driven displays the questions in order based on the responses of the users.
<p/>
<b>Questions per page</b><br/>
The number of questions that will be displayed per page. The default is 1.
<p/>
<b>Mode</b><br/>
By default the Survey is in survey mode. This allows it to ask questions of your users. However, if you switch to Quiz mode, you can have a self-correcting test of your user's knowledge.
<p/>
<b>Anonymous responses?</b><br/>
Select whether or not the survey will record and display information that can identify a user and their responses. If left at the default value of "No", the survey will record the user's IP address as well as their WebGUI User ID and Username if logged in. This info will then be available in the survey's reports. If set to "Yes", these three fields will contain scrambled data that can not be traced to a particular user.
<p/>
<b>Maximum Responses Per User?</b><br/>
The number of times the user can attempt to get the correct answer on each question. The
default is 1.
<p/>
<b>Questions Per Response?</b><br/>
How many questions are given to each user?
<p/>
<b>Who can take the survey?</b><br/>
Which users can participate in the survey?
<p/>
<b>Who can view reports?</b><br/>
Who can view the results of the survey?
<p/>
<b>What next?</b><br/>
After creating a new Survey, you may either starting adding questions or go back to the page where
the survey was added.
<p/>
|,
lastUpdated => 1110059528
lastUpdated => 1119849727
},
'view template description' => {
message => q|This template is used to display the Survey itself.
<p/>|,
lastUpdated => 1119849705,
},
'response template description' => {
message => q|This template is used to display the questions and answers for the user to pick.
<p/>|,
lastUpdated => 1119849705,
},
'gradebook template description' => {
message => q|This template is used to display, on a user-by-user basis how many questions they got
correct and what percentage answered were correct.
<p/>|,
lastUpdated => 1119849705,
},
'overview template description' => {
message => q|This template is used to display a statistical overview of the all responses
to the Survey.
<p/>|,
lastUpdated => 1119849705,
},
'8 description' => {
message => q|The order the questions will be asked. Sequential displays the questions in the order you create them. Random displays the questions randomly. Response driven displays the questions in order based on the responses of the users.
<p/>|,
lastUpdated => 1119849705,
},
'83 description' => {
message => q|The number of questions that will be displayed per page. The default is 1.
<p/>|,
lastUpdated => 1119849705,
},
'11 description' => {
message => q|By default the Survey is in survey mode. This allows it to ask questions of your users. However, if you switch to Quiz mode, you can have a self-correcting test of your user's knowledge.
<p/>|,
lastUpdated => 1119849705,
},
'81 description' => {
message => q|Select whether or not the survey will record and display information that can identify a user and their responses. If left at the default value of "No", the survey will record the user's IP address as well as their WebGUI User ID and Username if logged in. This info will then be available in the survey's reports. If set to "Yes", these three fields will contain scrambled data that can not be traced to a particular user.
<p/>|,
lastUpdated => 1119849705,
},
'84 description' => {
message => q|The number of times the user can attempt to get the correct answer on each question. The
default is 1.
<p/>|,
lastUpdated => 1119849705,
},
'85 description' => {
message => q|How many questions are given to each user?
<p/>|,
lastUpdated => 1119849705,
},
'12 description' => {
message => q|Which users can participate in the survey?
<p/>|,
lastUpdated => 1119849705,
},
'13 description' => {
message => q|Who can view the results of the survey?
<p/>|,
lastUpdated => 1119849705,
},
'what next' => {
message => q|After creating a new Survey, you may either starting adding questions or go back to the page where
the survey was added.
<p/>|,
lastUpdated => 1119849705,
},
'34' => {
message => q|Agree|,
lastUpdated => 1037498914
@ -1061,21 +1088,37 @@ A comment.
},
'question add/edit body' => {
message => q|
<p><b>Question</b><br />
This is the question that the user will be asked.
</p>
message => q||,
lastUpdated => 1119851165,
},
<p><b>Allow comment?</b><br />
If set to Yes, then the user will be allowed to add a comment to their response to this question.
</p>
'14 description' => {
message => q|This is the question that the user will be asked.
</p>|,
lastUpdated => 1119851108,
},
<p><b>Randomize answers?</b><br />
If set to Yes, then the answers will be shuffled for each user.
</p>
'15 description' => {
message => q|If set to Yes, then the user will be allowed to add a comment to their response to this question.
</p>|,
lastUpdated => 1119851108,
},
<p><b>What next?</b><br />
After defining the question, you may supply an answer:
'16 description' => {
message => q|If set to Yes, then the answers will be shuffled for each user.
</p>|,
lastUpdated => 1119851108,
},
'21 description' => {
message => q|Used to define the question that follows this one when the question order for the survey
is set to "response".
</p>|,
lastUpdated => 1119851108,
},
'what next question description' => {
message => q|After defining the question, you may supply an answer:
<ul>
<li>Multiple Choice</il>
<li>Text</il>
@ -1083,11 +1126,9 @@ After defining the question, you may supply an answer:
<li>Opinion</il>
</ul>
or you may return to the survey.
</p>
|,
lastUpdated => 1110006259,
},
</p>|,
lastUpdated => 1119851108,
},
};