Fixes a few typos.
[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 <table class="bicol" style="margin-bottom: 1em"
24   summary="Profil&nbsp;: Informations générales">
25   <tr>
26     <th colspan="2">
27       <div class="flags" style="float: left">
28         <input type="checkbox" disabled="disabled" checked="checked" />
29         {icon name="flag_green" title="site public"}
30       </div>
31       Informations générales
32     </th>
33   </tr>
34   <tr>
35     <td>
36       <span class="titre">Nom</span>
37       <span class="comm"></span>
38     </td>
39     <td>
40       <input type='text' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
41     </td>
42   </tr>
43   <tr>
44     <td>
45       <span class="titre">Prénom</span>
46       <span class="comm"></span>
47     </td>
48     <td>
49       <input type='text' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
50     </td>
51   </tr>
52   <tr>
53     <td>
54       <span class="titre">Promotion</span>
55     </td>
56     <td>
57       <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span>
58       <span class="lien"><a href="profile/orange">modifier</a>{if ($promo_sortie -3 == $promo)} pour les oranges{/if}</span>
59     </td>
60   </tr>
61   <tr>
62     <td>
63       <span class="titre">Nom d'usage</span><br />
64       {if $smarty.session.sexe}
65       <span class="comm">(Notamment nom d'épouse)</span>
66       {else}
67       <span class="comm">(si différent de {$nom} seulement)</span>
68       {/if}
69     </td>
70     <td>
71       <span class="nom">{$nom_usage|default:"Aucun"}</span>
72       <span class="lien"><a href="profile/usage">modifier</a></span>
73     </td>
74   </tr>
75   <tr>
76     <td class="titre">Date de naissance</td>
77     <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td>
78   </tr>
79   <tr>
80     <td>
81       <span class="titre">Nationalité</span>
82     </td>
83     <td>
84       <select name="nationalite">
85         {select_nat valeur=$nationalite}
86       </select>
87     </td>
88   </tr>
89   <tr class="pair">
90     <td>
91       <span class="titre">Application</span><br />
92       <span class="comm">(4e année de l'X)</span>
93     </td>
94     <td>
95       <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">
96         {applis_options selected=$appli1.id}
97       </select>
98       <br />
99       <input type="hidden" name="appli1_tmp" value="{$appli1.type}" />
100       <select name="appli1[type]">
101         <option value=""></option>
102       </select>
103     </td>
104   </tr>
105   <tr class="pair">
106     <td>
107       <span class="titre">Post-application</span>
108     </td>
109     <td>
110       <select name="appli2[id]" onchange="fillType(this.form['appli2[type]'], this.selectedIndex-1);">
111         {applis_options selected=$appli2.id}
112       </select>
113       <br />
114       <input type="hidden" name="appli2_tmp" value="{$appli2.type}" />
115       <select name="appli2[type]">
116         <option value=""></option>
117       </select>
118     </td>
119   </tr>
120 </table>
121
122 {if !$no_private_key}
123 <table class="bicol"  style="margin-bottom: 1em"
124   summary="Profil&nbsp;: Informations générales">
125   <tr>
126     <th>
127       Synchronisation avec l'AX
128     </th>
129   </tr>
130   <tr>
131     <td class="flags">
132       <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
133       {icon name="flag_orange" title="transmis à l'AX"}
134       <span class="texte">
135         Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
136       </span>
137     </td>
138   </tr>
139   <tr>
140     <td>
141       <p>
142         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>.
143       </p>
144       <p>
145         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à.
146       </p>
147       <p class="center">
148         <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>
149       </p>
150     </td>
151   </tr>
152 </table>
153 {/if}
154
155 <table class="bicol"  style="margin-bottom: 1em"
156   summary="Profil: Trombinoscope">
157   <tr>
158     <th colspan="2">
159       <div class="flags" style="float: left">
160         <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
161         {icon name="flag_green" title="site public"}
162       </div>
163       Trombinoscope
164     </th>
165   </tr>
166   <tr>
167     <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
168       <div class="titre">Ta photo actuelle</div>
169       <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
170     </td>
171     {if $nouvellephoto}
172     <td class="center" style="width: 49%">
173       <div class="titre">Photo en attente de validation</div>
174       <div>
175         <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">
176           Ta fiche avec cette photo
177         </a>
178       </div>
179       <img src="photo/{$smarty.session.forlife}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
180     </td>
181     {/if}
182   </tr>
183   <tr class="pair">
184     <td colspan="2">
185       Pour profiter de cette fonction intéressante, tu dois disposer
186       quelque part (sur ton ordinateur ou sur Internet) d'une photo
187       d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
188       <div class="center">
189         <a href="photo/change">Éditer ta photo</a>
190       </div>
191     </td>
192   </tr>
193 </table>
194
195 <table class="bicol" style="margin-bottom: 1em"
196   summary="Profil: Divers">
197   <tr>
198     <th colspan="2">
199       Divers
200     </th>
201   </tr>
202   <tr>
203     <td>
204       <span class="flags">
205         <input type="checkbox" checked="checked" disabled="disabled" />
206         {icon name="flag_red" title="privé"}
207       </span>&nbsp;
208       <span class="titre">Surnom</span>
209     </td>
210     <td>
211       <input type="text" size="35" maxlength="64"
212              {if $errors.nick}class="error"{/if} name="nick" value="{$nick}" />
213     </td>
214   </tr>
215   <tr>
216     <td>
217       <span class="titre">Téléphone mobile</span>
218     </td>
219     <td>
220       <input type="text" size="18" maxlength="18" name="mobile"
221              {if $errors.mobile}class="error"{/if} value="{$mobile}" />
222       <span class="flags">
223         {include file="include/flags.radio.tpl" name="mobile_pub" val=$mobile_pub}
224       </span>
225     </td>
226   </tr>
227   <tr>
228     <td>
229       <span class="flags">
230         <input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
231         {icon name="flag_green" title="site public"}
232       </span>&nbsp;
233       <span class="titre">Page web Perso</span>
234     </td>
235     <td>
236       <input type="text" size="35" maxlength="95" name="web"
237              {if $errors.web}class="error"{/if} value="{$web}" />
238     </td>
239   </tr>
240   <tr class="pair">
241     <td>
242       <div>
243         <span class="flags">
244           <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
245           {icon name="flag_green" title="site public"}
246         </span>&nbsp;
247         <span class="titre">Complément libre</span><br />
248         <span class="comm">Commentaire ? ICQ ? etc...</span>
249       </div>
250       <div class="smaller" style="margin-top: 30px">
251         <a href="wiki_help/notitle" class="popup3">
252           {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
253         </a>
254         <div class="center">
255           <input type="submit" name="preview" value="Aperçu"
256                   onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
257         </div>
258       </div>
259     </td>
260     <td>
261       <div id="ft_preview" style="display: none"></div>
262       <textarea name="freetext" {if $errors.freetext}class="error"{/if}
263                 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
264     </td>
265   </tr>
266 </table>
267
268 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}