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