X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fshow_radio.tpl;h=02dd20cb1d771324cc452f097242c4665f0da56b;hb=bd4d80f0846bcc0dd943bd561c77680f18bae831;hp=de13de01dd268f81ffdab756cd839553ecb65095;hpb=56c6950a11572152c5893a5c7542c0e0246cb50d;p=platal.git diff --git a/templates/survey/show_radio.tpl b/templates/survey/show_radio.tpl index de13de0..02dd20c 100644 --- a/templates/survey/show_radio.tpl +++ b/templates/survey/show_radio.tpl @@ -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_radios name="survey$sid[$sqid]" options=$squestion.choices separator='
'} + {else} + {html_radios name="survey$sid[$sqid]" options=$squestion.choices separator='
' disabled='disabled'} + {/if} +{/if} {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}