#if(!$question) #set($question = $data) #end
[[Question]]
#set ( $searcher = $testbench.getQuestionSearcher()) $context.putPageValue("searcher", $searcher ) #set($viewdata = $searcherManager.getData($testbenchid, "view", "question${question.questiontype}")) #if($viewdata) $context.putPageValue("view", "question${question.questiontype}") #else $context.putPageValue("view", "question/questiondefault") #end #set($details = $testbench.getDetailsForView("question/question${question.questiontype}")) #if($details.size() >0) $context.putPageValue("view", "question/question${question.questiontype}") #else $context.putPageValue("view", "question/questionmultiplechoice") #set($details = $testbench.getDetailsForView("question/questionmultiplechoice")) #end $context.putPageValue("searchtype", "question") #set($data = $question) $context.putPageValue("data", $data) $context.putPageValue("catalogid", $testbenchid) $pages.include("$apphome/components/xml/detaileditor.html", $context)

#if ($question.questiontype == "multiplechoice" || $question.questiontype == "multiselect" || $question.questiontype == "dropdown" || $question.questiontype =="proxyvote" || !$question.questiontype) $pages.include("$apphome/views/modules/question/edit/responses/index.html", $context) #end