Merge commit 'origin/fusionax' into account
[platal.git] / templates / xnetgrp / subscribe-valid.tpl
index 521bae3..5fa90aa 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -20,7 +20,7 @@
 {*                                                                        *}
 {**************************************************************************}
 
-<h1>{$asso.nom}&nbsp;: Validation des inscriptions</h1>
+<h1>{$asso->nom}&nbsp;: validation des inscriptions</h1>
 
 <script type="text/javascript">//<![CDATA[
 {literal}
     } else {
       boxes.removeAttr("checked");
     }
-    return true;
   }
 {/literal}
 //]]></script>
 
+{if $valid->total() > 0}
 <form action="{$platal->ns}subscribe/valid" method="post">
   <table class="tinybicol">
     <tr>
       <th><a href="javascript:toggleSelection()">{icon name="arrow_refresh" title="Inverser la sélection"}</a></th> 
-      <th>Prénom Nom</th>
+      <th>Prénom Nom (Promotion)</th>
       <th>Date de demande</th>
       <th></th>
     </tr>
     {iterate from=$valid item=user}
     <tr>
-      <td><input type="checkbox" name="subs[{$user.forlife}]" value="1" class="select_sub" /></td>
-      <td><a href="profile/{$user.forlife}" class="popup2">{$user.prenom} {$user.nom} (X{$user.promo})</a></td>
+      <td><input type="checkbox" name="subs[{$user.hruid}]" value="1" class="select_sub" /></td>
+      <td>{profile user=$user.uid promo=true}</td>
       <td>{$user.date|date_format}</td>
-      <td><a href="{$platal->ns}subscribe/{$user.forlife}">{icon name=magnifier title="Détails"}</a></td>
+      <td><a href="{$platal->ns}subscribe/{$user.hruid}">{icon name=magnifier title="Détails"}</a></td>
     </tr>
     {/iterate}
   </table>
     Pour refuser une demande, tu dois aller consulter les détails et remplir la raison du refus.
   </div>
 </form>
+{else}
+<p>
+  Il n'y a pas d'inscription à valider.
+</p>
+{/if}
+
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}