X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=9a975361a8a142d49feda0a674a917ec5d11da7c;hb=2192fcfccaf971ab6c6d2f78420c16587cc5cd43;hp=e32c9f797094eb3374d8ac9ba2c178901ff6e584;hpb=9f5bd98e936d8cef7ca9f774eeef64dbb8a1b079;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index e32c9f7..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} + - + +
@@ -29,7 +31,7 @@
• @@ -41,12 +43,12 @@ {assign var="has_cs" value="true"} {/if} {/iterate} -
{if !$has_cs}Aucun sondage en cours{/if} {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} -

@@ -58,7 +60,7 @@ {iterate item=s from=$survey_old} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} + {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} •