add name edition in profile
[platal.git] / templates / profile / general.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 Polytechnique.org *}
0337d704 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
46ae38a9
FB
23<table class="bicol" style="margin-bottom: 1em"
24 summary="Profil : Informations générales">
25 <tr>
26 <th colspan="2">
0c6cbd63 27 <div class="flags" style="float: left">
ee12da4e
FB
28 <input type="checkbox" disabled="disabled" checked="checked" />
29 {icon name="flag_green" title="site public"}
0c6cbd63 30 </div>
46ae38a9
FB
31 Informations générales
32 </th>
33 </tr>
34 <tr>
0c6cbd63 35 <td>
b04882ff 36 <span class="titre">Nom</span><br/>
46ae38a9 37 </td>
0c6cbd63 38 <td>
b04882ff
PC
39 {$nom}
40 <input type='hidden' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
46ae38a9
FB
41 </td>
42 </tr>
43 <tr>
0c6cbd63 44 <td>
b04882ff 45 <span class="titre">Prénom</span><br/>
46ae38a9 46 </td>
0c6cbd63 47 <td>
b04882ff
PC
48 {$prenom}
49 <input type='hidden' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
46ae38a9
FB
50 </td>
51 </tr>
52 <tr>
0c6cbd63 53 <td>
b04882ff 54 <span class="titre">Affichage de ton nom</span>
46ae38a9 55 </td>
0c6cbd63 56 <td>
b04882ff
PC
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>
46ae38a9
FB
61 </td>
62 </tr>
63 <tr>
0c6cbd63 64 <td>
b04882ff 65 <span class="titre">Promotion</span>
46ae38a9 66 </td>
0c6cbd63 67 <td>
b04882ff
PC
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>
46ae38a9
FB
70 </td>
71 </tr>
72 <tr>
7bff4cb0
FB
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>
0c6cbd63 77 <td>
46ae38a9
FB
78 <span class="titre">Nationalité</span>
79 </td>
0c6cbd63 80 <td>
46ae38a9
FB
81 <select name="nationalite">
82 {select_nat valeur=$nationalite}
83 </select>
84 </td>
85 </tr>
86 <tr class="pair">
0c6cbd63 87 <td>
46ae38a9
FB
88 <span class="titre">Application</span><br />
89 <span class="comm">(4ème année de l'X)</span>
90 </td>
0c6cbd63 91 <td>
46ae38a9
FB
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">
0c6cbd63 103 <td>
46ae38a9
FB
104 <span class="titre">Post-application</span>
105 </td>
0c6cbd63 106 <td>
46ae38a9
FB
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</table>
0337d704 118
b04882ff
PC
119<table class="bicol" style="margin-bottom: 1em;display:none"
120 summary="Profil : Noms" id="names_advanced">
121 <tr>
122 <th colspan="2">
123 Noms
124 </th>
125 </tr>
126 <tr class="impair" {popup caption="Affichage courant de ton nom" text="Ceci
127est le nom qui s'affichera partout sur le site quand ton nom est mentionné dans
128une liste, en haut de ta fiche ou lorsque tu proposes une annonce. On utilise
129généralement le prénom usuel suivi du nom usuel avec des majuscules seulement
130pour les premières lettres : <strong>Alfred&nbsp;de&nbsp;Musset</strong>" width="400"}>
131 <td>
132 <span class="flags">
133 <input type="checkbox" checked="checked" disabled="disabled" />
134 {icon name="flag_green" title="site public"}
135 </span>&nbsp;
136 <span class="titre">Affichage courant de ton nom</span>
137 </td>
138 <td>
139 <input type="text" name="display_name" value="{$display_name}" size="40"/>
140 </td>
141 </tr>
142 <tr class="impair" {popup caption="Explication du nom" text="Tu peux rajouter une
143 brêve explication de ton nom si par exemple il arrive qu'on confonde ton prénom
144 et ton nom, ou bien que vous êtes deux de la même promo à porter le même nom.
145 <strong>Prénom&nbsp;:&nbsp;Martin&nbsp;-&nbsp;Nom&nbsp;:&nbsp;Bernard</strong>" width="400"}>
146 <td>
147 <span class="titre">explication</span>
148 </td>
149 <td>
150 <input type="text" name="tooltip_name" value="{$tooltip_name}" size="40"/>
151 </td>
152 </tr>
153 <tr class="impair" {popup caption="Rangement du nom" text="Dans une liste d'anciens
154 ton nom sera rangé selon l'ordre alphabétique grâce à ce champs. On utilise
155 généralement le nom (sans particule) suivi d'une virgule et du prénom : <strong>
156 Dupont,&nbsp;Georges</strong>" width="400"}>
157 <td>
158 <span class="titre">ranger ce nom à</span>
159 </td>
160 <td>
161 <input type="text" name="sort_name" value="{$sort_name}" size="40"/>
162 </td>
163 </tr>
164 <tr class="impair" {popup caption="Comment doit-on t'appeler ?" text="Lorsque
165 nous t'envoyons un e-mail, nous nous adressons à toi par ton prénom. Le champs
166 suivant permet de changer cela. C'est surtout utile lorsque les e-mails sont
167 envoyés à une tierce personne (veuf ou veuve par exemple)" width="400"}>
168 <td>
169 <span class="flags">
170 <input type="checkbox" checked="checked" disabled="disabled" />
171 {icon name="flag_red" title="privé"}
172 </span>&nbsp;
173 <span class="titre">Comment on doit t'appeller</span>
174 <div class="smaller">dans les mails que nous t'envoyons</div>
175 </td>
176 <td>
177 <input type="text" name="yourself" value="{$yourself}" size="40"/>
178 </td>
179 </tr>
180 <tr class="impair" {popup caption="Noms de recherche" text="Tu peux ajouter ici
181 des noms pour apparaître dans les recherches. Tu peux par exemple ajouter le
182 nom que tu portais à l'école si tu as changé depuis ou bien un nom de scène, un
183 surnom ou encore le nom de ton conjoint. Les recherches ne fonctionneront que
184 sur la partie privée du site sauf si tu coches la case verte." width="400"}>
185 <td colspan="2">
186 <span class="titre">Recherche</span>
187 <span class="smaller">, ta fiche apparaît quand on cherche un de ces noms</span>
188 {iterate from=$search_names item="sn"}
189 <div id="search_name_{$sn.sn_id}" style="padding:2px" class="center">
190 {include file="profile/general.searchname.tpl" i=$sn.sn_id sn=$sn}
191 </div>
192 {/iterate}
193 <div id="add_search_name" class="center" style="clear: both">
194 <a href="javascript:addSearchName()">
195 {icon name=add title="Ajouter un nom de recherche"} Ajouter un nom
196 </a>
197 </div>
198 </td>
199</table>
200
33ae80b5 201{if !$no_private_key}
46ae38a9
FB
202<table class="bicol" style="margin-bottom: 1em"
203 summary="Profil : Informations générales">
204 <tr>
205 <th>
206 Synchronisation avec l'AX
207 </th>
208 </tr>
209 <tr>
0c6cbd63 210 <td class="flags">
ee12da4e
FB
211 <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
212 {icon name="flag_orange" title="transmis à l'AX"}
0c6cbd63
FB
213 <span class="texte">
214 Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
215 </span>
216 </td>
217 </tr>
218 <tr>
46ae38a9
FB
219 <td>
220 <p>
221 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>.
222 </p>
223 <p>
224 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à.
225 </p>
226 <p class="center">
227 <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>
228 </p>
229 </td>
230 </tr>
46ae38a9 231</table>
33ae80b5 232{/if}
76011d98 233
46ae38a9
FB
234<table class="bicol" style="margin-bottom: 1em"
235 summary="Profil: Trombinoscope">
236 <tr>
237 <th colspan="2">
0c6cbd63 238 <div class="flags" style="float: left">
ee12da4e
FB
239 <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
240 {icon name="flag_green" title="site public"}
0c6cbd63 241 </div>
46ae38a9
FB
242 Trombinoscope
243 </th>
244 </tr>
245 <tr>
46ae38a9
FB
246 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
247 <div class="titre">Ta photo actuelle</div>
248 <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
249 </td>
250 {if $nouvellephoto}
251 <td class="center" style="width: 49%">
252 <div class="titre">Photo en attente de validation</div>
253 <div>
254 <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">
255 Ta fiche avec cette photo
256 </a>
257 </div>
258 <img src="photo/{$smarty.session.forlife}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
259 </td>
260 {/if}
261 </tr>
262 <tr class="pair">
263 <td colspan="2">
264 Pour profiter de cette fonction intéressante, tu dois disposer
265 quelque part (sur ton ordinateur ou sur Internet) d'une photo
266 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
267 <div class="center">
268 <a href="photo/change">Éditer ta photo</a>
269 </div>
270 </td>
271 </tr>
272</table>
273
274<table class="bicol" style="margin-bottom: 1em"
275 summary="Profil: Divers">
276 <tr>
277 <th colspan="2">
278 Divers
279 </th>
280 </tr>
281 <tr>
0c6cbd63 282 <td>
46ae38a9
FB
283 <span class="titre">Téléphone mobile</span>
284 </td>
0c6cbd63 285 <td>
46ae38a9
FB
286 <input type="text" size="18" maxlength="18" name="mobile"
287 {if $errors.mobile}class="error"{/if} value="{$mobile}" />
0c6cbd63 288 <span class="flags">
ee12da4e 289 {include file="include/flags.radio.tpl" name="mobile_pub" val=$mobile_pub}
0c6cbd63 290 </span>
46ae38a9
FB
291 </td>
292 </tr>
293 <tr>
0c6cbd63
FB
294 <td>
295 <span class="flags">
0c6cbd63 296 <input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
ee12da4e 297 {icon name="flag_green" title="site public"}
0c6cbd63 298 </span>&nbsp;
46ae38a9
FB
299 <span class="titre">Page web Perso</span>
300 </td>
0c6cbd63 301 <td>
46ae38a9
FB
302 <input type="text" size="35" maxlength="95" name="web"
303 {if $errors.web}class="error"{/if} value="{$web}" />
304 </td>
305 </tr>
e60e10d7 306 <tr class="pair">
0c6cbd63 307 <td>
46ae38a9 308 <div>
0c6cbd63 309 <span class="flags">
0c6cbd63 310 <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
ee12da4e 311 {icon name="flag_green" title="site public"}
0c6cbd63
FB
312 </span>&nbsp;
313 <span class="titre">Complément libre</span><br />
46ae38a9
FB
314 <span class="comm">Commentaire ? ICQ ? etc...</span>
315 </div>
316 <div class="smaller" style="margin-top: 30px">
317 <a href="wiki_help/notitle" class="popup3">
e60e10d7 318 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
46ae38a9 319 </a>
0447150d 320 <div class="center">
46ae38a9
FB
321 <input type="submit" name="preview" value="Aperçu"
322 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
3950bc21 323 </div>
46ae38a9
FB
324 </div>
325 </td>
0c6cbd63 326 <td>
46ae38a9
FB
327 <div id="ft_preview" style="display: none"></div>
328 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
e60e10d7 329 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
46ae38a9
FB
330 </td>
331 </tr>
332</table>
0337d704 333
a7de4ef7 334{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}