X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=294a558028934c1d6311a93efcec3992bed93a08;hb=d5524e7bd1216a4e0b8ea084f41e7e7df801deef;hp=9a975361a8a142d49feda0a674a917ec5d11da7c;hpb=cecdf74795e71ed038411915dad5e0dff6ea51fa;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 9a97536..294a558 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -24,50 +24,62 @@ {* Survey::MODE_ALL equals 0. *} {assign var=SurveyMODE_ALL value=0} +{if $survey_current->total() > 0 || $smarty.session.auth} - {iterate item=s from=$survey_current} {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} - + + {assign var="has_cs" value="true"} {/if} {/iterate} -
+ Sondages en cours
- • - - {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - + + {$s.title} + {if $s.uid eq $smarty.session.user->id() || hasPerm('admin')} + (résultats partiels) + {/if} + + {$s.end|date_format:"%x"} + + {$survey_modes[$s.mode]}
- {if !$has_cs}Aucun sondage en cours{/if} - {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} + + {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if}
+{/if}
- {iterate item=s from=$survey_old} {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} - + + {assign var="has_os" value="true"} {/if}
+ Anciens sondages
- • + - {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] + {$s.title} + {$s.end|date_format:"%x"} + + {$survey_modes[$s.mode]} +