Adds a common template to add phone numbers in the different pages of the profile
[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
46ae38a9 23<table class="bicol" style="margin-bottom: 1em"
e8439508 24 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
25 <tr>
26 <th colspan="2">
0c6cbd63 27 <div class="flags" style="float: left">
ee12da4e
FB
28 <input type="checkbox" disabled="disabled" checked="checked" />
29 {icon name="flag_green" title="site public"}
0c6cbd63 30 </div>
46ae38a9
FB
31 Informations générales
32 </th>
33 </tr>
34 <tr>
0c6cbd63 35 <td>
b04882ff 36 <span class="titre">Nom</span><br/>
46ae38a9 37 </td>
0c6cbd63 38 <td>
b04882ff
PC
39 {$nom}
40 <input type='hidden' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
46ae38a9
FB
41 </td>
42 </tr>
43 <tr>
0c6cbd63 44 <td>
b04882ff 45 <span class="titre">Prénom</span><br/>
46ae38a9 46 </td>
0c6cbd63 47 <td>
b04882ff
PC
48 {$prenom}
49 <input type='hidden' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
46ae38a9
FB
50 </td>
51 </tr>
52 <tr>
0c6cbd63 53 <td>
b04882ff 54 <span class="titre">Affichage de ton nom</span>
46ae38a9 55 </td>
0c6cbd63 56 <td>
b04882ff 57 {if $tooltip_name}<span title="{$tooltip_name}" style="border-bottom: 1px dashed black;">{$display_name}</span>{else}{$display_name}{/if}
ccd6c98b 58 <a href="profile/edit#names_advanced" onclick="$('#names_advanced').show();$(this).hide();document.location = document.location + '#names_advanced';return false">
b04882ff
PC
59 {icon name="page_edit" title="Plus de détail"}
60 </a>
46ae38a9
FB
61 </td>
62 </tr>
63 <tr>
0c6cbd63 64 <td>
b04882ff 65 <span class="titre">Promotion</span>
46ae38a9 66 </td>
0c6cbd63 67 <td>
b04882ff
PC
68 <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span>
69 <span class="lien"><a href="profile/orange" {if ($promo_sortie -3 == $promo)} {popup text="pour les oranges"}{/if}>{icon name="page_edit" title="modifier"}</a></span>
46ae38a9
FB
70 </td>
71 </tr>
72 <tr>
7bff4cb0
FB
73 <td class="titre">Date de naissance</td>
74 <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td>
75 </tr>
76 <tr>
0c6cbd63 77 <td>
46ae38a9
FB
78 <span class="titre">Nationalité</span>
79 </td>
0c6cbd63 80 <td>
46ae38a9
FB
81 <select name="nationalite">
82 {select_nat valeur=$nationalite}
83 </select>
84 </td>
85 </tr>
86 <tr class="pair">
0c6cbd63 87 <td>
46ae38a9 88 <span class="titre">Application</span><br />
661e78f7 89 <span class="comm">(4e année de l'X)</span>
46ae38a9 90 </td>
0c6cbd63 91 <td>
46ae38a9
FB
92 <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">
93 {applis_options selected=$appli1.id}
94 </select>
95 <br />
96 <input type="hidden" name="appli1_tmp" value="{$appli1.type}" />
97 <select name="appli1[type]">
98 <option value=""></option>
99 </select>
100 </td>
101 </tr>
102 <tr class="pair">
0c6cbd63 103 <td>
46ae38a9
FB
104 <span class="titre">Post-application</span>
105 </td>
0c6cbd63 106 <td>
46ae38a9
FB
107 <select name="appli2[id]" onchange="fillType(this.form['appli2[type]'], this.selectedIndex-1);">
108 {applis_options selected=$appli2.id}
109 </select>
110 <br />
111 <input type="hidden" name="appli2_tmp" value="{$appli2.type}" />
112 <select name="appli2[type]">
113 <option value=""></option>
114 </select>
115 </td>
116 </tr>
30c895be
SJ
117 <tr class="pair">
118 <td class="center" colspan="2">
119 <small>Si ta formation ne figure pas dans la liste,
120 <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
121 </td>
122 </tr>
123 </table>
0337d704 124
b04882ff
PC
125<table class="bicol" style="margin-bottom: 1em;display:none"
126 summary="Profil : Noms" id="names_advanced">
127 <tr>
128 <th colspan="2">
129 Noms
130 </th>
131 </tr>
ccd6c98b 132 <tr class="impair">
b04882ff
PC
133 <td>
134 <span class="flags">
135 <input type="checkbox" checked="checked" disabled="disabled" />
136 {icon name="flag_green" title="site public"}
137 </span>&nbsp;
138 <span class="titre">Affichage courant de ton nom</span>
ccd6c98b 139 <a class="popup3" href="Xorg/Profil#name_displayed">{icon name="information" title="aide"}</a>
b04882ff
PC
140 </td>
141 <td>
142 <input type="text" name="display_name" value="{$display_name}" size="40"/>
143 </td>
144 </tr>
ccd6c98b 145 <tr class="impair">
b04882ff
PC
146 <td>
147 <span class="titre">explication</span>
ccd6c98b 148 <a class="popup3" href="Xorg/Profil#name_tooltip">{icon name="information" title="aide"}</a>
b04882ff
PC
149 </td>
150 <td>
151 <input type="text" name="tooltip_name" value="{$tooltip_name}" size="40"/>
152 </td>
153 </tr>
ccd6c98b 154 <tr class="impair">
b04882ff
PC
155 <td>
156 <span class="titre">ranger ce nom à</span>
ccd6c98b 157 <a class="popup3" href="Xorg/Profil#name_order">{icon name="information" title="aide"}</a>
b04882ff
PC
158 </td>
159 <td>
160 <input type="text" name="sort_name" value="{$sort_name}" size="40"/>
161 </td>
162 </tr>
ccd6c98b 163 <tr class="impair">
b04882ff
PC
164 <td>
165 <span class="flags">
166 <input type="checkbox" checked="checked" disabled="disabled" />
167 {icon name="flag_red" title="privé"}
168 </span>&nbsp;
169 <span class="titre">Comment on doit t'appeller</span>
ccd6c98b 170 <a class="popup3" href="Xorg/Profil#name_yourself">{icon name="information" title="aide"}</a>
b04882ff
PC
171 </td>
172 <td>
173 <input type="text" name="yourself" value="{$yourself}" size="40"/>
174 </td>
175 </tr>
ccd6c98b 176 <tr class="impair">
b04882ff 177 <td colspan="2">
ccd6c98b
PC
178 <span class="titre">Recherche</span><span class="smaller">, ta fiche apparaît quand on cherche un de ces noms</span>
179 <a class="popup3" href="Xorg/Profil#name_search">{icon name="information" title="aide"}</a>
b04882ff
PC
180 {iterate from=$search_names item="sn"}
181 <div id="search_name_{$sn.sn_id}" style="padding:2px" class="center">
182 {include file="profile/general.searchname.tpl" i=$sn.sn_id sn=$sn}
183 </div>
184 {/iterate}
185 <div id="add_search_name" class="center" style="clear: both">
186 <a href="javascript:addSearchName()">
187 {icon name=add title="Ajouter un nom de recherche"} Ajouter un nom
188 </a>
189 </div>
190 </td>
191</table>
192
33ae80b5 193{if !$no_private_key}
46ae38a9 194<table class="bicol" style="margin-bottom: 1em"
e8439508 195 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
196 <tr>
197 <th>
198 Synchronisation avec l'AX
199 </th>
200 </tr>
201 <tr>
0c6cbd63 202 <td class="flags">
ee12da4e
FB
203 <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
204 {icon name="flag_orange" title="transmis à l'AX"}
0c6cbd63
FB
205 <span class="texte">
206 Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
207 </span>
208 </td>
209 </tr>
210 <tr>
46ae38a9
FB
211 <td>
212 <p>
213 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>.
214 </p>
215 <p>
216 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à.
217 </p>
218 <p class="center">
219 <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>
220 </p>
221 </td>
222 </tr>
46ae38a9 223</table>
33ae80b5 224{/if}
76011d98 225
46ae38a9
FB
226<table class="bicol" style="margin-bottom: 1em"
227 summary="Profil: Trombinoscope">
228 <tr>
229 <th colspan="2">
0c6cbd63 230 <div class="flags" style="float: left">
ee12da4e
FB
231 <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
232 {icon name="flag_green" title="site public"}
0c6cbd63 233 </div>
46ae38a9
FB
234 Trombinoscope
235 </th>
236 </tr>
237 <tr>
46ae38a9
FB
238 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
239 <div class="titre">Ta photo actuelle</div>
240 <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
241 </td>
242 {if $nouvellephoto}
243 <td class="center" style="width: 49%">
244 <div class="titre">Photo en attente de validation</div>
245 <div>
246 <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">
247 Ta fiche avec cette photo
248 </a>
249 </div>
250 <img src="photo/{$smarty.session.forlife}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
251 </td>
252 {/if}
253 </tr>
254 <tr class="pair">
255 <td colspan="2">
256 Pour profiter de cette fonction intéressante, tu dois disposer
257 quelque part (sur ton ordinateur ou sur Internet) d'une photo
258 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
259 <div class="center">
260 <a href="photo/change">Éditer ta photo</a>
261 </div>
262 </td>
263 </tr>
264</table>
265
266<table class="bicol" style="margin-bottom: 1em"
267 summary="Profil: Divers">
268 <tr>
269 <th colspan="2">
270 Divers
271 </th>
272 </tr>
273 <tr>
bde2be3b
GB
274 <td colspan="2">
275 <span class="titre">Téléphones personnels</span>
46ae38a9 276 </td>
bde2be3b
GB
277 </tr>
278 <tr>
279 <td colspan="2">
280 {foreach from=$tels key=telid item=tel}
281 <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
282 {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
283 </div>
284 {/foreach}
285 {if $tels|@count eq 0}
286 <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
287 {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
288 </div>
289 {/if}
290 <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
291 <a href="javascript:addTel('tels', 'tels');">
292 {icon name=add title="Ajouter un téléphone"}Ajouter un téléphone
293 </a>
294 </div>
46ae38a9
FB
295 </td>
296 </tr>
b715c1e1
SJ
297 {if $email_error}
298 {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error}
299 {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error}{/if}
46ae38a9 300 <tr>
d1a2252a
GB
301 <td colspan="2">
302 <span class="titre">Messageries, networking et sites web</span>
303 </td>
304 </tr>
d1a2252a
GB
305 {foreach from=$networking item=network key=id}
306 {include file="profile/general.networking.tpl" nw=$network i=$id}
307 {/foreach}
92c3f9e5
GB
308 <tr id="networking">
309 <script type="text/javascript">//<![CDATA[
310 var nw_list = new Array();
311 {foreach from=$network_list item=network}
312 nw_list['{$network.name}'] = {$network.type};
313 {/foreach}
314 //]]></script>
315 <td colspan="2">
316 <div id="nw_add" class="center">
317 <a href="javascript:addNetworking();">
318 {icon name=add title="Ajouter une adresse"} Ajouter une adresse
319 </a>
320 </div>
321 </td>
322 </tr>
323<!-- <tr id="networking">
324 <td colspan="2">
325 <div style="float: left; width: 200px;">
326 <span class="titre" style="margin-left:1em;">Type à ajouter</span>
327 </div>
328 <div style="float: left;">
329 <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div>
330 <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()">
331 <span id="nw_add" style="display: none">
332 <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a>
333 </span>
334 </div>
335 </td>
336 </tr>-->
e60e10d7 337 <tr class="pair">
0c6cbd63 338 <td>
46ae38a9 339 <div>
0c6cbd63 340 <span class="flags">
0c6cbd63 341 <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
ee12da4e 342 {icon name="flag_green" title="site public"}
0c6cbd63 343 </span>&nbsp;
1052148d 344 <span class="titre">Commentaire</span>
46ae38a9
FB
345 </div>
346 <div class="smaller" style="margin-top: 30px">
347 <a href="wiki_help/notitle" class="popup3">
e60e10d7 348 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
46ae38a9 349 </a>
0447150d 350 <div class="center">
46ae38a9
FB
351 <input type="submit" name="preview" value="Aperçu"
352 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
3950bc21 353 </div>
46ae38a9
FB
354 </div>
355 </td>
0c6cbd63 356 <td>
46ae38a9
FB
357 <div id="ft_preview" style="display: none"></div>
358 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
e60e10d7 359 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
46ae38a9
FB
360 </td>
361 </tr>
362</table>
0337d704 363
a7de4ef7 364{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}