While waiting for next release lets use a faster query for ipwatch admin
[platal.git] / templates / survey / admin.tpl
index c0f19c5..3845c95 100644 (file)
 <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>