Fix a layout issue in 'moment' display.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 29 Jun 2008 18:50:30 +0000 (20:50 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 29 Jun 2008 18:50:30 +0000 (20:50 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetevents.php
templates/xnetevents/admin.tpl

index 417fb3f..231a93f 100644 (file)
@@ -574,6 +574,7 @@ class XnetEventsModule extends PLModule
         $page->assign('tout', is_null($item_id));
 
         if (count($evt['moments'])) {
+            //var_dump($evt['moments']);
             $page->assign('moments', $evt['moments']);
         }
 
index 5402e45..6056605 100644 (file)
@@ -178,7 +178,7 @@ Ils ont payé mais ont oublié de s'inscrire&nbsp;:
     {/if}
   </tr>
   {/foreach}
-  {if $is_admin && $evt.money}
+  {if $is_admin && $evt.money && $tout}
   <tr>
     {assign var=cols value=$moments|@count}
     <td colspan="{$cols+3}" class="right"><strong>Total</strong></td>
@@ -225,7 +225,9 @@ Ils ont payé mais ont oublié de s'inscrire&nbsp;:
 {if $is_admin}
 
 <p class="descr">
-[<a href="{$platal->ns}events/csv/{$evt.eid}/{$platal->argv[2]}/{$evt.intitule}{if $evt.titre}.{$evt.titre}{/if}.csv">Télécharger le fichier Excel</a>]
+  <a href="{$platal->ns}events/csv/{$evt.eid}/{$platal->argv[2]}/{$evt.intitule}{if $evt.titre}.{$evt.titre}{/if}.csv">
+    {icon name=page_excel title="Télécharger au format Excel"} Télécharger le fichier Excel
+  </a>
 </p>
 
 <hr />