X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fshow_checkbox.tpl;h=d4b06a57f5a40ae79735680778a7d9dd7e70c307;hb=db143c0fe93e5bf11dc62bc62d3d3ed8b6a88bca;hp=532787d8d1bd2b41f02b4e9ab538e116c5606e15;hpb=c144f2e51e27431ae770661216906997c5dbd725;p=platal.git diff --git a/templates/survey/show_checkbox.tpl b/templates/survey/show_checkbox.tpl index 532787d..d4b06a5 100644 --- a/templates/survey/show_checkbox.tpl +++ b/templates/survey/show_checkbox.tpl @@ -20,9 +20,20 @@ {* *} {**************************************************************************} -{foreach from=$survey.choices item=choice} - -{/foreach} - -{* vim:set et sw=2 sts=2 sws=2: *} +{if $survey_resultmode} + +{else} + {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: *}