X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=81c3b7315217e78a8f7a38786828cabb6b6aea06;hb=47712f77e9718652c516c85cde99a58d142f67c9;hp=5523fc82158843e8eadd70405fc7ef9041af51e3;hpb=d101a069d4d197e27fafac9f773e623eee140849;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 5523fc8..81c3b73 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 *} @@ -22,21 +22,75 @@

Sondages

-{if $active->total() > 0} +{* Survey::MODE_ALL equals 0. *} +{assign var=SurveyMODE_ALL value=0} +{if $survey_current->total() > 0 || $smarty.session.auth} - - {iterate from=$active item=survey} - + {iterate item=s from=$survey_current} + {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} + + + + {assign var="has_cs" value="true"} + {/if} {/iterate} + {if hasPerm('user')} + + + + {/if}
+ Sondages en cours
+ {$s.title} + {if $s.uid eq $smarty.session.user->id() || hasPerm('admin')} + (résultats partiels) + {/if} + + {$s.end|date_format:"%x"} + - {$survey->title} + {$survey_modes[$s.mode]}
+ {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} + {/iterate} + {if !$has_os} + + + + {/if} +
+ Anciens sondages +
+ + {$s.title} + + + {$s.end|date_format:"%x"} + + {$survey_modes[$s.mode]} +
Aucun ancien sondage
+ {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}