Fixes vim mode line.
[platal.git] / templates / xnetevents / edit.tpl
index 654aef5..cc4a358 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -167,11 +167,12 @@ function deadlineChange(box)
           <option value='-2'>Paiement en attente de validation</option>
           {/if}
           <option value=''>Pas de paiement</option>
-          <option value='-1' {if $paiement_message}selected="selected"{/if}>- Nouveau paiement -</option>
+          <option value='-1' {if $error}selected="selected"{/if}>- Nouveau paiement -</option>
           {html_options options=$paiements selected=$evt.paiement_id}
         </select>
       </th>
     </tr>
+    {if $evt.paiement_id neq -2}
     <tr id="new_pay" style="display:none">
       <td colspan="2">
         Il faut que tu définisses le texte de l'email de confirmation de paiement. Pour ceci, tu peux adapter le modèle qui suit&nbsp;:
@@ -186,10 +187,9 @@ function deadlineChange(box)
           <div id="preview"></div>
           <hr />
         </div>
-        <textarea name="confirmation" id="payment_text" rows="12" cols="65">{if $paiement_message}{$paiement_message}{else}&lt;salutation&gt; &lt;prenom&gt; &lt;nom&gt;,
+        <textarea name="confirmation" id="payment_text" rows="12" cols="65">{if $payment_message}{$payment_message}{else}&lt;salutation&gt; &lt;prenom&gt; &lt;nom&gt;,
 
-Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée et ton paiement de &lt;montant&gt; a bien
-été reçu avec le commentaire suivant&nbsp;:
+Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée et ton paiement de &lt;montant&gt; € a bien été reçu avec le commentaire suivant&nbsp;:
 &lt;comment&gt;
 
 [COMPLÈTE EN PRÉCISANT LA DATE ET LA PERSONNE À CONTACTER]
@@ -197,10 +197,9 @@ Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée
 À très bientôt,
 
 -- 
-{assign var="profile" value=$smarty.session.user->profile()}
-{$profile->fullName("promo")}{/if}</textarea><br />
+{$smarty.session.user->fullName("promo")}{/if}</textarea><br />
         {assign var='asso_url' value=$globals->baseurl|cat:'/'|cat:$platal->ns}
-        Page internet de l'événement&nbsp;: <input size="40" name="site" value="{$paiement_site|default:$asso->site|default:$asso_url}" /><br />
+        Page internet de l'événement&nbsp;: <input size="40" name="site" value="{$payment_site|default:$asso->site|default:$asso_url}" /><br />
         Rendre public le télépaiement&nbsp;:
         <label><input type="radio" name="payment_public" value="no" {if !t($payment_public)}checked="checked"{/if} />Non</label>
         &nbsp;-&nbsp;
@@ -215,6 +214,7 @@ Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée
         <input type="submit" name="preview" value="Aperçu" onclick="previewWiki('payment_text', 'preview', true, 'pay_preview'); return false;" />
       </td>
     </tr>
+    {/if}
   </table>
 
   <hr />
@@ -275,4 +275,4 @@ Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée
   </div>
 
 </form>
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}