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 | |
6e32823c SJ |
68 | en ligne et papier et ta fiche apparaitra quand on cherche un de ces noms. Pour plus |
69 | d'explications sur l'icône suivante | |
70c65f3a | 70 | <a href="profile/name_info" class="popup3">{icon name="information" title="Plus d'infos"}</a>.</span><br/> |
6e32823c SJ |
71 | <div class="small center">Si un de tes noms commence par une particule, |
72 | coche la case en bout de ligne.</div> | |
73 | </td> | |
74 | </tr> | |
75 | {foreach from=$search_names item=sn key=id} | |
c4b45374 SJ |
76 | {include file="profile/general.searchname.tpl" i=$id sn=$sn |
77 | class="names_advanced" style="display: none" error_name=$errors.search_names} | |
6e32823c | 78 | {/foreach} |
c4b45374 | 79 | <tr class="names_advanced" id="searchname" {if !$errors.search_names}style="display: none"{/if}> |
b539d596 | 80 | <td colspan="3"> |
6e32823c | 81 | <div id="sn_add" class="center"> |
04e200e0 | 82 | <a href="javascript:addSearchName({$isFemale});"> |
6e32823c SJ |
83 | {icon name=add title="Ajouter un nom"} Ajouter un nom |
84 | </a> | |
85 | </div> | |
86 | </td> | |
87 | </tr> | |
88 | </table> | |
753742b9 | 89 | |
46ae38a9 | 90 | <table class="bicol" style="margin-bottom: 1em" |
e8439508 | 91 | summary="Profil : Informations générales"> |
46ae38a9 FB |
92 | <tr> |
93 | <th colspan="2"> | |
0c6cbd63 | 94 | <div class="flags" style="float: left"> |
ee12da4e FB |
95 | <input type="checkbox" disabled="disabled" checked="checked" /> |
96 | {icon name="flag_green" title="site public"} | |
0c6cbd63 | 97 | </div> |
46ae38a9 FB |
98 | Informations générales |
99 | </th> | |
100 | </tr> | |
101 | <tr> | |
0c6cbd63 | 102 | <td> |
b04882ff | 103 | <span class="titre">Promotion</span> |
46ae38a9 | 104 | </td> |
0c6cbd63 | 105 | <td> |
cbbf5ac9 | 106 | {if !t($promo_choice)} |
7e233317 SJ |
107 | <span class="nom">{$profile->promo()}</span> |
108 | <input type="hidden" name="promo_display" value="{$profile->promo()}"/> | |
fb2c09c9 | 109 | {else} |
7e233317 | 110 | <select name="promo_display"> |
fb2c09c9 | 111 | {foreach from=$promo_choice item="promo_to_display"} |
7e233317 | 112 | <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option> |
fb2c09c9 SJ |
113 | {/foreach} |
114 | </select> | |
115 | {/if} | |
7e233317 SJ |
116 | <span class="lien"><a href="javascript:togglePromotionEdition();" {popup text="pour les oranges"}>{icon name="page_edit" title="modifier"}</a></span> |
117 | </td> | |
118 | </tr> | |
119 | <tr class="promotion_edition" style="display: none"> | |
120 | <td colspan="2"> | |
42ec0fe2 FB |
121 | {if $isMe} |
122 | Afin de pouvoir être considéré{""|sex:"e":$profile} à la fois dans ta promotion d'origine et ta | |
7e233317 | 123 | ou tes promotions d'adoption tu peux entrer ici ta promotion d'adoption. |
42ec0fe2 FB |
124 | {else} |
125 | Afin que ce{""|sex:"tte":$profile} camarade soit considé{""|sex:"e":$profile} à la fois dans sa | |
2b10c5b5 | 126 | promotion d'origine et sa promotion d'adoption, tu peux entrer ici sa promotion d'adoption. |
42ec0fe2 | 127 | {/if} |
7e233317 SJ |
128 | <br /><span class="smaller"><span class="titre">Attention :</span> |
129 | cette modification ne sera prise en compte qu'après validation par les administrateurs du site.</span> | |
130 | </td> | |
131 | </tr> | |
132 | <tr class="promotion_edition" style="display: none"> | |
133 | <td class="titre">Promotion d'adoption</td> | |
134 | <td> | |
135 | {$profile->mainEducation()}<input type="text" name="promo" size="4" maxlength="4" value="{$promo}" /> | |
136 | <span class="smaller"> (que les chiffres)</span> | |
46ae38a9 FB |
137 | </td> |
138 | </tr> | |
139 | <tr> | |
bc7f707b SJ |
140 | <td> |
141 | <span class="titre">Date de naissance</span> | |
142 | </td> | |
455ea0c9 | 143 | <td><input type="text" {if $errors.birthdate}class="error"{/if} name="birthdate" value="{$birthdate}" /></td> |
7bff4cb0 | 144 | </tr> |
42ec0fe2 | 145 | {if !$isMe} |
87db81e7 FB |
146 | <tr> |
147 | <td> | |
148 | <span class="titre">Date de décès</span> | |
149 | </td> | |
150 | <td><input type="text" {if $errors.deathdate}class="error"{/if} name="deathdate" value="{$deathdate}" /></td> | |
151 | </tr> | |
152 | {/if} | |
7bff4cb0 | 153 | <tr> |
0c6cbd63 | 154 | <td> |
46ae38a9 FB |
155 | <span class="titre">Nationalité</span> |
156 | </td> | |
0c6cbd63 | 157 | <td> |
e5bcd851 FB |
158 | <select name="nationality1"> |
159 | {select_nat valeur=$nationality1 pad=1} | |
46ae38a9 | 160 | </select> |
8450c2aa SJ |
161 | <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a> |
162 | </td> | |
163 | </tr> | |
e5bcd851 | 164 | <tr id="nationality2" {if !$nationality2}style="display: none"{/if}> |
8450c2aa SJ |
165 | <td></td> |
166 | <td> | |
e5bcd851 FB |
167 | <select name="nationality2"> |
168 | {select_nat valeur=$nationality2 pad=1} | |
8450c2aa SJ |
169 | </select> |
170 | <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
171 | </td> | |
172 | </tr> | |
e5bcd851 | 173 | <tr id="nationality3" {if !$nationality3}style="display: none"{/if}> |
8450c2aa SJ |
174 | <td></td> |
175 | <td> | |
e5bcd851 FB |
176 | <select name="nationality3"> |
177 | {select_nat valeur=$nationality3 pad=1} | |
8450c2aa SJ |
178 | </select> |
179 | <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
46ae38a9 FB |
180 | </td> |
181 | </tr> | |
58acfe8b SJ |
182 | </table> |
183 | ||
184 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations"> | |
4887be78 | 185 | <tr> |
58acfe8b SJ |
186 | <th colspan="2"> |
187 | <div class="flags" style="float: left"> | |
188 | <input type="checkbox" disabled="disabled" checked="checked" /> | |
189 | {icon name="flag_green" title="site public"} | |
4887be78 | 190 | </div> |
58acfe8b SJ |
191 | Formations |
192 | </th> | |
043bbacf | 193 | </tr> |
58acfe8b SJ |
194 | {foreach from=$edus key=eduid item=edu} |
195 | {cycle values="impair, pair" assign=class} | |
2700a4f5 | 196 | {include file="profile/general.edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class} |
043bbacf | 197 | {/foreach} |
58acfe8b | 198 | {cycle values="impair, pair" assign=class} |
62dba58e SJ |
199 | {assign var=eduaddid value=$edus|@count} |
200 | <tr id="edu_add" class="edu_{$eduaddid} {$class}"> | |
043bbacf | 201 | <td colspan="2"> |
58acfe8b | 202 | <div class="center" style="clear: both; padding-top: 4px;"> |
043bbacf SJ |
203 | <a href="javascript:addEdu();"> |
204 | {icon name=add title="Ajouter une formation"} Ajouter une formation | |
4887be78 SJ |
205 | </a> |
206 | </div> | |
46ae38a9 FB |
207 | </td> |
208 | </tr> | |
58acfe8b | 209 | <tr class="{$class}"> |
30c895be | 210 | <td class="center" colspan="2"> |
42ec0fe2 | 211 | <small>Si la formation que tu cherches ne figure pas dans la liste, |
30c895be SJ |
212 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> |
213 | </td> | |
214 | </tr> | |
215 | </table> | |
0337d704 | 216 | |
42ec0fe2 | 217 | {if $viewPrivate || $isMe} |
46ae38a9 | 218 | <table class="bicol" style="margin-bottom: 1em" |
841ff7e7 | 219 | summary="Profil : Trombinoscope"> |
46ae38a9 FB |
220 | <tr> |
221 | <th colspan="2"> | |
0c6cbd63 | 222 | <div class="flags" style="float: left"> |
276f1db2 SJ |
223 | <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/> |
224 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 225 | </div> |
46ae38a9 FB |
226 | Trombinoscope |
227 | </th> | |
228 | </tr> | |
229 | <tr> | |
46ae38a9 | 230 | <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%"> |
42ec0fe2 | 231 | <div class="titre">Photo actuelle</div> |
e5bcd851 | 232 | <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
46ae38a9 FB |
233 | </td> |
234 | {if $nouvellephoto} | |
235 | <td class="center" style="width: 49%"> | |
236 | <div class="titre">Photo en attente de validation</div> | |
237 | <div> | |
e5bcd851 | 238 | <a href="profile/{$profile->hrid()}?modif=new" class="popup2"> |
46ae38a9 FB |
239 | Ta fiche avec cette photo |
240 | </a> | |
241 | </div> | |
e5bcd851 | 242 | <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
46ae38a9 FB |
243 | </td> |
244 | {/if} | |
245 | </tr> | |
246 | <tr class="pair"> | |
247 | <td colspan="2"> | |
248 | Pour profiter de cette fonction intéressante, tu dois disposer | |
249 | quelque part (sur ton ordinateur ou sur Internet) d'une photo | |
250 | d'identité (dans un fichier au format JPEG, PNG ou GIF).<br /> | |
251 | <div class="center"> | |
c710b211 | 252 | <a href="photo/change/{$profile->hrid()}">Éditer ta photo</a> |
46ae38a9 FB |
253 | </div> |
254 | </td> | |
255 | </tr> | |
256 | </table> | |
42ec0fe2 | 257 | {/if} |
46ae38a9 FB |
258 | |
259 | <table class="bicol" style="margin-bottom: 1em" | |
841ff7e7 | 260 | summary="Profil : Divers"> |
46ae38a9 FB |
261 | <tr> |
262 | <th colspan="2"> | |
263 | Divers | |
264 | </th> | |
265 | </tr> | |
266 | <tr> | |
bde2be3b GB |
267 | <td colspan="2"> |
268 | <span class="titre">Téléphones personnels</span> | |
46ae38a9 | 269 | </td> |
bde2be3b GB |
270 | </tr> |
271 | <tr> | |
272 | <td colspan="2"> | |
273 | {foreach from=$tels key=telid item=tel} | |
274 | <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
275 | {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel} | |
276 | </div> | |
277 | {/foreach} | |
278 | {if $tels|@count eq 0} | |
279 | <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
280 | {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0} | |
281 | </div> | |
282 | {/if} | |
283 | <div id="tels_add" class="center" style="clear: both; padding-top: 4px;"> | |
6fc390c7 | 284 | <a href="javascript:addTel('tels','tels',null,null,null);"> |
d8782f18 | 285 | {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone |
bde2be3b GB |
286 | </a> |
287 | </div> | |
46ae38a9 FB |
288 | </td> |
289 | </tr> | |
cbbf5ac9 | 290 | {if t($email_error)} |
4f06d57b | 291 | {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"} |
cbbf5ac9 | 292 | {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=false i="0"}{/if} |
46ae38a9 | 293 | <tr> |
d1a2252a GB |
294 | <td colspan="2"> |
295 | <span class="titre">Messageries, networking et sites web</span> | |
296 | </td> | |
297 | </tr> | |
d1a2252a GB |
298 | {foreach from=$networking item=network key=id} |
299 | {include file="profile/general.networking.tpl" nw=$network i=$id} | |
300 | {/foreach} | |
92c3f9e5 | 301 | <tr id="networking"> |
92c3f9e5 | 302 | <td colspan="2"> |
9fce7016 PC |
303 | <script type="text/javascript">//<![CDATA[ |
304 | var nw_list = new Array(); | |
305 | {foreach from=$network_list item=network} | |
306 | nw_list['{$network.name}'] = {$network.type}; | |
307 | {/foreach} | |
308 | //]]></script> | |
92c3f9e5 GB |
309 | <div id="nw_add" class="center"> |
310 | <a href="javascript:addNetworking();"> | |
311 | {icon name=add title="Ajouter une adresse"} Ajouter une adresse | |
312 | </a> | |
313 | </div> | |
314 | </td> | |
315 | </tr> | |
42ec0fe2 | 316 | {if $viewPrivate || $isMe} |
e60e10d7 | 317 | <tr class="pair"> |
0c6cbd63 | 318 | <td> |
46ae38a9 | 319 | <div> |
0c6cbd63 | 320 | <span class="flags"> |
276f1db2 SJ |
321 | <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} /> |
322 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 323 | </span> |
1052148d | 324 | <span class="titre">Commentaire</span> |
46ae38a9 FB |
325 | </div> |
326 | <div class="smaller" style="margin-top: 30px"> | |
327 | <a href="wiki_help/notitle" class="popup3"> | |
e60e10d7 | 328 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée |
46ae38a9 | 329 | </a> |
0447150d | 330 | <div class="center"> |
46ae38a9 FB |
331 | <input type="submit" name="preview" value="Aperçu" |
332 | onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" /> | |
3950bc21 | 333 | </div> |
46ae38a9 FB |
334 | </div> |
335 | </td> | |
0c6cbd63 | 336 | <td> |
46ae38a9 FB |
337 | <div id="ft_preview" style="display: none"></div> |
338 | <textarea name="freetext" {if $errors.freetext}class="error"{/if} | |
e60e10d7 | 339 | id="freetext" rows="8" cols="50" >{$freetext}</textarea> |
46ae38a9 FB |
340 | </td> |
341 | </tr> | |
42ec0fe2 | 342 | {/if} |
46ae38a9 | 343 | </table> |
0337d704 | 344 | |
a7de4ef7 | 345 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |