X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=9a975361a8a142d49feda0a674a917ec5d11da7c;hb=ed92ea696e042eb9b2d0efcc4731fdf89fb17924;hp=29aa2920796f8b37d84a3cfd568905683731c6dc;hpb=34465ab035104f739a54ec62660f04f874448627;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 29aa292..9a97536 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -22,6 +22,8 @@

Sondages

+{* Survey::MODE_ALL equals 0. *} +{assign var=SurveyMODE_ALL value=0} {iterate item=s from=$survey_current} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} + {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} {iterate item=s from=$survey_old} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} + {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL}
@@ -29,7 +31,7 @@
• @@ -58,7 +60,7 @@