Happy New Year !
[platal.git] / templates / profile / trombino.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
ba6ae046 3{* Copyright (C) 2003-2013 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
23
24<h1>Trombinoscope</h1>
25
c710b211 26<form enctype="multipart/form-data" action="photo/change/{$hrpid}" method="post">
8827fc52 27 {xsrf_token_field}
e9d30b93
PC
28 {assign var="profile" value=$smarty.session.user->profile()}
29 {if $profile && (($profile->yearpromo() ge 1995) || ($profile->yearpromo() le 2002))}
0337d704 30 <p>
31 Si tu n'as pas encore fourni de photo, c'est celle du trombinoscope de l'X qui est
a7de4ef7 32 affichée par défaut dans le profil. Si elle ne te plaît pas, ou si tu n'es quand même
0337d704 33 plus un tos, tu peux la remplacer par ta photo en suivant les instructions suivantes.
34 </p>
35 {/if}
36
37 <table class="bicol" cellspacing="0" cellpadding="2">
38 <tr>
39 <th>
40 Photo actuelle
41 </th>
42 <th>
43 Photo en cours de validation<sup>(*)</sup>
44 </th>
45 </tr>
46 <tr>
47 <td class="center">
c710b211 48 <img src="photo/{$hrpid}" width="200" alt=" [ PHOTO ] " />
0337d704 49 </td>
50 <td class="center half">
51 {if $submited}
c710b211 52 <img src="photo/{$hrpid}/req" width="200" alt=" [ PHOTO ] " />
0337d704 53 {else}
54 Pas d'image soumise
55 {/if}
56 </td>
57 </tr>
58 <tr>
59 <td colspan="2" class="smaller">
a7de4ef7 60 * Les photos sont soumises à une validation manuelle en raison des législations relatives
61 aux droits d'auteur et à la protection des mineurs. Il faut donc attendre l'intervention
faefdbb7 62 d'un administrateur pour que la photo soit prise en compte. Tu recevras un email lorsque ta
a7de4ef7 63 photo aura été contrôlée.
0337d704 64 </td>
65 </tr>
66 <tr>
67 <th colspan="2">
716dedc5 68 Action non modérée
0337d704 69 </th>
70 </tr>
71 <tr>
72 <td {if !$submited}colspan="2"{/if} class="center">
bbb4d2e9 73 Si tu ne souhaites plus montrer cette photo tu peux aussi l'effacer en la remplaçant par&nbsp;:<br />
0337d704 74 {if $has_trombi_x}
75 <input type="submit" value="Trombino de l'X" name="trombi" /><br />
76 {/if}
a7de4ef7 77 <input type="submit" value="Image par défaut" name="suppr" />
0337d704 78 </td>
79 {if $submited}
80 <td class="center">
bbb4d2e9 81 Tu peux annuler ta soumission et garder ta photo actuelle&nbsp;:<br />
0337d704 82 <input type="submit" value="Annuler ta soumission" name="cancel" />
83 </td>
84 {/if}
85 </tr>
86 <tr>
87 <th colspan="2">
88 Changement de ta photo
89 </th>
90 </tr>
91 <tr>
92 <td colspan="2">
93 <p>
a7de4ef7 94 Nous te proposons deux possibilités pour mettre à jour ta photo (30 Ko maximum). Tout dépend
95 de savoir où se trouve ta photo. Si elle est sur ton poste de travail local, c'est la première
0337d704 96 solution qu'il faut choisir.
97 </p>
98 <p>
a7de4ef7 99 Si elle est sur Internet, choisis la seconde solution et nos robots iront la télécharger
716dedc5 100 directement où il faut.
0337d704 101 </p>
102 </td>
103 </tr>
104 <tr>
105 <td class="titre">
106 Sur ton ordinateur
107 </td>
108 <td class="titre">
109 Sur Internet
110 </td>
111 </tr>
112 <tr>
113 <td>
114 <input name="userfile" type="file" size="20" maxlength="150" />
115 </td>
116 <td>
117 <input type="text" size="45" maxlength="140" name="photo"
118 value="{$smarty.request.photo|default:"http://www.multimania.com/joe/maphoto.jpg"}" />
119 </td>
120 </tr>
121 <tr>
122 <td class="center">
123 <input type="submit" value="Envoyer !" name="upload" />
124 </td>
125 <td class="center">
126 <input type="submit" value="Envoyer !" name="upload" />
127 </td>
128 </tr>
129 </table>
130
131</form>
132
133
a7de4ef7 134{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}