From df7de822ff47b4457c118078cc62cb146806027c Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Thu, 29 Jan 2009 23:17:29 +0000 Subject: [PATCH] Adding help for Survey Questions template --- lib/WebGUI/Help/Asset_Survey.pm | 59 ++++++++++ lib/WebGUI/i18n/English/Asset_Survey.pm | 150 ++++++++++++++++++++++++ 2 files changed, 209 insertions(+) diff --git a/lib/WebGUI/Help/Asset_Survey.pm b/lib/WebGUI/Help/Asset_Survey.pm index e95139d0b..d5531161c 100644 --- a/lib/WebGUI/Help/Asset_Survey.pm +++ b/lib/WebGUI/Help/Asset_Survey.pm @@ -84,6 +84,65 @@ our $HELP = { ] }, + 'survey questions template' => { + title => 'survey questions template title', + body => '', + fields => [], + isa => [ + { namespace => 'Asset_Survey', + tag => 'survey template common vars' + }, + { namespace => 'Asset_Survey', + tag => 'survey asset template variables' + }, + ], + variables => [ + { 'name' => 'questionsAnswered' }, + { 'name' => 'totalQuestions' }, + { 'name' => 'showProgress' }, + { 'name' => 'showTimeLimit' }, + { 'name' => 'minutesLeft' }, + { 'name' => 'questions', + 'variables' => [ + { 'name' => 'id' }, + { 'name' => 'sid' }, + { 'name' => 'text' }, + { 'name' => 'fileLoader' }, + { 'name' => 'textType' }, + { 'name' => 'multipleChoice' }, + { 'name' => 'maxAnswers' }, + { 'name' => 'maxMoreOne' }, + { 'name' => 'dateType' }, + { 'name' => 'slider' }, + { 'name' => 'dualSlider' }, + { 'name' => 'a1' }, + { 'name' => 'a2' }, + { 'name' => 'verticalDisplay' }, + { 'name' => 'verts' }, + { 'name' => 'verte' }, + { 'name' => 'answers', + 'variables' => [ + { 'name' => 'id' }, + { 'name' => 'text' }, + ] + } + ] + } + ], + related => [ + { tag => 'survey template', + namespace => 'Asset_Survey' + }, + { tag => 'statistical overview report template', + namespace => 'Asset_Survey' + }, + { tag => 'gradebook report template', + namespace => 'Asset_Survey' + }, + ] + }, + + 'survey response template' => { title => '1089', body => '', diff --git a/lib/WebGUI/i18n/English/Asset_Survey.pm b/lib/WebGUI/i18n/English/Asset_Survey.pm index dee763ba6..205a42e25 100644 --- a/lib/WebGUI/i18n/English/Asset_Survey.pm +++ b/lib/WebGUI/i18n/English/Asset_Survey.pm @@ -797,6 +797,156 @@ directly inside the answer_loop for other types of questions.|, context => q|Description of a template variable for a template Help page.|, lastUpdated => 1168643669, }, + + 'survey questions template title' => { + message => q|Survey Questions Template|, + context => q|The title of a template Help page.|, + lastUpdated => 0 + }, + + 'questionsAnswered' => { + message => q|The number of questions that has been answered.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'totalQuestions' => { + message => q|The total number of questions.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'totalQuestions' => { + message => q|A boolean indicating wether the user should see the total number of answers and the number of questions that have already been answered.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'showTimeLimit' => { + message => q|A boolean indicating wether the number of minutes until the survey times out should be displayed.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'minutesLeft' => { + message => q|The number of minutes the user has left to finish the survey.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'questions' => { + message => q|A loop containing the questions in this section.|, + context => q|Description of a template loop for a template Help page.|, + lastUpdated => 0, + }, + + 'id' => { + message => q|The ID of this question/answer.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'text' => { + message => q|The text of this question/answer.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'sid' => { + message => q|The section ID of this question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'dualSlider' => { + message => q|A boolean indicating if this is a dualSlider type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'a1' => { + message => q|A loop containing the first list of answers for a dual slider type question.|, + context => q|Description of a template loop for a template Help page.|, + lastUpdated => 0, + }, + + 'a2' => { + message => q|A loop containing the second list of answers for a dual slider type question.|, + context => q|Description of a template loop for a template Help page.|, + lastUpdated => 0, + }, + + 'slider' => { + message => q|A boolean indicating if this is a slider type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'dateType' => { + message => q|A boolean indicating if this is a date type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'multipleChoice' => { + message => q|A boolean indicating if this is a multipleChoice type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'maxMoreOne' => { + message => q|A boolean indicating if the maximum number of answers that can be given to this question is greater than one.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'maxAnswers' => { + message => q|The maximum number of answers that can be given to this question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'hidden' => { + message => q|A boolean indicating if this is a hidden type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'textType' => { + message => q|A boolean indicating if this is a text type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'fileLoader' => { + message => q|A boolean indicating if this is a fileLoader type question.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'verticalDisplay' => { + message => q|A boolean indicating if the answers to this question should be displayed vertically.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'verts' => { + message => q|A paragraph opening tag.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'verte' => { + message => q|A paragraph closing tag.|, + context => q|Description of a template variable for a template Help page.|, + lastUpdated => 0, + }, + + 'answers' => { + message => q|A loop containing the answers to this question.|, + context => q|Description of a template loop for a template Help page.|, + lastUpdated => 0, + }, }; 1;