X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fshow_checkbox.tpl;h=0d2c52225bf4d7d6bb47e8af19b32f7161b6be6d;hb=HEAD;hp=d04481a08b8b86d3401afbc876cbc6b7e847c779;hpb=56c6950a11572152c5893a5c7542c0e0246cb50d;p=platal.git diff --git a/templates/survey/show_checkbox.tpl b/templates/survey/show_checkbox.tpl index d04481a..0d2c522 100644 --- a/templates/survey/show_checkbox.tpl +++ b/templates/survey/show_checkbox.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,8 +20,20 @@ {* *} {**************************************************************************} -{foreach from=$survey.choices item=choice} - -{/foreach} +{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: *} +{* vim:set et sw=2 sts=2 ts=8 fenc=utf-8: *}