X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fshow_radio.tpl;h=2b6e21d9886ddb3c73117090040c9427cebeec99;hb=bd13073e9d70ed64d1c6310873c581e5bd3c0ccb;hp=1ee53d1aa85ddc9f02619b6c6a42481a176d229d;hpb=3d8decf9cc529877d7d564fc469ecf6551b1baa9;p=platal.git diff --git a/templates/survey/show_radio.tpl b/templates/survey/show_radio.tpl index 1ee53d1..2b6e21d 100644 --- a/templates/survey/show_radio.tpl +++ b/templates/survey/show_radio.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2008 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,12 +20,20 @@ {* *} {**************************************************************************} -{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='
'} +{if $survey_resultmode} + {else} - {html_radios 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_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: *}