Only uses autoload to require validation classes.
[platal.git] / templates / payment / xnet.tpl
index 74ad3f5..4c7f794 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  *}
 {*                                                                        *}
 {**************************************************************************}
 
-<h1>{$asso.nom} : Gestion des télépaiements </h1>
+<h1>{$asso->nom}&nbsp;: Gestion des télépaiements </h1>
 
 <p class="descr">
-Voici la liste des paiements en ligne possible pour le groupe {$asso.nom}
+Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}&nbsp;:
 </p>
 
 {foreach from=$titres item=p}
@@ -43,12 +43,12 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom}
     Tu es inscrit à cet événements.
       {if $ev.topay > $ev.paid}
       <a href="{$platal->ns}payment/{$p.id}?montant={math equation="a-b" a=$ev.topay b=$ev.paid}">
-        Tu dois encore payer {math equation="a-b" a=$ev.topay b=$ev.paid}&euro;
+        Tu dois encore payer {math equation="a-b" a=$ev.topay b=$ev.paid}&euro;.
       </a>
       {elseif $ev.topay eq $ev.paid}
       Tu as déjà réglé l'intégralité de ton inscription ({$ev.topay}&euro;).
       {else}
-      Tu as réglé {$ev.paid}&euro; alors que tu n'en devais que {$ev.topay}&euro;
+      Tu as réglé {$ev.paid}&euro; alors que tu n'en devais que {$ev.topay}&euro;.
       {/if}
     {else}
     <a href="{$platal->ns}events/sub/{$ev.eid}">Tu peux t'inscire à cet événement.</a>
@@ -100,7 +100,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom}
       {/if}Commentaire</a>
     </th>
     <th>
-      {if $order eq 'montant'}
+      {if $order eq 'amount'}
         <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}'>
           <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
       {else}
@@ -114,25 +114,23 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom}
   <tr>
     <td class="center">{$p.date|date_format:"%d/%m/%y"}</td>
     <td>
-      <a href="https://www.polytechnique.org/profile/{$p.alias}" class="popup2">
-        {$p.nom|strtoupper} {$p.prenom}
-       </a>
+      {profile user=$p.user promo=false}
     </td>
     <td>
-      <a href="mailto:{$p.alias}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
+      <a href="mailto:{$p.user->bestEmail()}">{icon name=email title="email"}</a>
     </td>
-    <td class="center">{$p.promo}</td>
-    <td>{$p.comment|urldecode}</td>
-    <td class="right">{$p.montant}</td>
+    <td class="center">{$p.user->promo()}</td>
+    <td>{$p.comment|comment_decode}</td>
+    <td class="right">{$p.amount}</td>
   </tr>
   {elseif $smarty.foreach.people.first}
   <tr>
-    <td colspan="6" class="center">Personne n'a encore payé pour ce télépaiement</td>
+    <td colspan="6" class="center">Personne n'a encore payé pour ce télépaiement.</td>
   </tr>
   {else}
   <tr class="pair">
     <td class="right" colspan="5"><strong>Total </strong></td>
-    <th class="right">{$p.montant}</th>
+    <th class="right">{$p.amount}</th>
   </tr>
   {/if}
   {/foreach}
@@ -143,7 +141,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom}
 {foreachelse}
 
 <p class="descr">
-<em>Pas de télépaiement en cours ...</em>
+<em>Pas de télépaiement en cours&hellip;</em>
 </p>
 
 {/foreach}