Merge branch 'profile_edit'
[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
23
fd38b30e 24{include file="profile/applis.js.tpl"}
0337d704 25<div class="blocunite_tab">
26 <table class="bicol" cellspacing="0" cellpadding="0"
a7de4ef7 27 summary="Profil : Informations générales">
0337d704 28 <tr>
29 <th colspan="2">
a7de4ef7 30 Informations générales
0337d704 31 </th>
32 </tr>
33 <tr>
34 <td colspan="2" class="pflags">
35 <table class="flags" cellspacing="0" summary="Flags">
36 <tr>
37 <td class="vert">
38 <input type="checkbox" disabled="disabled" checked="checked" />
39 </td>
40 <td class="texte">
41 site public
42 </td>
43 </tr>
44 </table>
45 </td>
46 </tr>
47 <tr>
48 <td class="colg">
49 <span class="titre">Nom</span>
50 <span class="comm"></span>
51 </td>
52 <td class="cold">
93553cea 53 <input type='text' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
0337d704 54 </td>
55 </tr>
56 <tr>
57 <td class="colg">
a7de4ef7 58 <span class="titre">Prénom</span>
0337d704 59 <span class="comm"></span>
60 </td>
61 <td class="cold">
93553cea 62 <input type='text' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
0337d704 63 </td>
64 </tr>
65 <tr>
66 <td class="colg">
67 <span class="titre">Promotion</span>
68 </td>
69 <td class="cold">
70 <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span>
7b2413f6 71 <span class="lien"><a href="profile/orange">modifier</a>{if ($promo_sortie -3 == $promo)} pour les oranges{/if}</span>
0337d704 72 </td>
73 </tr>
74 <tr>
75 <td class="colg">
76 <span class="titre">Nom d'usage</span><br />
77 {if $smarty.session.sexe}
a7de4ef7 78 <span class="comm">(Notamment nom d'épouse)</span>
0337d704 79 {else}
a7de4ef7 80 <span class="comm">(si différent de {$nom} seulement)</span>
0337d704 81 {/if}
82 </td>
83 <td class="cold">
84 <span class="nom">{$nom_usage|default:"Aucun"}</span>
7b2413f6 85 <span class="lien"><a href="profile/usage">modifier</a></span>
0337d704 86 </td>
87 </tr>
88 <tr>
89 <td class="colg">
a7de4ef7 90 <span class="titre">Nationalité</span>
0337d704 91 </td>
92 <td class="cold">
93 <select name="nationalite">
94 {select_nat valeur=$nationalite}
95 </select>
96 </td>
97 </tr>
98 <tr>
99 <td class="colg">
100 <span class="titre">Application</span><br />
a7de4ef7 101 <span class="comm">(4ème année de l'X)</span>
0337d704 102 </td>
103 <td class="cold">
576777d7
FB
104 <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">
105 {applis_options selected=$appli1.id}
0337d704 106 </select>
107 <br />
576777d7 108 <select name="appli1[type]">
0337d704 109 <option value=""></option>
110 </select>
111 <script type="text/javascript">
112 <!--
576777d7
FB
113 fillType(document.forms.prof_annu['appli1[type]'], document.forms.prof_annu['appli1[id]'].selectedIndex-1);
114 selectType(document.forms.prof_annu['appli1[type]'], '{$appli1.type}');
0337d704 115 //-->
116 </script>
117 </td>
118 </tr>
119 <tr>
120 <td class="dcolg">
121 <span class="titre">Post-application</span>
122 </td>
123 <td class="dcold">
576777d7
FB
124 <select name="appli2[id]" onchange="fillType(this.form['appli[type]'], this.selectedIndex-1);">
125 {applis_options selected=$appli2.id}
0337d704 126 </select>
127 <br />
576777d7 128 <select name="appli2[type]">
0337d704 129 <option value=""></option>
130 </select>
131 <script type="text/javascript">
132 <!--
576777d7
FB
133 fillType(document.forms.prof_annu['appli2[type]'], document.forms.prof_annu['appli2[id]'].selectedIndex-1);
134 selectType(document.forms.prof_annu['appli2[type]'], '{$appli2.type}');
0337d704 135 //-->
136 </script>
137 </td>
138 </tr>
139 </table>
140</div>
141
33ae80b5 142{if !$no_private_key}
0337d704 143<div class="blocunite">
3b3e9d15 144 <table class="bicol" cellspacing="0" cellpadding="0"
a7de4ef7 145 summary="Profil : Informations générales">
3b3e9d15 146 <tr>
147 <th>
148 Synchronisation avec l'AX
149 </th>
150 </tr>
151 <tr>
dd502514 152 <td>
153 <p>
76011d98 154 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>.
dd502514 155 </p>
156 <p>
76011d98 157 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à.
dd502514 158 </p>
159 <p class="center">
a7de4ef7 160 <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>
dd502514 161 </p>
3b3e9d15 162 </td>
163 </tr>
164 <tr>
165 <td class="col">
166 <table class="flags" cellspacing="0" summary="Flags">
167 <tr>
168 <td class="orange">
169 <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
170 </td>
171 <td class="texte">
76011d98 172 Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
3b3e9d15 173 </td>
174 </tr>
175 </table>
176 </td>
177 </tr>
178 </table>
179</div>
33ae80b5 180{/if}
76011d98 181
3b3e9d15 182<div class="blocunite">
0337d704 183 <table class="bicol" cellspacing="0" cellpadding="0"
184 summary="Profil: Trombinoscope">
185 <tr>
186 <th colspan="3">
187 Trombinoscope
188 </th>
189 </tr>
190 <tr>
191 <td class="col" colspan="3">
a7de4ef7 192 Pour profiter de cette fonction intéressante, tu dois disposer
0337d704 193 quelque part (sur ton ordinateur ou sur Internet) d'une photo
a7de4ef7 194 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
0337d704 195 <div class="center">
196 <span class="lien">
a7de4ef7 197 <a href="photo/change">Éditer ta photo</a>
0337d704 198 </span>
199 </div>
200 </td>
201 </tr>
202 <tr>
203 <td class="col" colspan="3">
204 <table class="flags" cellspacing="0" summary="Flags">
205 <tr>
206 <td class="vert">
207 <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
208 </td>
209 <td class="texte">
210 site public
211 </td>
212 </tr>
213 </table>
214 <table cellspacing="0" cellpadding="0" summary="Trombinoscope">
215 <tr>
216 <td class="dcold">
a7de4ef7 217 Voilà la photo qui apparaîtra sur la fiche de ton profil{if $nouvellephoto} (tu viens
218 de changer ta photo, celle-ci correspond à ton ancien
219 profil car la nouvelle n'a pas encore été validée par un administrateur du site !
7b2413f6 220 <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
3950bc21 221 {/if} :
0337d704 222 </td>
223 <td class="dcolg">
7b2413f6 224 <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " />
0337d704 225 </td>
226 </tr>
227 </table>
228 </td>
229 </tr>
230 </table>
231</div>
232<div class="blocunite">
233 <table class="bicol" cellspacing="0" cellpadding="0"
234 summary="Profil: Divers">
235 <tr>
236 <th colspan="2">
237 Divers
238 </th>
239 </tr>
240 <tr>
241 <td colspan="2" class="pflags">
242 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
243 <tr>
244 <td class="rouge">
245 <input type="checkbox" disabled="disabled" checked="checked" />
246 </td>
247 <td class="texte">
a7de4ef7 248 privé
0337d704 249 </td>
250 </tr>
251 </table>
252 </td>
253 </tr>
254 <tr>
255 <td class="colg">
256 <span class="titre">Surnom</span>
257 </td>
258 <td class="cold">
93553cea
FB
259 <input type="text" size="35" maxlength="64"
260 {if $errors.nick}class="error"{/if} name="nick" value="{$nick}" />
0337d704 261 </td>
262 </tr>
263 <tr>
264 <td colspan="2" class="pflags">
265 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
266 <tr>
267 <td class="vert">
268 <input type="radio" name="mobile_pub" {if $mobile_pub eq 'public'}checked="checked"{/if} value='public' />
269 </td>
270 <td class="texte">
271 site public
272 </td>
273 <td class="orange">
274 <input type="radio" name="mobile_pub" {if $mobile_pub eq 'ax'}checked="checked"{/if} value='ax' />
275 </td>
276 <td class="texte">
a7de4ef7 277 transmis à l'AX
0337d704 278 </td>
279 <td class="rouge">
280 <input type="radio" name="mobile_pub" {if $mobile_pub eq 'private'}checked="checked"{/if} value='private' />
281 </td>
282 <td class="texte">
a7de4ef7 283 privé
0337d704 284 </td>
285 <td class="texte">
db9c3838 286 <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
0337d704 287 </td>
288 </tr>
289 </table>
290 </td>
291 </tr>
292 <tr>
293 <td class="colg">
a7de4ef7 294 <span class="titre">Téléphone mobile</span>
0337d704 295 </td>
296 <td class="cold">
297 <input type="text" size="18" maxlength="18" name="mobile"
93553cea 298 {if $errors.mobile}class="error"{/if} value="{$mobile}" />
0337d704 299 </td>
300 </tr>
301 <tr>
302 <td colspan="2" class="flags">
303 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
304 <tr>
305 <td class="vert">
306 <input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
307 </td>
308 <td class="texte">
309 site public
310 </td>
311 <td class="texte">
db9c3838 312 <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
0337d704 313 </td>
314 </tr>
315 </table>
316 </td>
317 </tr>
318 <tr>
319 <td class="dcolg">
320 <span class="titre">Page web Perso</span>
321 </td>
322 <td class="dcold">
323 <input type="text" size="35" maxlength="95" name="web"
93553cea 324 {if $errors.web}class="error"{/if} value="{$web}" />
0337d704 325 </td>
326 </tr>
327 <tr>
328 <td colspan="2" class="pflags">
329 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
330 <tr>
331 <td class="vert">
332 <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
333 </td>
334 <td class="texte">
335 site public
336 </td>
337 <td class="texte">
db9c3838 338 <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
0337d704 339 </td>
340 </tr>
341 </table>
342 </td>
343 </tr>
344 <tr>
345 <td class="dcolg">
3950bc21
FB
346 <div>
347 <span class="titre">Complément libre</span>
348 <span class="comm">Commentaire ? ICQ ? etc...</span>
349 </div>
350 <div class="smaller" style="margin-top: 30px">
3c85da85 351 <a href="wiki_help/notitle" class="popup3">
352 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour le commentaire
353 </a>
3950bc21
FB
354 <div class="center">
355 <input type="submit" name="preview" value="Aperçu"
356 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
357 </div>
358 </div>
359 </td>
360 <td class="dcold">
361 <div id="ft_preview" style="display: none"></div>
362 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
363 id="freetext" rows="8" cols="35" >{$freetext}</textarea>
0337d704 364 </td>
365 </tr>
366 </table>
367</div>
368
a7de4ef7 369{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}