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