From 1d0db51904df13077643fb79f91cf642bc75b7f9 Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Thu, 29 Jan 2009 16:40:11 +0000 Subject: [PATCH] Updating Survey Help, more to come. --- lib/WebGUI/Help/Asset_Survey.pm | 105 +++++++-------------- lib/WebGUI/i18n/English/Asset_Survey.pm | 120 ++++++++++++++++++++++++ 2 files changed, 153 insertions(+), 72 deletions(-) diff --git a/lib/WebGUI/Help/Asset_Survey.pm b/lib/WebGUI/Help/Asset_Survey.pm index a4ce42518..e95139d0b 100644 --- a/lib/WebGUI/Help/Asset_Survey.pm +++ b/lib/WebGUI/Help/Asset_Survey.pm @@ -3,7 +3,7 @@ use strict; our $HELP = { 'survey template' => { - title => '88', + title => 'survey template title', body => '', fields => [], isa => [ @@ -15,81 +15,37 @@ our $HELP = { }, ], variables => [ - { 'name' => 'question.add.url' }, - { 'name' => 'question.add.label' }, - { 'name' => 'section.add.url' }, - { 'name' => 'section.add.label' }, - { 'name' => 'user.canTakeSurvey' }, - { 'name' => 'form.header' }, - { 'name' => 'form.footer' }, - { 'name' => 'form.submit' }, - { 'name' => 'questions.sofar.label' }, - { 'name' => 'start.newresponse.label' }, - { 'name' => 'start.newresponse.url' }, - { 'name' => 'thanks.survey.label' }, - { 'name' => 'thanks.quiz.label' }, - { 'name' => 'questions.total' }, - { 'name' => 'questions.correct.count.label' }, - { 'name' => 'questions.correct.percent.label' }, - { 'name' => 'mode.isSurvey' }, - { 'name' => 'survey.noprivs.label' }, - { 'name' => 'quiz.noprivs.label' }, - { 'name' => 'response.id' }, - { 'name' => 'response.count' }, - { 'name' => 'user.isFirstResponse' }, - { 'name' => 'user.canRespondAgain' }, - { 'name' => 'questions.sofar.count' }, - { 'name' => 'questions.correct.count' }, - { 'name' => 'questions.correct.percent' }, - { 'name' => 'response.isComplete' }, - { 'name' => 'section.edit_loop', - 'variables' => [ - { 'name' => 'section.edit.controls' }, - { 'name' => 'section.edit.sectionName' }, - { 'name' => 'section.edit.id' }, - { 'name' => 'section.questions_loop', - 'variables' => [ - { 'name' => 'question.edit.controls' }, - { 'name' => 'question.edit.question' }, - { 'name' => 'question.edit.id' }, - ], - }, - ], - }, - { 'name' => 'question_loop', - 'variables' => [ - { 'name' => 'question.question' }, - { 'name' => 'question.allowComment' }, - { 'name' => 'question.id' }, - { 'name' => 'question.comment.field' }, - { 'name' => 'question.comment.label' }, - { 'name' => 'question.answer.field' } - ] - }, + { 'name' => 'lastResponseCompleted' }, + { 'name' => 'lastResponseTimedOut' }, + { 'name' => 'maxResponsesSubmitted' }, ], - related => [] + related => [ + { tag => 'gradebook report template', + namespace => 'Asset_Survey' + }, + { tag => 'statistical overview report template', + namespace => 'Asset_Survey' + }, + ] }, 'survey template common vars' => { + private => 1, title => 'survey template common vars title', body => '', fields => [], variables => [ + { 'name' => 'user_canTakeSurvey' }, { 'name' => 'user_canViewReports' }, - { 'name' => 'delete_all_responses.url' }, - { 'name' => 'export_answers_url' }, - { 'name' => 'export_questions_url' }, - { 'name' => 'export_responses_url' }, - { 'name' => 'export_composite_url' }, - { 'name' => 'report_gradebook_url' }, - { 'name' => 'report_overview_url' }, - { 'name' => 'survey_url' }, + { 'name' => 'user_canEditSurvey' }, + { 'name' => 'edit_survey_url' }, + { 'name' => 'take_survey_url' }, + { 'name' => 'view_simple_results_url' }, + { 'name' => 'view_transposed_results_url' }, + { 'name' => 'view_statistical_overview_url' }, + { 'name' => 'view_grade_book_url' }, ], - related => [ - { tag => 'survey template', - namespace => 'Asset_Survey' - } - ] + related => [] }, 'gradebook report template' => { @@ -122,6 +78,9 @@ our $HELP = { { tag => 'survey template', namespace => 'Asset_Survey' }, + { tag => 'statistical overview report template', + namespace => 'Asset_Survey' + }, ] }, @@ -211,7 +170,14 @@ our $HELP = { ], } ], - related => [] + related => [ + { tag => 'survey template', + namespace => 'Asset_Survey' + }, + { tag => 'gradebook report template', + namespace => 'Asset_Survey' + }, + ] }, 'survey asset template variables' => { @@ -226,17 +192,12 @@ our $HELP = { fields => [], variables => [ { 'name' => 'templateId' }, - { 'name' => 'questionOrder' }, { 'name' => 'groupToTakeSurvey' }, { 'name' => 'groupToViewReports' }, - { 'name' => 'mode' }, - { 'name' => 'anonymous' }, { 'name' => 'maxResponsesPerUser' }, - { 'name' => 'questionsPerPage' }, { 'name' => 'overviewTemplateId' }, { 'name' => 'gradebookTemplateId' }, { 'name' => 'responseTemplateId' }, - { 'name' => 'defaultSectionId' }, ], }, diff --git a/lib/WebGUI/i18n/English/Asset_Survey.pm b/lib/WebGUI/i18n/English/Asset_Survey.pm index 1d4373634..dee763ba6 100644 --- a/lib/WebGUI/i18n/English/Asset_Survey.pm +++ b/lib/WebGUI/i18n/English/Asset_Survey.pm @@ -677,6 +677,126 @@ directly inside the answer_loop for other types of questions.|, context => q|The title of a template Help page.|, lastUpdated => 1078223067 }, + + 'survey template title' => { + message => q|Survey Template|, + context => q|The title of a template Help page.|, + lastUpdated => 1078223096 + }, + + 'lastResponseCompleted' => { + message => q|A boolean indicating wether the current user's last response was completed.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'lastResponseTimedOut' => { + message => q|A boolean indicating wether the current user's last response timed out.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'maxResponsesSubmitted' => { + message => q|A boolean indicating wether the current user has reached the maximum number of responses.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'user_canTakeSurvey' => { + message => q|A boolean indicating wether the current user can take the survey.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'user_canViewReports' => { + message => q|A boolean indicating wether the current user can view the survey reports.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'user_canEditSurvey' => { + message => q|A boolean indicating wether the current user can edit the survey.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'edit_survey_url' => { + message => q|The url for the survey edit screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'take_survey_url' => { + message => q|The url for the take survey screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'view_simple_results_url' => { + message => q|The url for the simple results screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'view_transposed_results_url' => { + message => q|The url for the transposed results screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'view_statistical_overview_url' => { + message => q|The url for the statistical overview screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'view_grade_book_url' => { + message => q|The url for the grade book report screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'templateId' => { + message => q|The ID of the template to show the Survey.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168639537, + }, + + 'groupToTakeSurvey' => { + message => q|The ID of the group that is allowed to take the Survey.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168639812, + }, + + 'groupToViewReports' => { + message => q|The ID of the group that is allowed to view reports from the Survey.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168639812, + }, + + 'maxResponsesPerUser' => { + message => q|The number of times the user can attempt to get the correct answer on each question. The default is 1.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168643566, + }, + + 'overviewTemplateId' => { + message => q|The ID of the template used to show the overview screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168643669, + }, + + 'gradebookTemplateId' => { + message => q|The ID of the template used to show the gradebook screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168643669, + }, + + 'responseTemplateId' => { + message => q|The ID of the template used to show the Survey Response screen.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 1168643669, + }, }; 1;