X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=6f8d914d9c929a9fd2a37f87e9d2d3f7066827d4;hb=3ddf2584d3158f89c2c8dda45ee5499717c71044;hp=34799675a01571cc781456b66f73dd4295e28032;hpb=730a173a333507926e0029d8a96c3a26b55756e4;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 3479967..6f8d914 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 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,59 +22,33 @@

Sondages

- +{if $active->total() > 0} +
+ {if hasPerm('admin')} + + {/if} - {iterate item=s from=$survey_current} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} - - + - - {assign var="has_cs" value="true"} - {/if} - {/iterate} - - - -
Sondages en cours
- • - - {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - + {iterate from=$active item=survey} +
+ {$survey->title}
- {if !$has_cs}Aucun sondage en cours{/if} - {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} -
- -
- - - - - - {iterate item=s from=$survey_old} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} - - - - {assign var="has_os" value="true"} {/if} - {/iterate} - {if !$has_os} - - - {/if} + {/iterate}
- Anciens sondages -
- • - - {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - + {if hasPerm('admin')} + + {icon name=page_edit}
Aucun ancien sondage
+{/if} +
+
+ {icon name=page_edit} Proposer un nouveau sondage +
{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}