Small improvements.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 8 Jan 2011 19:01:50 +0000 (20:01 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 8 Jan 2011 19:01:50 +0000 (20:01 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/survey/questions.tpl

index e7c8709..a42428b 100644 (file)
 
 {literal}
 <script id="question_base" type="text/x-jquery-tmpl">
-  {{if type == 'text'}}
-    {{tmpl "#question_text"}}
-  {{else type == 'section'}}
-    {{tmpl "#question_section"}}
-  {{/if}}
+  {{tmpl "#question_" + type}}
 </script>
 
 <script id="question_section" type="text/x-jquery-tmpl">