Backport
[platal.git] / templates / xnetevents / subscribe.tpl
index a3df7d5..fe9a7b3 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 
 <h1>{$asso.nom} : Evénement {$event.intitule}</h1>
 
-{if $updated}
-<p class='error'>
-  La modification de l'inscription a été prise en compte !
-</p>
-{/if}
-
 <p>
   [<a href="{$platal->ns}events">Revenir à la liste des événements</a>]
 </p>
@@ -60,7 +54,7 @@
 <p class='descr'>
   Tu peux 
   <a href="{$platal->ns}events/admin/{$event.eid}">
-    consulster liste des participants
+    consulter la liste des participants
     {icon name=group title="Liste des participants"}</a>
   déjà inscrits.
 </p>
       <td>
         {if $event.topay}
         <span class="error">
-        Tu dois payer {$event.topay|replace:'.':','}&nbsp;&euro;
-        {if $event.paid > 0}
-        (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;)
-        {/if}.
-        {if $event.paiement_id}
-          [<a href="https://www.polytechnique.org/payment/{$event.paiement_id}?montant={$event.topay}}">
+          {if !$event.paid}
+          Tu dois payer {$event.topay|replace:'.':','}&nbsp;&euro;.
+          {elseif $event.paid < $event.topay}
+          Tu dois encore payer {math equation="a-b" a=$event.topay b=$event.paid|replace:'.':','}&nbsp;&euro;
+          (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;)
+          {else} 
+          Tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro; pour ton inscription.
+          {/if} 
+          {if $event.paiement_id &&  $event.paid < $event.topay}
+          [<a href="{$platal->ns}payment/{$event.paiement_id}?montant={math equation="a-b" a=$event.topay b=$event.paid}">
           Payer en ligne</a>]
-        {/if}
+          {/if}
         </span>
         {else}
         Rien à payer