Merge remote branch 'origin/xorg/maint' into xorg/master
[platal.git] / templates / survey / index.tpl
index 5523fc8..6f8d914 100644 (file)
@@ -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  *}
 <h1>Sondages</h1>
 
 {if $active->total() > 0}
-<table class="bicol">
+<table class="bicol" id="surveyList">
   <tr>
     <th>
       Sondages en cours
     </th>
+    {if hasPerm('admin')}
+    <th></th>
+    {/if}
   </tr>
   {iterate from=$active item=survey}
-  <tr>
+  <tr class="{cycle values="impair,pair"}">
     <td>
       <a href="survey/vote/{$survey->shortname}">{$survey->title}</a>
     </td>
+    {if hasPerm('admin')}
+    <td style="text-align: right">
+      <a href="survey/edit/{$survey->shortname}">{icon name=page_edit}</a>
+    </td>
+    {/if}
   </tr>
   {/iterate}
 </table>
 {/if}
+<br />
+<div class="center">
+  <a href="survey/edit">{icon name=page_edit} Proposer un nouveau sondage</a>
+</div>
 
 {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}