1b16f1f87d0c733982b792bbeb4f8e70dbb3ecb1
[platal.git] / templates / profile / general.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 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 {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
26 <table class="bicol" style="margin-bottom: 1em"
27   summary="Profil&nbsp;: Informations générales">
28   <tr>
29     <th colspan="2">
30       <div class="flags" style="float: left">
31         <input type="checkbox" disabled="disabled" checked="checked" />
32         {icon name="flag_green" title="site public"}
33       </div>
34       Informations générales
35     </th>
36   </tr>
37   <tr>
38     <td>
39       <span class="titre">Promotion</span>
40     </td>
41     <td>
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>
52     </td>
53   </tr>
54   <tr>
55     <td>
56       <span class="titre">Date de naissance</span>
57     </td>
58     <td><input type="text" {if $errors.birthdate}class="error"{/if} name="naissance" value="{$birthdate}" /></td>
59   </tr>
60   <tr>
61     <td>
62       <span class="titre">Nationalité</span>
63     </td>
64     <td>
65       <select name="nationality1">
66         {select_nat valeur=$nationality1 pad=1}
67       </select>
68       <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a>
69     </td>
70   </tr>
71   <tr id="nationality2" {if !$nationality2}style="display: none"{/if}>
72     <td></td>
73     <td>
74       <select name="nationality2">
75         {select_nat valeur=$nationality2 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="nationality3" {if !$nationality3}style="display: none"{/if}>
81     <td></td>
82     <td>
83       <select name="nationality3">
84         {select_nat valeur=$nationality3 pad=1}
85       </select>
86       <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
87     </td>
88   </tr>
89 </table>
90
91 <table class="bicol" style="margin-bottom: 1em" summary="Profil&nbsp;: Formations">
92   <tr>
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"}
97       </div>
98       Formations
99     </th>
100   </tr>
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}
104   {/foreach}
105   {if $edus|@count eq 0}
106     {cycle values="impair, pair" assign=class}
107     {include file="profile/edu.tpl" eduid=0 edu=0 class=$class}
108   {/if}
109   {cycle values="impair, pair" assign=class}
110   {assign var=eduaddid value=$edus|@count}
111   <tr id="edu_add" class="edu_{$eduaddid} {$class}">
112     <td colspan="2">
113       <div class="center" style="clear: both; padding-top: 4px;">
114         <a href="javascript:addEdu();">
115           {icon name=add title="Ajouter une formation"} Ajouter une formation
116         </a>
117       </div>
118     </td>
119   </tr>
120   <tr class="{$class}">
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>
127
128 <table class="bicol"  style="margin-bottom: 1em"
129   summary="Profil&nbsp;: Trombinoscope">
130   <tr>
131     <th colspan="2">
132       <div class="flags" style="float: left">
133         <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
134         {icon name="flag_green" title="site public"}</label>
135       </div>
136       Trombinoscope
137     </th>
138   </tr>
139   <tr>
140     <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
141       <div class="titre">Ta photo actuelle</div>
142       <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
143     </td>
144     {if $nouvellephoto}
145     <td class="center" style="width: 49%">
146       <div class="titre">Photo en attente de validation</div>
147       <div>
148         <a href="profile/{$profile->hrid()}?modif=new" class="popup2">
149           Ta fiche avec cette photo
150         </a>
151       </div>
152       <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
153     </td>
154     {/if}
155   </tr>
156   <tr class="pair">
157     <td colspan="2">
158       Pour profiter de cette fonction intéressante, tu dois disposer
159       quelque part (sur ton ordinateur ou sur Internet) d'une photo
160       d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
161       <div class="center">
162         <a href="photo/change">Éditer ta photo</a>
163       </div>
164     </td>
165   </tr>
166 </table>
167
168 <table class="bicol" style="margin-bottom: 1em"
169   summary="Profil&nbsp;: Divers">
170   <tr>
171     <th colspan="2">
172       Divers
173     </th>
174   </tr>
175   <tr>
176     <td colspan="2">
177       <span class="titre">Téléphones personnels</span>
178     </td>
179   </tr>
180   <tr>
181     <td colspan="2">
182       {foreach from=$tels key=telid item=tel}
183         <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
184           {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
185         </div>
186       {/foreach}
187       {if $tels|@count eq 0}
188         <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
189           {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
190         </div>
191       {/if}
192       <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
193         <a href="javascript:addTel('tels', 'tels');">
194           {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
195         </a>
196       </div>
197     </td>
198   </tr>
199   {if $email_error}
200     {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"}
201   {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if}
202   <tr>
203     <td colspan="2">
204       <span class="titre">Messageries, networking et sites web</span>
205     </td>
206   </tr>
207   {foreach from=$networking item=network key=id}
208     {include file="profile/general.networking.tpl" nw=$network i=$id}
209   {/foreach}
210   <tr id="networking">
211     <script type="text/javascript">//<![CDATA[
212       var nw_list = new Array();
213       {foreach from=$network_list item=network}
214         nw_list['{$network.name}'] = {$network.type};
215       {/foreach}
216     //]]></script>
217     <td colspan="2">
218       <div id="nw_add" class="center">
219         <a href="javascript:addNetworking();">
220           {icon name=add title="Ajouter une adresse"} Ajouter une adresse
221         </a>
222       </div>
223     </td>
224   </tr>
225 <!--  <tr id="networking">
226     <td colspan="2">
227       <div style="float: left; width: 200px;">
228         <span class="titre" style="margin-left:1em;">Type à ajouter</span>
229       </div>
230       <div style="float: left;">
231         <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div>
232         <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()">
233         <span id="nw_add" style="display: none">
234           <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a>
235         </span>
236       </div>
237     </td>
238   </tr>-->
239   <tr class="pair">
240     <td>
241       <div>
242         <span class="flags">
243           <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
244           {icon name="flag_green" title="site public"}</label>
245         </span>&nbsp;
246         <span class="titre">Commentaire</span>
247       </div>
248       <div class="smaller" style="margin-top: 30px">
249         <a href="wiki_help/notitle" class="popup3">
250           {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
251         </a>
252         <div class="center">
253           <input type="submit" name="preview" value="Aperçu"
254                   onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
255         </div>
256       </div>
257     </td>
258     <td>
259       <div id="ft_preview" style="display: none"></div>
260       <textarea name="freetext" {if $errors.freetext}class="error"{/if}
261                 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
262     </td>
263   </tr>
264 </table>
265
266 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}