Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
6e32823c SJ |
23 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Noms"> |
24 | <tr> | |
cbbf5ac9 | 25 | <th colspan="3">Noms{if t($validation)} <small>(validations en attente de modération)</small>{/if}</th> |
6e32823c SJ |
26 | </tr> |
27 | <tr> | |
28 | <td class="titre"> | |
29 | {icon name="flag_green" title="site public"} Affichage public | |
30 | </td> | |
31 | <td id="public_name"> | |
32 | {$public_name} | |
33 | </td> | |
42ec0fe2 | 34 | <td> |
e1082e20 | 35 | <a href="javascript:toggleNamesAdvanced();"> |
6e32823c SJ |
36 | {icon name="page_edit" title="Plus de détail"} |
37 | </a> | |
38 | </td> | |
39 | </tr> | |
42ec0fe2 | 40 | {if $viewPrivate} |
6e32823c SJ |
41 | <tr> |
42 | <td class="titre"> | |
43 | {icon name="flag_red" title="site privé"} Affichage privé | |
44 | </td> | |
45 | <td id="private_name"> | |
46 | {$private_name} | |
47 | </td> | |
42ec0fe2 | 48 | <td></td> |
6e32823c | 49 | </tr> |
42ec0fe2 FB |
50 | {/if} |
51 | {if $isMe} | |
6e32823c SJ |
52 | <tr> |
53 | <td> | |
70c65f3a | 54 | <span class="titre">Comment t'appeller</span><br /> |
6e32823c SJ |
55 | <span class="smaller">sur le site, dans la lettre mensuelle...</span> |
56 | </td> | |
57 | <td> | |
58 | <input type="text" name="yourself" value="{$yourself}" size="25"/> | |
59 | </td> | |
60 | <td></td> | |
61 | </tr> | |
42ec0fe2 | 62 | {/if} |
c4b45374 | 63 | <tr class="names_advanced" {if !$errors.search_names}style="display: none"{/if}> |
6e32823c | 64 | <td colspan="3"> |
42ec0fe2 FB |
65 | <span class="titre">Gestion des noms, prénoms, surnoms...</span> |
66 | <span class="smaller">Ils déterminent la façon dont | |
67 | {if $isMe}ton{else}son{/if} nom apparaît sur les annuaires | |
0e1dfbad | 68 | en ligne et papier et ta fiche apparaitra quand on cherche un de ces noms.</span><br/> |
6e32823c SJ |
69 | <div class="small center">Si un de tes noms commence par une particule, |
70 | coche la case en bout de ligne.</div> | |
71 | </td> | |
72 | </tr> | |
0e1dfbad SJ |
73 | {include file="profile/general.public_names.tpl" names=$search_names.public_names} |
74 | {foreach from=$search_names.private_names key=id item=name} | |
75 | {include file="profile/general.private_name.tpl"} | |
6e32823c | 76 | {/foreach} |
c4b45374 | 77 | <tr class="names_advanced" id="searchname" {if !$errors.search_names}style="display: none"{/if}> |
b539d596 | 78 | <td colspan="3"> |
6e32823c | 79 | <div id="sn_add" class="center"> |
04e200e0 | 80 | <a href="javascript:addSearchName({$isFemale});"> |
6e32823c SJ |
81 | {icon name=add title="Ajouter un nom"} Ajouter un nom |
82 | </a> | |
83 | </div> | |
84 | </td> | |
85 | </tr> | |
86 | </table> | |
753742b9 | 87 | |
46ae38a9 | 88 | <table class="bicol" style="margin-bottom: 1em" |
e8439508 | 89 | summary="Profil : Informations générales"> |
46ae38a9 FB |
90 | <tr> |
91 | <th colspan="2"> | |
0c6cbd63 | 92 | <div class="flags" style="float: left"> |
ee12da4e FB |
93 | <input type="checkbox" disabled="disabled" checked="checked" /> |
94 | {icon name="flag_green" title="site public"} | |
0c6cbd63 | 95 | </div> |
46ae38a9 FB |
96 | Informations générales |
97 | </th> | |
98 | </tr> | |
99 | <tr> | |
0c6cbd63 | 100 | <td> |
b04882ff | 101 | <span class="titre">Promotion</span> |
46ae38a9 | 102 | </td> |
0c6cbd63 | 103 | <td> |
cbbf5ac9 | 104 | {if !t($promo_choice)} |
7e233317 SJ |
105 | <span class="nom">{$profile->promo()}</span> |
106 | <input type="hidden" name="promo_display" value="{$profile->promo()}"/> | |
fb2c09c9 | 107 | {else} |
7e233317 | 108 | <select name="promo_display"> |
fb2c09c9 | 109 | {foreach from=$promo_choice item="promo_to_display"} |
7e233317 | 110 | <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option> |
fb2c09c9 SJ |
111 | {/foreach} |
112 | </select> | |
113 | {/if} | |
7e233317 SJ |
114 | <span class="lien"><a href="javascript:togglePromotionEdition();" {popup text="pour les oranges"}>{icon name="page_edit" title="modifier"}</a></span> |
115 | </td> | |
116 | </tr> | |
117 | <tr class="promotion_edition" style="display: none"> | |
118 | <td colspan="2"> | |
42ec0fe2 FB |
119 | {if $isMe} |
120 | Afin de pouvoir être considéré{""|sex:"e":$profile} à la fois dans ta promotion d'origine et ta | |
7e233317 | 121 | ou tes promotions d'adoption tu peux entrer ici ta promotion d'adoption. |
42ec0fe2 FB |
122 | {else} |
123 | Afin que ce{""|sex:"tte":$profile} camarade soit considé{""|sex:"e":$profile} à la fois dans sa | |
2b10c5b5 | 124 | promotion d'origine et sa promotion d'adoption, tu peux entrer ici sa promotion d'adoption. |
42ec0fe2 | 125 | {/if} |
7e233317 SJ |
126 | <br /><span class="smaller"><span class="titre">Attention :</span> |
127 | cette modification ne sera prise en compte qu'après validation par les administrateurs du site.</span> | |
128 | </td> | |
129 | </tr> | |
130 | <tr class="promotion_edition" style="display: none"> | |
131 | <td class="titre">Promotion d'adoption</td> | |
132 | <td> | |
133 | {$profile->mainEducation()}<input type="text" name="promo" size="4" maxlength="4" value="{$promo}" /> | |
134 | <span class="smaller"> (que les chiffres)</span> | |
46ae38a9 FB |
135 | </td> |
136 | </tr> | |
137 | <tr> | |
bc7f707b SJ |
138 | <td> |
139 | <span class="titre">Date de naissance</span> | |
140 | </td> | |
455ea0c9 | 141 | <td><input type="text" {if $errors.birthdate}class="error"{/if} name="birthdate" value="{$birthdate}" /></td> |
7bff4cb0 | 142 | </tr> |
42ec0fe2 | 143 | {if !$isMe} |
87db81e7 FB |
144 | <tr> |
145 | <td> | |
146 | <span class="titre">Date de décès</span> | |
147 | </td> | |
148 | <td><input type="text" {if $errors.deathdate}class="error"{/if} name="deathdate" value="{$deathdate}" /></td> | |
149 | </tr> | |
e1805873 SJ |
150 | <tr> |
151 | <td> | |
152 | <span class="titre">Date de naissance de référence</span> | |
153 | </td> | |
154 | <td> | |
26198a04 | 155 | {if hasPerm('admin') && !$is_registered} |
e1805873 SJ |
156 | <input type="text" {if $errors.birthdate_ref}class="error"{/if} name="birthdate_ref" value="{$birthdate_ref}" /> |
157 | {else} | |
158 | {$birthdate_ref} | |
159 | {/if} | |
160 | </td> | |
161 | </tr> | |
87db81e7 | 162 | {/if} |
7bff4cb0 | 163 | <tr> |
0c6cbd63 | 164 | <td> |
46ae38a9 FB |
165 | <span class="titre">Nationalité</span> |
166 | </td> | |
0c6cbd63 | 167 | <td> |
e5bcd851 FB |
168 | <select name="nationality1"> |
169 | {select_nat valeur=$nationality1 pad=1} | |
46ae38a9 | 170 | </select> |
8450c2aa SJ |
171 | <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a> |
172 | </td> | |
173 | </tr> | |
e5bcd851 | 174 | <tr id="nationality2" {if !$nationality2}style="display: none"{/if}> |
8450c2aa SJ |
175 | <td></td> |
176 | <td> | |
e5bcd851 FB |
177 | <select name="nationality2"> |
178 | {select_nat valeur=$nationality2 pad=1} | |
8450c2aa SJ |
179 | </select> |
180 | <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
181 | </td> | |
182 | </tr> | |
e5bcd851 | 183 | <tr id="nationality3" {if !$nationality3}style="display: none"{/if}> |
8450c2aa SJ |
184 | <td></td> |
185 | <td> | |
e5bcd851 FB |
186 | <select name="nationality3"> |
187 | {select_nat valeur=$nationality3 pad=1} | |
8450c2aa SJ |
188 | </select> |
189 | <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
46ae38a9 FB |
190 | </td> |
191 | </tr> | |
89aba52d SJ |
192 | <tr> |
193 | <td><span class="titre">Civilité</span></td> | |
194 | <td> | |
195 | <select name="profile_title"> | |
196 | <option value="M" {if $profile_title eq "M"}selected="selected"{/if}>M</option> | |
197 | <option value="MLLE" {if $profile_title eq "MLLE"}selected="selected"{/if}>MLLE</option> | |
198 | <option value="MME" {if $profile_title eq "MME"}selected="selected"{/if}>MME</option> | |
199 | </select> | |
200 | </td> | |
201 | </tr> | |
58acfe8b SJ |
202 | </table> |
203 | ||
d7de04af SJ |
204 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations à l'X"> |
205 | <tr> | |
206 | <th colspan="2"> | |
207 | <div class="flags" style="float: left"> | |
208 | <input type="checkbox" disabled="disabled" checked="checked" /> | |
209 | {icon name="flag_green" title="site public"} | |
210 | </div> | |
211 | Formations à l'École polytechnique | |
212 | </th> | |
213 | </tr> | |
214 | {foreach from=$main_edus key=eduid item=main_edu} | |
215 | {cycle values="impair, pair" assign=class} | |
216 | <tr class="{$class}"> | |
217 | <td><span class="titre">Cycle :</span></td> | |
218 | <td>{$main_edu.cycle}</td> | |
219 | </tr> | |
220 | <tr class="{$class}"> | |
221 | <td><span class="titre">Promotion :</span></td> | |
e0d6b3af | 222 | <td>{if t($main_edu.promo_year)}{$main_edu.promo_year}{/if}</td> |
d7de04af SJ |
223 | </tr> |
224 | <tr class="{$class}"> | |
225 | <td><span class="titre">Domaine de formation :</span></td> | |
226 | <td> | |
227 | <select name="main_edus[{$main_edu.degreeid}][fieldid]"> | |
228 | <option value=""> </option> | |
229 | {foreach from=$edu_fields item=field} | |
230 | <option value="{$field.id}" {if $field.id eq $main_edu.fieldid}selected="selected"{/if}>{$field.field}</option> | |
231 | {/foreach} | |
232 | </select> | |
233 | </td> | |
234 | </tr> | |
235 | <tr class="{$class}"> | |
236 | <td><span class="titre">Description de la formation :</span></td> | |
237 | <td> | |
238 | <input type="text" name="main_edus[{$main_edu.degreeid}][program]" value="{$main_edu.program}" size="30" maxlength="255" /> | |
239 | <input type="hidden" name="main_edus[{$main_edu.degreeid}][degreeid]" value="{$main_edu.degreeid}" /> | |
240 | <input type="hidden" name="main_edus[{$main_edu.degreeid}][cycle]" value="{$main_edu.cycle}" /> | |
241 | </td> | |
242 | </tr> | |
243 | {/foreach} | |
244 | </table> | |
245 | ||
58acfe8b | 246 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations"> |
4887be78 | 247 | <tr> |
58acfe8b SJ |
248 | <th colspan="2"> |
249 | <div class="flags" style="float: left"> | |
250 | <input type="checkbox" disabled="disabled" checked="checked" /> | |
251 | {icon name="flag_green" title="site public"} | |
4887be78 | 252 | </div> |
58acfe8b SJ |
253 | Formations |
254 | </th> | |
043bbacf | 255 | </tr> |
58acfe8b SJ |
256 | {foreach from=$edus key=eduid item=edu} |
257 | {cycle values="impair, pair" assign=class} | |
2700a4f5 | 258 | {include file="profile/general.edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class} |
043bbacf | 259 | {/foreach} |
58acfe8b | 260 | {cycle values="impair, pair" assign=class} |
62dba58e SJ |
261 | {assign var=eduaddid value=$edus|@count} |
262 | <tr id="edu_add" class="edu_{$eduaddid} {$class}"> | |
043bbacf | 263 | <td colspan="2"> |
58acfe8b | 264 | <div class="center" style="clear: both; padding-top: 4px;"> |
043bbacf SJ |
265 | <a href="javascript:addEdu();"> |
266 | {icon name=add title="Ajouter une formation"} Ajouter une formation | |
4887be78 SJ |
267 | </a> |
268 | </div> | |
46ae38a9 FB |
269 | </td> |
270 | </tr> | |
58acfe8b | 271 | <tr class="{$class}"> |
30c895be | 272 | <td class="center" colspan="2"> |
42ec0fe2 | 273 | <small>Si la formation que tu cherches ne figure pas dans la liste, |
30c895be SJ |
274 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> |
275 | </td> | |
276 | </tr> | |
277 | </table> | |
0337d704 | 278 | |
42ec0fe2 | 279 | {if $viewPrivate || $isMe} |
46ae38a9 | 280 | <table class="bicol" style="margin-bottom: 1em" |
841ff7e7 | 281 | summary="Profil : Trombinoscope"> |
46ae38a9 FB |
282 | <tr> |
283 | <th colspan="2"> | |
0c6cbd63 | 284 | <div class="flags" style="float: left"> |
276f1db2 SJ |
285 | <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/> |
286 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 287 | </div> |
46ae38a9 FB |
288 | Trombinoscope |
289 | </th> | |
290 | </tr> | |
291 | <tr> | |
46ae38a9 | 292 | <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%"> |
42ec0fe2 | 293 | <div class="titre">Photo actuelle</div> |
e5bcd851 | 294 | <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
46ae38a9 FB |
295 | </td> |
296 | {if $nouvellephoto} | |
297 | <td class="center" style="width: 49%"> | |
298 | <div class="titre">Photo en attente de validation</div> | |
299 | <div> | |
e5bcd851 | 300 | <a href="profile/{$profile->hrid()}?modif=new" class="popup2"> |
46ae38a9 FB |
301 | Ta fiche avec cette photo |
302 | </a> | |
303 | </div> | |
e5bcd851 | 304 | <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
46ae38a9 FB |
305 | </td> |
306 | {/if} | |
307 | </tr> | |
308 | <tr class="pair"> | |
309 | <td colspan="2"> | |
310 | Pour profiter de cette fonction intéressante, tu dois disposer | |
311 | quelque part (sur ton ordinateur ou sur Internet) d'une photo | |
312 | d'identité (dans un fichier au format JPEG, PNG ou GIF).<br /> | |
313 | <div class="center"> | |
c710b211 | 314 | <a href="photo/change/{$profile->hrid()}">Éditer ta photo</a> |
46ae38a9 FB |
315 | </div> |
316 | </td> | |
317 | </tr> | |
318 | </table> | |
42ec0fe2 | 319 | {/if} |
46ae38a9 FB |
320 | |
321 | <table class="bicol" style="margin-bottom: 1em" | |
841ff7e7 | 322 | summary="Profil : Divers"> |
46ae38a9 FB |
323 | <tr> |
324 | <th colspan="2"> | |
325 | Divers | |
326 | </th> | |
327 | </tr> | |
328 | <tr> | |
bde2be3b GB |
329 | <td colspan="2"> |
330 | <span class="titre">Téléphones personnels</span> | |
46ae38a9 | 331 | </td> |
bde2be3b GB |
332 | </tr> |
333 | <tr> | |
334 | <td colspan="2"> | |
335 | {foreach from=$tels key=telid item=tel} | |
336 | <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
337 | {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel} | |
338 | </div> | |
339 | {/foreach} | |
340 | {if $tels|@count eq 0} | |
341 | <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
342 | {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0} | |
343 | </div> | |
344 | {/if} | |
345 | <div id="tels_add" class="center" style="clear: both; padding-top: 4px;"> | |
6fc390c7 | 346 | <a href="javascript:addTel('tels','tels',null,null,null);"> |
d8782f18 | 347 | {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone |
bde2be3b GB |
348 | </a> |
349 | </div> | |
46ae38a9 FB |
350 | </td> |
351 | </tr> | |
cbbf5ac9 | 352 | {if t($email_error)} |
4f06d57b | 353 | {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"} |
cbbf5ac9 | 354 | {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=false i="0"}{/if} |
46ae38a9 | 355 | <tr> |
d1a2252a GB |
356 | <td colspan="2"> |
357 | <span class="titre">Messageries, networking et sites web</span> | |
358 | </td> | |
359 | </tr> | |
d1a2252a GB |
360 | {foreach from=$networking item=network key=id} |
361 | {include file="profile/general.networking.tpl" nw=$network i=$id} | |
362 | {/foreach} | |
92c3f9e5 | 363 | <tr id="networking"> |
92c3f9e5 | 364 | <td colspan="2"> |
9fce7016 PC |
365 | <script type="text/javascript">//<![CDATA[ |
366 | var nw_list = new Array(); | |
367 | {foreach from=$network_list item=network} | |
368 | nw_list['{$network.name}'] = {$network.type}; | |
369 | {/foreach} | |
370 | //]]></script> | |
92c3f9e5 GB |
371 | <div id="nw_add" class="center"> |
372 | <a href="javascript:addNetworking();"> | |
373 | {icon name=add title="Ajouter une adresse"} Ajouter une adresse | |
374 | </a> | |
375 | </div> | |
376 | </td> | |
377 | </tr> | |
8fcfc71f SJ |
378 | <tr> |
379 | <td colspan="2"> | |
380 | <span class="titre">Sports, loisirs, hobbies…</span> | |
381 | </td> | |
382 | </tr> | |
383 | {foreach from=$hobbies item=hobby key=id} | |
384 | {include file="profile/general.hobby.tpl" hobby=$hobby i=$id} | |
385 | {/foreach} | |
386 | <tr id="hobby"> | |
387 | <td colspan="2"> | |
388 | <div id="hobby_add" class="center"> | |
389 | <a href="javascript:addHobby();"> | |
390 | {icon name=add title="Ajouter un hobby"} Ajouter un hobby | |
391 | </a> | |
392 | </div> | |
393 | </td> | |
394 | </tr> | |
79d0b9af | 395 | {if $viewPrivate || $isMe} |
e60e10d7 | 396 | <tr class="pair"> |
0c6cbd63 | 397 | <td> |
46ae38a9 | 398 | <div> |
0c6cbd63 | 399 | <span class="flags"> |
276f1db2 SJ |
400 | <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} /> |
401 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 402 | </span> |
1052148d | 403 | <span class="titre">Commentaire</span> |
46ae38a9 FB |
404 | </div> |
405 | <div class="smaller" style="margin-top: 30px"> | |
406 | <a href="wiki_help/notitle" class="popup3"> | |
e60e10d7 | 407 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée |
46ae38a9 | 408 | </a> |
0447150d | 409 | <div class="center"> |
46ae38a9 FB |
410 | <input type="submit" name="preview" value="Aperçu" |
411 | onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" /> | |
3950bc21 | 412 | </div> |
46ae38a9 FB |
413 | </div> |
414 | </td> | |
0c6cbd63 | 415 | <td> |
46ae38a9 FB |
416 | <div id="ft_preview" style="display: none"></div> |
417 | <textarea name="freetext" {if $errors.freetext}class="error"{/if} | |
e60e10d7 | 418 | id="freetext" rows="8" cols="50" >{$freetext}</textarea> |
46ae38a9 FB |
419 | </td> |
420 | </tr> | |
42ec0fe2 | 421 | {/if} |
46ae38a9 | 422 | </table> |
0337d704 | 423 | |
a7de4ef7 | 424 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |