Adds explanations for the different types of names.
[platal.git] / templates / profile / general.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 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>
25 <th colspan="3">Noms</th>
26 </tr>
27 <tr>
28 <td class="titre">
29 {icon name="flag_green" title="site public"}&nbsp;Affichage public
30 </td>
31 <td id="public_name">
32 {$public_name}
33 </td>
34 <td rowspan="2">
35 <a href="javascript:displayNamesAdvanced();">
36 {icon name="page_edit" title="Plus de détail"}
37 </a>
38 </td>
39 </tr>
40 <tr>
41 <td class="titre">
42 {icon name="flag_red" title="site privé"}&nbsp;Affichage privé
43 </td>
44 <td id="private_name">
45 {$private_name}
46 </td>
47 </tr>
48 <tr>
49 <td>
70c65f3a 50 <span class="titre">Comment t'appeller</span><br />
6e32823c
SJ
51 <span class="smaller">sur le site, dans la lettre mensuelle...</span>
52 </td>
53 <td>
54 <input type="text" name="yourself" value="{$yourself}" size="25"/>
55 </td>
56 <td></td>
57 </tr>
58 <tr class="names_advanced" style="display: none">
59 <td colspan="3">
60 <span class="titre">Gestion de tes noms, prénoms, surnoms...</span>
61 <span class="smaller">Ils déterminent la façon dont ton nom apparaît sur les annuaires
62 en ligne et papier et ta fiche apparaitra quand on cherche un de ces noms. Pour plus
63 d'explications sur l'icône suivante
70c65f3a 64 <a href="profile/name_info" class="popup3">{icon name="information" title="Plus d'infos"}</a>.</span><br/>
6e32823c
SJ
65 <div class="small center">Si un de tes noms commence par une particule,
66 coche la case en bout de ligne.</div>
67 </td>
68 </tr>
69 {foreach from=$search_names item=sn key=id}
70 {include file="profile/general.searchname.tpl" i=$id sn=$sn class="names_advanced" style="display: none"}
71 {/foreach}
72 <tr class="names_advanced" id="searchname" style="display: none">
73 <td colspan="2">
74 <div id="sn_add" class="center">
75 <a href="javascript:addSearchName();">
76 {icon name=add title="Ajouter un nom"} Ajouter un nom
77 </a>
78 </div>
79 </td>
80 </tr>
81</table>
753742b9 82
46ae38a9 83<table class="bicol" style="margin-bottom: 1em"
e8439508 84 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
85 <tr>
86 <th colspan="2">
0c6cbd63 87 <div class="flags" style="float: left">
ee12da4e
FB
88 <input type="checkbox" disabled="disabled" checked="checked" />
89 {icon name="flag_green" title="site public"}
0c6cbd63 90 </div>
46ae38a9
FB
91 Informations générales
92 </th>
93 </tr>
94 <tr>
0c6cbd63 95 <td>
b04882ff 96 <span class="titre">Promotion</span>
46ae38a9 97 </td>
0c6cbd63 98 <td>
fb2c09c9
SJ
99 {if !$promo_choice}
100 <span class="nom">{$promo_display}</span>
101 {else}
102 <select name="promo_display">
103 {foreach from=$promo_choice item="promo_to_display"}
104 <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option>
105 {/foreach}
106 </select>
107 {/if}
108 <span class="lien"><a href="profile/orange" {if ($grad_year -3 == $entry_year)} {popup text="pour les oranges"}{/if}>{icon name="page_edit" title="modifier"}</a></span>
46ae38a9
FB
109 </td>
110 </tr>
111 <tr>
bc7f707b
SJ
112 <td>
113 <span class="titre">Date de naissance</span>
114 </td>
7bff4cb0
FB
115 <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td>
116 </tr>
117 <tr>
0c6cbd63 118 <td>
46ae38a9
FB
119 <span class="titre">Nationalité</span>
120 </td>
0c6cbd63 121 <td>
46ae38a9 122 <select name="nationalite">
8450c2aa 123 {select_nat valeur=$nationalite pad=1}
46ae38a9 124 </select>
8450c2aa
SJ
125 <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a>
126 </td>
127 </tr>
128 <tr id="nationalite2" {if !$nationalite2}style="display: none"{/if}>
129 <td></td>
130 <td>
131 <select name="nationalite2">
132 {select_nat valeur=$nationalite2 pad=1}
133 </select>
134 <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a>
135 </td>
136 </tr>
137 <tr id="nationalite3" {if !$nationalite3}style="display: none"{/if}>
138 <td></td>
139 <td>
140 <select name="nationalite3">
141 {select_nat valeur=$nationalite3 pad=1}
142 </select>
143 <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
46ae38a9
FB
144 </td>
145 </tr>
58acfe8b
SJ
146</table>
147
148<table class="bicol" style="margin-bottom: 1em" summary="Profil&nbsp;: Formations">
4887be78 149 <tr>
58acfe8b
SJ
150 <th colspan="2">
151 <div class="flags" style="float: left">
152 <input type="checkbox" disabled="disabled" checked="checked" />
153 {icon name="flag_green" title="site public"}
4887be78 154 </div>
58acfe8b
SJ
155 Formations
156 </th>
043bbacf 157 </tr>
58acfe8b
SJ
158 {foreach from=$edus key=eduid item=edu}
159 {cycle values="impair, pair" assign=class}
2700a4f5 160 {include file="profile/general.edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class}
043bbacf
SJ
161 {/foreach}
162 {if $edus|@count eq 0}
58acfe8b 163 {cycle values="impair, pair" assign=class}
2700a4f5 164 {include file="profile/general.edu.tpl" eduid=0 edu=0 class=$class}
043bbacf 165 {/if}
58acfe8b 166 {cycle values="impair, pair" assign=class}
62dba58e
SJ
167 {assign var=eduaddid value=$edus|@count}
168 <tr id="edu_add" class="edu_{$eduaddid} {$class}">
043bbacf 169 <td colspan="2">
58acfe8b 170 <div class="center" style="clear: both; padding-top: 4px;">
043bbacf
SJ
171 <a href="javascript:addEdu();">
172 {icon name=add title="Ajouter une formation"} Ajouter une formation
4887be78
SJ
173 </a>
174 </div>
46ae38a9
FB
175 </td>
176 </tr>
58acfe8b 177 <tr class="{$class}">
30c895be
SJ
178 <td class="center" colspan="2">
179 <small>Si ta formation ne figure pas dans la liste,
180 <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
181 </td>
182 </tr>
183 </table>
0337d704 184
33ae80b5 185{if !$no_private_key}
46ae38a9 186<table class="bicol" style="margin-bottom: 1em"
e8439508 187 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
188 <tr>
189 <th>
190 Synchronisation avec l'AX
191 </th>
192 </tr>
193 <tr>
0c6cbd63 194 <td class="flags">
ee12da4e
FB
195 <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
196 {icon name="flag_orange" title="transmis à l'AX"}
0c6cbd63
FB
197 <span class="texte">
198 Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
199 </span>
200 </td>
201 </tr>
202 <tr>
46ae38a9
FB
203 <td>
204 <p>
205 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>.
206 </p>
207 <p>
208 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à.
209 </p>
210 <p class="center">
211 <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>
212 </p>
213 </td>
214 </tr>
46ae38a9 215</table>
33ae80b5 216{/if}
76011d98 217
46ae38a9 218<table class="bicol" style="margin-bottom: 1em"
841ff7e7 219 summary="Profil&nbsp;: 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
FB
230 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
231 <div class="titre">Ta photo actuelle</div>
b3bf7395 232 <img src="photo/{$smarty.session.hruid}" 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>
b3bf7395 238 <a href="profile/{$smarty.session.hruid}?modif=new" class="popup2">
46ae38a9
FB
239 Ta fiche avec cette photo
240 </a>
241 </div>
b3bf7395 242 <img src="photo/{$smarty.session.hruid}/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">
252 <a href="photo/change">Éditer ta photo</a>
253 </div>
254 </td>
255 </tr>
256</table>
257
258<table class="bicol" style="margin-bottom: 1em"
841ff7e7 259 summary="Profil&nbsp;: Divers">
46ae38a9
FB
260 <tr>
261 <th colspan="2">
262 Divers
263 </th>
264 </tr>
265 <tr>
bde2be3b
GB
266 <td colspan="2">
267 <span class="titre">Téléphones personnels</span>
46ae38a9 268 </td>
bde2be3b
GB
269 </tr>
270 <tr>
271 <td colspan="2">
272 {foreach from=$tels key=telid item=tel}
273 <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
274 {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
275 </div>
276 {/foreach}
277 {if $tels|@count eq 0}
278 <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
279 {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
280 </div>
281 {/if}
282 <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
283 <a href="javascript:addTel('tels', 'tels');">
d8782f18 284 {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
bde2be3b
GB
285 </a>
286 </div>
46ae38a9
FB
287 </td>
288 </tr>
b715c1e1 289 {if $email_error}
4f06d57b
SJ
290 {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"}
291 {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if}
46ae38a9 292 <tr>
d1a2252a
GB
293 <td colspan="2">
294 <span class="titre">Messageries, networking et sites web</span>
295 </td>
296 </tr>
d1a2252a
GB
297 {foreach from=$networking item=network key=id}
298 {include file="profile/general.networking.tpl" nw=$network i=$id}
299 {/foreach}
92c3f9e5
GB
300 <tr id="networking">
301 <script type="text/javascript">//<![CDATA[
302 var nw_list = new Array();
303 {foreach from=$network_list item=network}
304 nw_list['{$network.name}'] = {$network.type};
305 {/foreach}
306 //]]></script>
307 <td colspan="2">
308 <div id="nw_add" class="center">
309 <a href="javascript:addNetworking();">
310 {icon name=add title="Ajouter une adresse"} Ajouter une adresse
311 </a>
312 </div>
313 </td>
314 </tr>
315<!-- <tr id="networking">
316 <td colspan="2">
317 <div style="float: left; width: 200px;">
318 <span class="titre" style="margin-left:1em;">Type à ajouter</span>
319 </div>
320 <div style="float: left;">
321 <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div>
322 <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()">
323 <span id="nw_add" style="display: none">
324 <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a>
325 </span>
326 </div>
327 </td>
328 </tr>-->
e60e10d7 329 <tr class="pair">
0c6cbd63 330 <td>
46ae38a9 331 <div>
0c6cbd63 332 <span class="flags">
276f1db2
SJ
333 <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
334 {icon name="flag_green" title="site public"}</label>
0c6cbd63 335 </span>&nbsp;
1052148d 336 <span class="titre">Commentaire</span>
46ae38a9
FB
337 </div>
338 <div class="smaller" style="margin-top: 30px">
339 <a href="wiki_help/notitle" class="popup3">
e60e10d7 340 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
46ae38a9 341 </a>
0447150d 342 <div class="center">
46ae38a9
FB
343 <input type="submit" name="preview" value="Aperçu"
344 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
3950bc21 345 </div>
46ae38a9
FB
346 </div>
347 </td>
0c6cbd63 348 <td>
46ae38a9
FB
349 <div id="ft_preview" style="display: none"></div>
350 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
e60e10d7 351 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
46ae38a9
FB
352 </td>
353 </tr>
354</table>
0337d704 355
a7de4ef7 356{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}