X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fshow_checkbox.tpl;h=d4b06a57f5a40ae79735680778a7d9dd7e70c307;hb=5122b820e488b28e0b62ec09cd76d87f1d22fc99;hp=ebc01e185281fe6d09425d9d2eb31b4b2f391f5f;hpb=3d8decf9cc529877d7d564fc469ecf6551b1baa9;p=platal.git diff --git a/templates/survey/show_checkbox.tpl b/templates/survey/show_checkbox.tpl index ebc01e1..d4b06a5 100644 --- a/templates/survey/show_checkbox.tpl +++ b/templates/survey/show_checkbox.tpl @@ -20,12 +20,20 @@ {* *} {**************************************************************************} -{assign var=sid value=$survey.id} -{assign var=sqid value=$squestion.id} -{if $survey_votemode} - {html_checkboxes name="survey$sid[$sqid]" options=$squestion.choices separator='
'} +{if $survey_resultmode} + {else} - {html_checkboxes name="survey$sid[$sqid]" options=$squestion.choices separator='
' disabled='disabled'} + {assign var=sid value=$survey.id} + {assign var=sqid value=$squestion.id} + {if $survey_votemode} + {html_checkboxes name="survey$sid[$sqid]" options=$squestion.choices separator='
'} + {else} + {html_checkboxes name="survey$sid[$sqid]" options=$squestion.choices separator='
' disabled='disabled'} + {/if} {/if} {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}