#if(!$question) #set($question = $data) #end #if( !$question )

Create New Question

#else

Update Question

#end
#set ( $searcher = $testbench.getQuestionSearcher()) $context.putPageValue("searcher", $searcher ) #set($viewdata = $searcherManager.getData($testbenchid, "view", "question${question.questiontype}")) #if($viewdata) $context.putPageValue("view", "question/question${question.questiontype}") #else $context.putPageValue("view", "question/edit") #end #set($details = $searcher.getDetailsForView("question/question${question.questiontype}")) #if($details.size() >0) $context.putPageValue("view", "question/question${question.questiontype}") #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") $pages.include("$apphome/views/modules/question/edit/responses/index.html", $context) #end