Merge commit 'origin/master' into fusionax
[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
753742b9
SJ
23{include file="profile/general.name.tpl display_name=$display_name tooltip_name=$tooltip_name prenom=$prenom
24 nom=$nom sort_name=$sort_name yourself=$yourself search_names=$search_names}
25
46ae38a9 26<table class="bicol" style="margin-bottom: 1em"
e8439508 27 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
28 <tr>
29 <th colspan="2">
0c6cbd63 30 <div class="flags" style="float: left">
ee12da4e
FB
31 <input type="checkbox" disabled="disabled" checked="checked" />
32 {icon name="flag_green" title="site public"}
0c6cbd63 33 </div>
46ae38a9
FB
34 Informations générales
35 </th>
36 </tr>
37 <tr>
0c6cbd63 38 <td>
b04882ff 39 <span class="titre">Promotion</span>
46ae38a9 40 </td>
0c6cbd63 41 <td>
fb2c09c9
SJ
42 {if !$promo_choice}
43 <span class="nom">{$promo_display}</span>
44 {else}
45 <select name="promo_display">
46 {foreach from=$promo_choice item="promo_to_display"}
47 <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option>
48 {/foreach}
49 </select>
50 {/if}
51 <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
52 </td>
53 </tr>
54 <tr>
bc7f707b
SJ
55 <td>
56 <span class="titre">Date de naissance</span>
57 </td>
7bff4cb0
FB
58 <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td>
59 </tr>
60 <tr>
0c6cbd63 61 <td>
46ae38a9
FB
62 <span class="titre">Nationalité</span>
63 </td>
0c6cbd63 64 <td>
46ae38a9 65 <select name="nationalite">
8450c2aa 66 {select_nat valeur=$nationalite pad=1}
46ae38a9 67 </select>
8450c2aa
SJ
68 <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a>
69 </td>
70 </tr>
71 <tr id="nationalite2" {if !$nationalite2}style="display: none"{/if}>
72 <td></td>
73 <td>
74 <select name="nationalite2">
75 {select_nat valeur=$nationalite2 pad=1}
76 </select>
77 <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a>
78 </td>
79 </tr>
80 <tr id="nationalite3" {if !$nationalite3}style="display: none"{/if}>
81 <td></td>
82 <td>
83 <select name="nationalite3">
84 {select_nat valeur=$nationalite3 pad=1}
85 </select>
86 <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
46ae38a9
FB
87 </td>
88 </tr>
58acfe8b
SJ
89</table>
90
91<table class="bicol" style="margin-bottom: 1em" summary="Profil&nbsp;: Formations">
4887be78 92 <tr>
58acfe8b
SJ
93 <th colspan="2">
94 <div class="flags" style="float: left">
95 <input type="checkbox" disabled="disabled" checked="checked" />
96 {icon name="flag_green" title="site public"}
4887be78 97 </div>
58acfe8b
SJ
98 Formations
99 </th>
043bbacf 100 </tr>
58acfe8b
SJ
101 {foreach from=$edus key=eduid item=edu}
102 {cycle values="impair, pair" assign=class}
103 {include file="profile/edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class}
043bbacf
SJ
104 {/foreach}
105 {if $edus|@count eq 0}
58acfe8b
SJ
106 {cycle values="impair, pair" assign=class}
107 {include file="profile/edu.tpl" eduid=0 edu=0 class=$class}
043bbacf 108 {/if}
58acfe8b 109 {cycle values="impair, pair" assign=class}
62dba58e
SJ
110 {assign var=eduaddid value=$edus|@count}
111 <tr id="edu_add" class="edu_{$eduaddid} {$class}">
043bbacf 112 <td colspan="2">
58acfe8b 113 <div class="center" style="clear: both; padding-top: 4px;">
043bbacf
SJ
114 <a href="javascript:addEdu();">
115 {icon name=add title="Ajouter une formation"} Ajouter une formation
4887be78
SJ
116 </a>
117 </div>
46ae38a9
FB
118 </td>
119 </tr>
58acfe8b 120 <tr class="{$class}">
30c895be
SJ
121 <td class="center" colspan="2">
122 <small>Si ta formation ne figure pas dans la liste,
123 <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
124 </td>
125 </tr>
126 </table>
0337d704 127
33ae80b5 128{if !$no_private_key}
46ae38a9 129<table class="bicol" style="margin-bottom: 1em"
e8439508 130 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
131 <tr>
132 <th>
133 Synchronisation avec l'AX
134 </th>
135 </tr>
136 <tr>
0c6cbd63 137 <td class="flags">
ee12da4e
FB
138 <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
139 {icon name="flag_orange" title="transmis à l'AX"}
0c6cbd63
FB
140 <span class="texte">
141 Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
142 </span>
143 </td>
144 </tr>
145 <tr>
46ae38a9
FB
146 <td>
147 <p>
148 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>.
149 </p>
150 <p>
151 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à.
152 </p>
153 <p class="center">
154 <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>
155 </p>
156 </td>
157 </tr>
46ae38a9 158</table>
33ae80b5 159{/if}
76011d98 160
46ae38a9 161<table class="bicol" style="margin-bottom: 1em"
841ff7e7 162 summary="Profil&nbsp;: Trombinoscope">
46ae38a9
FB
163 <tr>
164 <th colspan="2">
0c6cbd63 165 <div class="flags" style="float: left">
276f1db2
SJ
166 <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
167 {icon name="flag_green" title="site public"}</label>
0c6cbd63 168 </div>
46ae38a9
FB
169 Trombinoscope
170 </th>
171 </tr>
172 <tr>
46ae38a9
FB
173 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
174 <div class="titre">Ta photo actuelle</div>
b3bf7395 175 <img src="photo/{$smarty.session.hruid}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
46ae38a9
FB
176 </td>
177 {if $nouvellephoto}
178 <td class="center" style="width: 49%">
179 <div class="titre">Photo en attente de validation</div>
180 <div>
b3bf7395 181 <a href="profile/{$smarty.session.hruid}?modif=new" class="popup2">
46ae38a9
FB
182 Ta fiche avec cette photo
183 </a>
184 </div>
b3bf7395 185 <img src="photo/{$smarty.session.hruid}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
46ae38a9
FB
186 </td>
187 {/if}
188 </tr>
189 <tr class="pair">
190 <td colspan="2">
191 Pour profiter de cette fonction intéressante, tu dois disposer
192 quelque part (sur ton ordinateur ou sur Internet) d'une photo
193 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
194 <div class="center">
195 <a href="photo/change">Éditer ta photo</a>
196 </div>
197 </td>
198 </tr>
199</table>
200
201<table class="bicol" style="margin-bottom: 1em"
841ff7e7 202 summary="Profil&nbsp;: Divers">
46ae38a9
FB
203 <tr>
204 <th colspan="2">
205 Divers
206 </th>
207 </tr>
208 <tr>
bde2be3b
GB
209 <td colspan="2">
210 <span class="titre">Téléphones personnels</span>
46ae38a9 211 </td>
bde2be3b
GB
212 </tr>
213 <tr>
214 <td colspan="2">
215 {foreach from=$tels key=telid item=tel}
216 <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
217 {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
218 </div>
219 {/foreach}
220 {if $tels|@count eq 0}
221 <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
222 {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
223 </div>
224 {/if}
225 <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
226 <a href="javascript:addTel('tels', 'tels');">
d8782f18 227 {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
bde2be3b
GB
228 </a>
229 </div>
46ae38a9
FB
230 </td>
231 </tr>
b715c1e1 232 {if $email_error}
4f06d57b
SJ
233 {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"}
234 {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if}
46ae38a9 235 <tr>
d1a2252a
GB
236 <td colspan="2">
237 <span class="titre">Messageries, networking et sites web</span>
238 </td>
239 </tr>
d1a2252a
GB
240 {foreach from=$networking item=network key=id}
241 {include file="profile/general.networking.tpl" nw=$network i=$id}
242 {/foreach}
92c3f9e5
GB
243 <tr id="networking">
244 <script type="text/javascript">//<![CDATA[
245 var nw_list = new Array();
246 {foreach from=$network_list item=network}
247 nw_list['{$network.name}'] = {$network.type};
248 {/foreach}
249 //]]></script>
250 <td colspan="2">
251 <div id="nw_add" class="center">
252 <a href="javascript:addNetworking();">
253 {icon name=add title="Ajouter une adresse"} Ajouter une adresse
254 </a>
255 </div>
256 </td>
257 </tr>
258<!-- <tr id="networking">
259 <td colspan="2">
260 <div style="float: left; width: 200px;">
261 <span class="titre" style="margin-left:1em;">Type à ajouter</span>
262 </div>
263 <div style="float: left;">
264 <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div>
265 <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()">
266 <span id="nw_add" style="display: none">
267 <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a>
268 </span>
269 </div>
270 </td>
271 </tr>-->
e60e10d7 272 <tr class="pair">
0c6cbd63 273 <td>
46ae38a9 274 <div>
0c6cbd63 275 <span class="flags">
276f1db2
SJ
276 <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
277 {icon name="flag_green" title="site public"}</label>
0c6cbd63 278 </span>&nbsp;
1052148d 279 <span class="titre">Commentaire</span>
46ae38a9
FB
280 </div>
281 <div class="smaller" style="margin-top: 30px">
282 <a href="wiki_help/notitle" class="popup3">
e60e10d7 283 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
46ae38a9 284 </a>
0447150d 285 <div class="center">
46ae38a9
FB
286 <input type="submit" name="preview" value="Aperçu"
287 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
3950bc21 288 </div>
46ae38a9
FB
289 </div>
290 </td>
0c6cbd63 291 <td>
46ae38a9
FB
292 <div id="ft_preview" style="display: none"></div>
293 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
e60e10d7 294 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
46ae38a9
FB
295 </td>
296 </tr>
297</table>
0337d704 298
a7de4ef7 299{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}