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