Merge branch 'profile_edit'
[platal.git] / templates / profile / general.tpl
index d4fbdf2..6c304d2 100644 (file)
 {include file="profile/applis.js.tpl"}
 <div class="blocunite_tab">
   <table class="bicol" cellspacing="0" cellpadding="0" 
-    summary="Profil : Informations générales">
+    summary="Profil : Informations générales">
     <tr>
       <th colspan="2">
-        Informations générales
+        Informations générales
       </th>
     </tr>
     <tr>
         <span class="comm"></span>
       </td>
       <td class="cold">
-        <input type='text' name='nom' value="{$nom}" />
+        <input type='text' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
       </td>
     </tr>
     <tr>
       <td class="colg">
-        <span class="titre">Prénom</span>
+        <span class="titre">Prénom</span>
         <span class="comm"></span>
       </td>
       <td class="cold">
-        <input type='text' name='prenom' value="{$prenom}" />
+        <input type='text' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
       </td>
     </tr>
     <tr>
@@ -75,9 +75,9 @@
       <td class="colg">
         <span class="titre">Nom d'usage</span><br />
         {if $smarty.session.sexe}
-        <span class="comm">(Notamment nom d'épouse)</span>
+        <span class="comm">(Notamment nom d'épouse)</span>
         {else}
-        <span class="comm">(si différent de {$nom} seulement)</span>
+        <span class="comm">(si différent de {$nom} seulement)</span>
         {/if}
       </td>
       <td class="cold">
@@ -87,7 +87,7 @@
     </tr>
     <tr>
       <td class="colg">
-        <span class="titre">Nationalité</span>
+        <span class="titre">Nationalité</span>
       </td>
       <td class="cold">
         <select name="nationalite">
     <tr>
       <td class="colg">
         <span class="titre">Application</span><br />
-        <span class="comm">(4ème année de l'X)</span>
+        <span class="comm">(4ème année de l'X)</span>
       </td>
       <td class="cold">
-        <select name="appli_id1" onchange="fillType(this.form.appli_type1, this.selectedIndex-1);">  
-          {applis_options selected=$appli_id1}
+        <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">  
+          {applis_options selected=$appli1.id}
         </select>
         <br />
-        <select name="appli_type1">
+        <select name="appli1[type]">
           <option value=""></option>
         </select>
         <script type="text/javascript">
           <!--
-          fillType(document.forms.prof_annu.appli_type1, document.forms.prof_annu.appli_id1.selectedIndex-1);
-          selectType(document.forms.prof_annu.appli_type1, '{$appli_type1}');
+          fillType(document.forms.prof_annu['appli1[type]'], document.forms.prof_annu['appli1[id]'].selectedIndex-1);
+          selectType(document.forms.prof_annu['appli1[type]'], '{$appli1.type}');
           //-->
         </script>
       </td>
         <span class="titre">Post-application</span>
       </td>
       <td class="dcold">
-        <select name="appli_id2" onchange="fillType(this.form.appli_type2, this.selectedIndex-1);">   
-          {applis_options selected=$appli_id2}
+        <select name="appli2[id]" onchange="fillType(this.form['appli[type]'], this.selectedIndex-1);">   
+          {applis_options selected=$appli2.id}
         </select>
         <br />
-        <select name="appli_type2">
+        <select name="appli2[type]">
           <option value=""></option>
         </select>
         <script type="text/javascript">
           <!--
-          fillType(document.forms.prof_annu.appli_type2, document.forms.prof_annu.appli_id2.selectedIndex-1);
-          selectType(document.forms.prof_annu.appli_type2, '{$appli_type2}');
+          fillType(document.forms.prof_annu['appli2[type]'], document.forms.prof_annu['appli2[id]'].selectedIndex-1);
+          selectType(document.forms.prof_annu['appli2[type]'], '{$appli2.type}');
           //-->
         </script>
       </td>
 {if !$no_private_key}
 <div class="blocunite">
   <table class="bicol" cellspacing="0" cellpadding="0" 
-    summary="Profil : Informations générales">
+    summary="Profil : Informations générales">
     <tr>
       <th>
         Synchronisation avec l'AX
     <tr>
       <td>
         <p>
-          Le service annuaire de l'<a href='http://www.polytechniciens.com'>AX</a> met à jour l'annuaire papier à partir des informations que tu lui envoies. Tu peux choisir ici de récupérer directement ces données pour l'annuaire en ligne.
+          Le service annuaire de l'<a href='http://www.polytechniciens.com'>AX</a> met à jour l'annuaire papier à partir des informations que tu lui fournis. Tu peux choisir ici d'envoyer directement les données de ta fiche Polytechnique.org vers ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$matricule_ax}">fiche AX</a>.
         </p>
         <p>
-          La synchro prend en compte toutes les informations que tu as signalés à l'AX (en orange ou en vert). Elle peut alors effacer, modifier ou rajouter des informations selon ce qu'elle trouve sur ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$matricule_ax}">fiche AX</a>.
+          L'opération de synchronisation prend en compte toutes les informations que tu as marquées comme transmises à l'AX (en orange ou en vert). Elle peut alors effacer, modifier ou rajouter des informations sur ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$matricule_ax}">fiche AX</a> selon ce qui s'y trouve déjà.
         </p>
         <p class="center">
-          <a href="profile/edit/general?synchro_ax=confirm" onclick="return confirm('Es-tu sûr de vouloir lancer la synchronisation ?')"><input type="button" value="Synchroniser"/></a>
+          <a href="profile/edit/general?synchro_ax=confirm" onclick="return confirm('Es-tu sûr de vouloir lancer la synchronisation ?')"><input type="button" value="Synchroniser"/></a>
         </p>
       </td>
     </tr>
               <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
             </td>
             <td class="texte">
-              Autoriser la synchronisation depuis l'AX par des administrateurs ou des scripts automatiques.
+              Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
             </td>
           </tr>
         </table>
   </table>
 </div>
 {/if}
-    
+
 <div class="blocunite">
   <table class="bicol" cellspacing="0" cellpadding="0"
     summary="Profil: Trombinoscope">
     </tr>
     <tr>
       <td class="col" colspan="3">
-        Pour profiter de cette fonction intéressante, tu dois disposer 
+        Pour profiter de cette fonction intéressante, tu dois disposer 
         quelque part (sur ton ordinateur ou sur Internet) d'une photo
-        d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
+        d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
         <div class="center">
           <span class="lien">
-            <a href="photo/change">Éditer ta photo</a>
+            <a href="photo/change">Éditer ta photo</a>
           </span>
         </div>
       </td>
         <table cellspacing="0" cellpadding="0" summary="Trombinoscope">
           <tr>
             <td class="dcold">
-              Voilà la photo qui apparaîtra sur la fiche de ton profil{if $nouvellephoto} (tu viens
-              de changer ta photo, celle-ci correspond à ton ancien
-              profil car la nouvelle n'a pas encore été validée par un administrateur du site !
+              Voilà la photo qui apparaîtra sur la fiche de ton profil{if $nouvellephoto} (tu viens
+              de changer ta photo, celle-ci correspond à ton ancien
+              profil car la nouvelle n'a pas encore été validée par un administrateur du site !
               <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
-              {/if}.
+              {/if} :
             </td>
             <td class="dcolg">
               <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " />
               <input type="checkbox" disabled="disabled" checked="checked" />
             </td>
             <td class="texte">
-              privé
+              privé
             </td>
           </tr>
         </table>
         <span class="titre">Surnom</span>
       </td>
       <td class="cold">
-        <input type="text" size="35" maxlength="64" name="nickname" value="{$nickname}" />
+        <input type="text" size="35" maxlength="64"
+               {if $errors.nick}class="error"{/if} name="nick" value="{$nick}" />
       </td>
     </tr>
     <tr>
               <input type="radio" name="mobile_pub" {if $mobile_pub eq 'ax'}checked="checked"{/if} value='ax' />
             </td>
             <td class="texte">
-              transmis à l'AX
+              transmis à l'AX
             </td>
             <td class="rouge">
               <input type="radio" name="mobile_pub" {if $mobile_pub eq 'private'}checked="checked"{/if} value='private' />
             </td>
             <td class="texte">
-              privé
+              privé
             </td>
             <td class="texte">
               <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
     </tr>
     <tr>
       <td class="colg">
-        <span class="titre">Téléphone mobile</span>
+        <span class="titre">Téléphone mobile</span>
       </td>
       <td class="cold">
         <input type="text" size="18" maxlength="18" name="mobile"
-        value="{$mobile}" />
+               {if $errors.mobile}class="error"{/if} value="{$mobile}" />
       </td>
     </tr>
     <tr>
       </td>
       <td class="dcold">
         <input type="text" size="35" maxlength="95" name="web"  
-        value="{$web}" />
+               {if $errors.web}class="error"{/if} value="{$web}" />
       </td>
     </tr>
     <tr>
     </tr>
     <tr>
       <td class="dcolg">
-        <span class="titre">Complément libre</span>
-        <span class="comm">Commentaire? ICQ? etc...</span>
+        <div>
+          <span class="titre">Complément libre</span>
+          <span class="comm">Commentaire ? ICQ ? etc...</span>
+        </div>
+        <div class="smaller" style="margin-top: 30px">
+          <a href="wiki_help/notitle" class="popup3">
+            {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour le commentaire
+          </a>
+          <div class="center">
+            <input type="submit" name="preview" value="Aperçu" 
+                    onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
+          </div>
+        </div>
       </td>
       <td class="dcold">
-        <textarea name="freetext" rows="3" cols="29" >{$freetext}</textarea>
+        <div id="ft_preview" style="display: none"></div>
+        <textarea name="freetext" {if $errors.freetext}class="error"{/if}
+                  id="freetext" rows="8" cols="35" >{$freetext}</textarea>
       </td>
     </tr>
   </table>
 </div>
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}