Merge branch 'master' into fusionax
[platal.git] / templates / profile / general.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <table class="bicol" style="margin-bottom: 1em"
24   summary="Profil&nbsp;: Informations générales">
25   <tr>
26     <th colspan="2">
27       <div class="flags" style="float: left">
28         <input type="checkbox" disabled="disabled" checked="checked" />
29         {icon name="flag_green" title="site public"}
30       </div>
31       Informations générales
32     </th>
33   </tr>
34   <tr>
35     <td>
36       <span class="titre">Nom</span><br/>
37     </td>
38     <td>
39       {$nom}
40       <input type='hidden' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
41     </td>
42   </tr>
43   <tr>
44     <td>
45       <span class="titre">Prénom</span><br/>
46     </td>
47     <td>
48       {$prenom}
49       <input type='hidden' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
50     </td>
51   </tr>
52   <tr>
53     <td>
54       <span class="titre">Affichage de ton nom</span>
55     </td>
56     <td>
57       {if $tooltip_name}<span title="{$tooltip_name}" style="border-bottom: 1px dashed black;">{$display_name}</span>{else}{$display_name}{/if}
58       <a href="profile/edit#names_advanced" onclick="$('#names_advanced').show('normal', {literal}function(){document.location = document.location + '#names_advanced';}{/literal});return false">
59         {icon name="page_edit" title="Plus de détail"}
60       </a>
61     </td>
62   </tr>
63   <tr>
64     <td>
65       <span class="titre">Promotion</span>
66     </td>
67     <td>
68       <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span>
69       <span class="lien"><a href="profile/orange" {if ($promo_sortie -3 == $promo)} {popup text="pour les oranges"}{/if}>{icon name="page_edit" title="modifier"}</a></span>
70     </td>
71   </tr>
72   <tr>
73     <td class="titre">Date de naissance</td>
74     <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td>
75   </tr>
76   <tr>
77     <td>
78       <span class="titre">Nationalité</span>
79     </td>
80     <td>
81       <select name="nationalite">
82         {select_nat valeur=$nationalite}
83       </select>
84     </td>
85   </tr>
86   <tr class="pair">
87     <td>
88       <span class="titre">Application</span><br />
89       <span class="comm">(4e année de l'X)</span>
90     </td>
91     <td>
92       <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">
93         {applis_options selected=$appli1.id}
94       </select>
95       <br />
96       <input type="hidden" name="appli1_tmp" value="{$appli1.type}" />
97       <select name="appli1[type]">
98         <option value=""></option>
99       </select>
100     </td>
101   </tr>
102   <tr class="pair">
103     <td>
104       <span class="titre">Post-application</span>
105     </td>
106     <td>
107       <select name="appli2[id]" onchange="fillType(this.form['appli2[type]'], this.selectedIndex-1);">
108         {applis_options selected=$appli2.id}
109       </select>
110       <br />
111       <input type="hidden" name="appli2_tmp" value="{$appli2.type}" />
112       <select name="appli2[type]">
113         <option value=""></option>
114       </select>
115     </td>
116   </tr>
117   <tr class="pair">
118     <td class="center" colspan="2">
119       <small>Si ta formation ne figure pas dans la liste,
120       <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
121     </td>
122   </tr>
123  </table>
124
125 <table class="bicol" style="margin-bottom: 1em;display:none"
126   summary="Profil : Noms" id="names_advanced">
127   <tr>
128     <th colspan="2">
129       Noms
130     </th>
131   </tr>
132   <tr class="impair" {popup caption="Affichage courant de ton nom" text="Ceci
133 est le nom qui s'affichera partout sur le site quand ton nom est mentionné dans
134 une liste, en haut de ta fiche ou lorsque tu proposes une annonce. On utilise
135 généralement le prénom usuel suivi du nom usuel avec des majuscules seulement
136 pour les premières lettres : <strong>Alfred&nbsp;de&nbsp;Musset</strong>" width="400"}>
137     <td>
138       <span class="flags">
139         <input type="checkbox" checked="checked" disabled="disabled" />
140         {icon name="flag_green" title="site public"}
141       </span>&nbsp;
142       <span class="titre">Affichage courant de ton nom</span>
143     </td>
144     <td>
145       <input type="text" name="display_name" value="{$display_name}" size="40"/>
146     </td>
147   </tr>
148   <tr class="impair" {popup caption="Explication du nom" text="Tu peux rajouter une
149   brêve explication de ton nom si par exemple il arrive qu'on confonde ton prénom
150   et ton nom, ou bien que vous êtes deux de la même promo à porter le même nom.
151   <strong>Prénom&nbsp;:&nbsp;Martin&nbsp;-&nbsp;Nom&nbsp;:&nbsp;Bernard</strong>" width="400"}>
152     <td>
153       <span class="titre">explication</span>
154     </td>
155     <td>
156       <input type="text" name="tooltip_name" value="{$tooltip_name}" size="40"/>
157     </td>
158   </tr>
159   <tr class="impair" {popup caption="Rangement du nom" text="Dans une liste d'anciens
160  ton nom sera rangé selon l'ordre alphabétique grâce à ce champs. On utilise
161  généralement le nom (sans particule) suivi d'une virgule et du prénom : <strong>
162  Dupont,&nbsp;Georges</strong>" width="400"}>
163     <td>
164       <span class="titre">ranger ce nom à</span>
165     </td>
166     <td>
167       <input type="text" name="sort_name" value="{$sort_name}" size="40"/>
168     </td>
169   </tr>
170   <tr class="impair" {popup caption="Comment doit-on t'appeler ?" text="Lorsque
171   nous t'envoyons un e-mail, nous nous adressons à toi par ton prénom. Le champs
172   suivant permet de changer cela. C'est surtout utile lorsque les e-mails sont
173   envoyés à une tierce personne (veuf ou veuve par exemple)" width="400"}>
174     <td>
175       <span class="flags">
176         <input type="checkbox" checked="checked" disabled="disabled" />
177         {icon name="flag_red" title="privé"}
178       </span>&nbsp;
179       <span class="titre">Comment on doit t'appeller</span>
180       <div class="smaller">dans les mails que nous t'envoyons</div>
181     </td>
182     <td>
183       <input type="text" name="yourself" value="{$yourself}" size="40"/>
184     </td>
185   </tr>
186   <tr class="impair" {popup caption="Noms de recherche" text="Tu peux ajouter ici
187   des noms pour apparaître dans les recherches. Tu peux par exemple ajouter le
188   nom que tu portais à l'école si tu as changé depuis ou bien un nom de scène, un
189   surnom ou encore le nom de ton conjoint. Les recherches ne fonctionneront que
190   sur la partie privée du site sauf si tu coches la case verte." width="400"}>
191     <td colspan="2">
192       <span class="titre">Recherche</span>
193       <span class="smaller">, ta fiche apparaît quand on cherche un de ces noms</span>
194       {iterate from=$search_names item="sn"}
195       <div id="search_name_{$sn.sn_id}" style="padding:2px" class="center">
196         {include file="profile/general.searchname.tpl" i=$sn.sn_id sn=$sn}
197       </div>
198       {/iterate}
199       <div id="add_search_name" class="center" style="clear: both">
200         <a href="javascript:addSearchName()">
201           {icon name=add title="Ajouter un nom de recherche"} Ajouter un nom
202         </a>
203       </div>
204     </td>
205 </table>
206
207 {if !$no_private_key}
208 <table class="bicol"  style="margin-bottom: 1em"
209   summary="Profil&nbsp;: Informations générales">
210   <tr>
211     <th>
212       Synchronisation avec l'AX
213     </th>
214   </tr>
215   <tr>
216     <td class="flags">
217       <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
218       {icon name="flag_orange" title="transmis à l'AX"}
219       <span class="texte">
220         Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
221       </span>
222     </td>
223   </tr>
224   <tr>
225     <td>
226       <p>
227         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>.
228       </p>
229       <p>
230         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à.
231       </p>
232       <p class="center">
233         <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>
234       </p>
235     </td>
236   </tr>
237 </table>
238 {/if}
239
240 <table class="bicol"  style="margin-bottom: 1em"
241   summary="Profil: Trombinoscope">
242   <tr>
243     <th colspan="2">
244       <div class="flags" style="float: left">
245         <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
246         {icon name="flag_green" title="site public"}
247       </div>
248       Trombinoscope
249     </th>
250   </tr>
251   <tr>
252     <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
253       <div class="titre">Ta photo actuelle</div>
254       <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
255     </td>
256     {if $nouvellephoto}
257     <td class="center" style="width: 49%">
258       <div class="titre">Photo en attente de validation</div>
259       <div>
260         <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">
261           Ta fiche avec cette photo
262         </a>
263       </div>
264       <img src="photo/{$smarty.session.forlife}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
265     </td>
266     {/if}
267   </tr>
268   <tr class="pair">
269     <td colspan="2">
270       Pour profiter de cette fonction intéressante, tu dois disposer
271       quelque part (sur ton ordinateur ou sur Internet) d'une photo
272       d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
273       <div class="center">
274         <a href="photo/change">Éditer ta photo</a>
275       </div>
276     </td>
277   </tr>
278 </table>
279
280 <table class="bicol" style="margin-bottom: 1em"
281   summary="Profil: Divers">
282   <tr>
283     <th colspan="2">
284       Divers
285     </th>
286   </tr>
287   <tr>
288     <td>
289       <span class="titre">Téléphone mobile</span>
290     </td>
291     <td>
292       <input type="text" size="18" maxlength="18" name="mobile"
293              {if $errors.mobile}class="error"{/if} value="{$mobile}" />
294       <span class="flags">
295         {include file="include/flags.radio.tpl" name="mobile_pub" val=$mobile_pub}
296       </span>
297     </td>
298   </tr>
299   <tr>
300     <td>
301       <span class="flags">
302         <input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
303         {icon name="flag_green" title="site public"}
304       </span>&nbsp;
305       <span class="titre">Page web Perso</span>
306     </td>
307     <td>
308       <input type="text" size="35" maxlength="95" name="web"
309              {if $errors.web}class="error"{/if} value="{$web}" />
310     </td>
311   </tr>
312   <tr class="pair">
313     <td>
314       <div>
315         <span class="flags">
316           <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
317           {icon name="flag_green" title="site public"}
318         </span>&nbsp;
319         <span class="titre">Complément libre</span><br />
320         <span class="comm">Commentaire ? ICQ ? etc...</span>
321       </div>
322       <div class="smaller" style="margin-top: 30px">
323         <a href="wiki_help/notitle" class="popup3">
324           {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
325         </a>
326         <div class="center">
327           <input type="submit" name="preview" value="Aperçu"
328                   onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
329         </div>
330       </div>
331     </td>
332     <td>
333       <div id="ft_preview" style="display: none"></div>
334       <textarea name="freetext" {if $errors.freetext}class="error"{/if}
335                 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
336     </td>
337   </tr>
338 </table>
339
340 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}