Fixes deletion of new added searchnames.
[platal.git] / templates / profile / general.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
9f5bd98e 3{* Copyright (C) 2003-2010 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">
e1082e20 35 <a href="javascript:toggleNamesAdvanced();">
6e32823c
SJ
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>
c4b45374 58 <tr class="names_advanced" {if !$errors.search_names}style="display: none"{/if}>
6e32823c
SJ
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}
c4b45374
SJ
70 {include file="profile/general.searchname.tpl" i=$id sn=$sn
71 class="names_advanced" style="display: none" error_name=$errors.search_names}
6e32823c 72 {/foreach}
c4b45374 73 <tr class="names_advanced" id="searchname" {if !$errors.search_names}style="display: none"{/if}>
6e32823c
SJ
74 <td colspan="2">
75 <div id="sn_add" class="center">
04e200e0 76 <a href="javascript:addSearchName({$isFemale});">
6e32823c
SJ
77 {icon name=add title="Ajouter un nom"} Ajouter un nom
78 </a>
79 </div>
80 </td>
81 </tr>
82</table>
753742b9 83
46ae38a9 84<table class="bicol" style="margin-bottom: 1em"
e8439508 85 summary="Profil&nbsp;: Informations générales">
46ae38a9
FB
86 <tr>
87 <th colspan="2">
0c6cbd63 88 <div class="flags" style="float: left">
ee12da4e
FB
89 <input type="checkbox" disabled="disabled" checked="checked" />
90 {icon name="flag_green" title="site public"}
0c6cbd63 91 </div>
46ae38a9
FB
92 Informations générales
93 </th>
94 </tr>
95 <tr>
0c6cbd63 96 <td>
b04882ff 97 <span class="titre">Promotion</span>
46ae38a9 98 </td>
0c6cbd63 99 <td>
fb2c09c9 100 {if !$promo_choice}
7e233317
SJ
101 <span class="nom">{$profile->promo()}</span>
102 <input type="hidden" name="promo_display" value="{$profile->promo()}"/>
fb2c09c9 103 {else}
7e233317 104 <select name="promo_display">
fb2c09c9 105 {foreach from=$promo_choice item="promo_to_display"}
7e233317 106 <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option>
fb2c09c9
SJ
107 {/foreach}
108 </select>
109 {/if}
7e233317
SJ
110 <span class="lien"><a href="javascript:togglePromotionEdition();" {popup text="pour les oranges"}>{icon name="page_edit" title="modifier"}</a></span>
111 </td>
112 </tr>
113 <tr class="promotion_edition" style="display: none">
114 <td colspan="2">
115 Afin de pouvoir être considéré{if $profile->isFemale()}e{/if} à la fois dans ta promotion d'origine et ta
116 ou tes promotions d'adoption tu peux entrer ici ta promotion d'adoption.
117 <br /><span class="smaller"><span class="titre">Attention&nbsp;:</span>
118 cette modification ne sera prise en compte qu'après validation par les administrateurs du site.</span>
119 </td>
120 </tr>
121 <tr class="promotion_edition" style="display: none">
122 <td class="titre">Promotion d'adoption</td>
123 <td>
124 {$profile->mainEducation()}<input type="text" name="promo" size="4" maxlength="4" value="{$promo}" />
125 <span class="smaller"> (que les chiffres)</span>
46ae38a9
FB
126 </td>
127 </tr>
128 <tr>
bc7f707b
SJ
129 <td>
130 <span class="titre">Date de naissance</span>
131 </td>
455ea0c9 132 <td><input type="text" {if $errors.birthdate}class="error"{/if} name="birthdate" value="{$birthdate}" /></td>
7bff4cb0
FB
133 </tr>
134 <tr>
0c6cbd63 135 <td>
46ae38a9
FB
136 <span class="titre">Nationalité</span>
137 </td>
0c6cbd63 138 <td>
e5bcd851
FB
139 <select name="nationality1">
140 {select_nat valeur=$nationality1 pad=1}
46ae38a9 141 </select>
8450c2aa
SJ
142 <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a>
143 </td>
144 </tr>
e5bcd851 145 <tr id="nationality2" {if !$nationality2}style="display: none"{/if}>
8450c2aa
SJ
146 <td></td>
147 <td>
e5bcd851
FB
148 <select name="nationality2">
149 {select_nat valeur=$nationality2 pad=1}
8450c2aa
SJ
150 </select>
151 <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a>
152 </td>
153 </tr>
e5bcd851 154 <tr id="nationality3" {if !$nationality3}style="display: none"{/if}>
8450c2aa
SJ
155 <td></td>
156 <td>
e5bcd851
FB
157 <select name="nationality3">
158 {select_nat valeur=$nationality3 pad=1}
8450c2aa
SJ
159 </select>
160 <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
46ae38a9
FB
161 </td>
162 </tr>
58acfe8b
SJ
163</table>
164
165<table class="bicol" style="margin-bottom: 1em" summary="Profil&nbsp;: Formations">
4887be78 166 <tr>
58acfe8b
SJ
167 <th colspan="2">
168 <div class="flags" style="float: left">
169 <input type="checkbox" disabled="disabled" checked="checked" />
170 {icon name="flag_green" title="site public"}
4887be78 171 </div>
58acfe8b
SJ
172 Formations
173 </th>
043bbacf 174 </tr>
58acfe8b
SJ
175 {foreach from=$edus key=eduid item=edu}
176 {cycle values="impair, pair" assign=class}
2700a4f5 177 {include file="profile/general.edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class}
043bbacf
SJ
178 {/foreach}
179 {if $edus|@count eq 0}
58acfe8b 180 {cycle values="impair, pair" assign=class}
2700a4f5 181 {include file="profile/general.edu.tpl" eduid=0 edu=0 class=$class}
043bbacf 182 {/if}
58acfe8b 183 {cycle values="impair, pair" assign=class}
62dba58e
SJ
184 {assign var=eduaddid value=$edus|@count}
185 <tr id="edu_add" class="edu_{$eduaddid} {$class}">
043bbacf 186 <td colspan="2">
58acfe8b 187 <div class="center" style="clear: both; padding-top: 4px;">
043bbacf
SJ
188 <a href="javascript:addEdu();">
189 {icon name=add title="Ajouter une formation"} Ajouter une formation
4887be78
SJ
190 </a>
191 </div>
46ae38a9
FB
192 </td>
193 </tr>
58acfe8b 194 <tr class="{$class}">
30c895be
SJ
195 <td class="center" colspan="2">
196 <small>Si ta formation ne figure pas dans la liste,
197 <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
198 </td>
199 </tr>
200 </table>
0337d704 201
46ae38a9 202<table class="bicol" style="margin-bottom: 1em"
841ff7e7 203 summary="Profil&nbsp;: Trombinoscope">
46ae38a9
FB
204 <tr>
205 <th colspan="2">
0c6cbd63 206 <div class="flags" style="float: left">
276f1db2
SJ
207 <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
208 {icon name="flag_green" title="site public"}</label>
0c6cbd63 209 </div>
46ae38a9
FB
210 Trombinoscope
211 </th>
212 </tr>
213 <tr>
46ae38a9
FB
214 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
215 <div class="titre">Ta photo actuelle</div>
e5bcd851 216 <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
46ae38a9
FB
217 </td>
218 {if $nouvellephoto}
219 <td class="center" style="width: 49%">
220 <div class="titre">Photo en attente de validation</div>
221 <div>
e5bcd851 222 <a href="profile/{$profile->hrid()}?modif=new" class="popup2">
46ae38a9
FB
223 Ta fiche avec cette photo
224 </a>
225 </div>
e5bcd851 226 <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
46ae38a9
FB
227 </td>
228 {/if}
229 </tr>
230 <tr class="pair">
231 <td colspan="2">
232 Pour profiter de cette fonction intéressante, tu dois disposer
233 quelque part (sur ton ordinateur ou sur Internet) d'une photo
234 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
235 <div class="center">
236 <a href="photo/change">Éditer ta photo</a>
237 </div>
238 </td>
239 </tr>
240</table>
241
242<table class="bicol" style="margin-bottom: 1em"
841ff7e7 243 summary="Profil&nbsp;: Divers">
46ae38a9
FB
244 <tr>
245 <th colspan="2">
246 Divers
247 </th>
248 </tr>
249 <tr>
bde2be3b
GB
250 <td colspan="2">
251 <span class="titre">Téléphones personnels</span>
46ae38a9 252 </td>
bde2be3b
GB
253 </tr>
254 <tr>
255 <td colspan="2">
256 {foreach from=$tels key=telid item=tel}
257 <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
258 {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
259 </div>
260 {/foreach}
261 {if $tels|@count eq 0}
262 <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
263 {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
264 </div>
265 {/if}
266 <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
9fce7016 267 <a href="javascript:addTel('tels','tels');">
d8782f18 268 {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
bde2be3b
GB
269 </a>
270 </div>
46ae38a9
FB
271 </td>
272 </tr>
b715c1e1 273 {if $email_error}
4f06d57b
SJ
274 {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"}
275 {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if}
46ae38a9 276 <tr>
d1a2252a
GB
277 <td colspan="2">
278 <span class="titre">Messageries, networking et sites web</span>
279 </td>
280 </tr>
d1a2252a
GB
281 {foreach from=$networking item=network key=id}
282 {include file="profile/general.networking.tpl" nw=$network i=$id}
283 {/foreach}
92c3f9e5 284 <tr id="networking">
92c3f9e5 285 <td colspan="2">
9fce7016
PC
286 <script type="text/javascript">//<![CDATA[
287 var nw_list = new Array();
288 {foreach from=$network_list item=network}
289 nw_list['{$network.name}'] = {$network.type};
290 {/foreach}
291 //]]></script>
92c3f9e5
GB
292 <div id="nw_add" class="center">
293 <a href="javascript:addNetworking();">
294 {icon name=add title="Ajouter une adresse"} Ajouter une adresse
295 </a>
296 </div>
297 </td>
298 </tr>
e60e10d7 299 <tr class="pair">
0c6cbd63 300 <td>
46ae38a9 301 <div>
0c6cbd63 302 <span class="flags">
276f1db2
SJ
303 <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
304 {icon name="flag_green" title="site public"}</label>
0c6cbd63 305 </span>&nbsp;
1052148d 306 <span class="titre">Commentaire</span>
46ae38a9
FB
307 </div>
308 <div class="smaller" style="margin-top: 30px">
309 <a href="wiki_help/notitle" class="popup3">
e60e10d7 310 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
46ae38a9 311 </a>
0447150d 312 <div class="center">
46ae38a9
FB
313 <input type="submit" name="preview" value="Aperçu"
314 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
3950bc21 315 </div>
46ae38a9
FB
316 </div>
317 </td>
0c6cbd63 318 <td>
46ae38a9
FB
319 <div id="ft_preview" style="display: none"></div>
320 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
e60e10d7 321 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
46ae38a9
FB
322 </td>
323 </tr>
324</table>
0337d704 325
a7de4ef7 326{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}