Survey summary code, intermediate check in. Zero changes in function.

This commit is contained in:
Kaleb Murphy 2009-04-03 17:14:10 +00:00
parent eda1c533e2
commit cd8402919d

View file

@ -193,6 +193,13 @@ sub definition {
# hoverHelp => $i18n->get('editForm workflowIdAddEntry description'),
none => 1,
},
quizModeSummary => {
fieldType => 'yesNo',
defaultValue => 0,
tab => 'properties',
label => $i18n->get('Quiz mode summaries'),
hoverHelp => $i18n->get('Quiz mode summaries help'),
}
);
#my $defaultMC = $session->
@ -1166,6 +1173,13 @@ sub www_loadQuestions {
if ( $self->responseJSON->surveyEnd() ) {
$self->session->log->debug('Response surveyEnd, so calling surveyEnd');
if ( $self->get('quizModeSummary') ) {
if(! $self->session->form->param('shownsummary')){
my $summary = $self->responseJSON->showSummary();
my $out = $self->processTemplate( $summary, $self->get('surveyQuestionsId') );
# return $out;
}
}
return $self->surveyEnd();
}