Prevents the "remove this redirection" button to appear when the redirection is unique.
[platal.git] / templates / xnetgrp / membres-add.tpl
index 2b34bf7..7b674d2 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -29,6 +29,8 @@ function xStateChange(box)
     document.getElementById('xprenom').style.display = state;
     document.getElementById('xpromo').style.display = state;
     document.getElementById('xsearch').style.display = state;
+    Ajax.update_html('search_result',
+      '{/literal}{$platal->ns}{literal}member/new/ajax?login=' + document.getElementById('email').value);
 }
 
 var nom;
@@ -50,13 +52,13 @@ function searchX()
 {/literal}
 //]]></script>
 
-<h1>{$asso.nom} : Ajout d'un membre</h1>
+<h1>{$asso.nom}&nbsp;: Ajout d'un membre</h1>
 
 <form method="post" action="{$platal->ns}member/new/">
   <ul class='descr'>
     <li>
       Pour ajouter un X dans ton groupe, il suffit d'entrer ici une de ses
-      adresses mail @polytechnique.org. Sil n'est pas inscrit à Polytechnique.org
+      adresses mail @polytechnique.org. S'il n'est pas inscrit à Polytechnique.org
       coche la case qui se trouve sous le formulaire et indique ses noms, prénoms et
       promotions.
     </li>
@@ -69,27 +71,27 @@ function searchX()
   <table class="tinybicol">
     <tr>
       <td class="center" colspan="2">
-        <input type="text" name="email" size="40" value="{$platal->argv[1]}" />
+        <input type="text" id="email" name="email" size="40" value="{$platal->argv[1]}" />
         <input type='submit' value='Ajouter'
           onclick='this.form.action += this.form.email.value' />
       </td>
     </tr>
     <tr>
       <td colspan="2">
-        <input type="checkbox" name="x" onchange="xStateChange(this);" />
-        Coche cette case si il s'agit d'un X non inscrit à Polytechnique.org
+        <input type="checkbox" id="x" name="x" onchange="xStateChange(this);" />
+        <label for="x">Coche cette case si il s'agit d'un X non inscrit à Polytechnique.org.</label>
       </td>
     </tr>
     <tr id="xnom" style="display: none">
-      <td class="titre">Nom :</td>
+      <td class="titre">Nom&nbsp;:</td>
       <td><input type="text" id="nom" name="nom" size="20" value="" onkeyup="searchX();" /></td>
     </tr>
     <tr id="xprenom" style="display: none">
-      <td class="titre">Prénom :</td>
+      <td class="titre">Prénom&nbsp;:</td>
       <td><input type="text" id="prenom" name="prenom" size="20" value="" onkeyup="searchX();" /></td>
     </tr>
     <tr id="xpromo" style="display: none">
-      <td class="titre">Promotion :</td>
+      <td class="titre">Promotion&nbsp;:</td>
       <td><input type="text" id="promo" name="promo" size="4" value="" onkeyup="searchX();" /></td>
     </tr>
     <tr id="xsearch" style="display: none" class="pair">