Merge remote branch 'origin/platal-1.0.0' into platal-1.0.1
[platal.git] / templates / survey / admin.tpl
index c0f19c5..5772098 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 <table class="bicol">
   <tr>
     <th>
-      Sondages en attente de validation
-    </th>
-  </tr>
-  {iterate item=s from=$survey_waiting}
-  <tr class="{cycle values="impair,pair"}">
-    <td class="half">
-      &bull;
-      <a href="survey/admin/edit/{$s.survey_id}">
-        {$s.title} ({$s.end|date_format:"%x"})
-      </a>
-    </td>
-  </tr>
-  {assign var="has_ws" value="true"}
-  {/iterate}
-  {if !$has_ws}
-  <tr>
-    <td class="half">Aucun sondage en attente de validation</td>
-  </tr>
-  {/if}
-</table>
-
-<br />
-
-<table class="bicol">
-  <tr>
-    <th>
       Sondages en cours
     </th>
   </tr>
   {iterate item=s from=$survey_current}
-  <tr class="{cycle values="impair,pair"}">
+  <tr class="{cycle name=cs_cycle values="impair,pair"}">
     <td class="half">
       &bull;
-      <a href="survey/admin/edit/{$s.survey_id}">
-        {$s.title} ({$s.end|date_format:"%x"})
+      <a href="survey/admin/{$s.id}">
+        {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}]
       </a>
     </td>
   </tr>
     </th>
   </tr>
   {iterate item=s from=$survey_old}
-  <tr class="{cycle values="impair,pair"}">
+  <tr class="{cycle name=os_cycle values="impair,pair"}">
     <td class="half">
       &bull;
-      <a href="survey/admin/edit/{$s.survey_id}">
-        {$s.title} ({$s.end|date_format:"%x"})
+      <a href="survey/admin/{$s.id}">
+        {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}]
       </a>
     </td>
   </tr>