Adds XSRF protection to the Profile module.
[platal.git] / templates / profile / base.tpl
CommitLineData
fd38b30e
FB
1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 Polytechnique.org *}
fd38b30e
FB
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
93553cea 23<form action="{$wiz_baseurl}/{$lookup[$current]}" method="post" id="prof_annu">
8827fc52 24 {xsrf_token_field}
fd38b30e 25 <div>
2dcac0f5 26 {icon name=information title="Voir ma fiche"} Tu peux consulter ta fiche telle que la
7f4a724e 27 voient <a class="popup2" href="profile/{$smarty.session.forlife}?view=public">n'importe quel internaute</a>,
2dcac0f5 28 <a class="popup2" href="profile/{$smarty.session.forlife}?view=ax">l'AX</a> ou
7f4a724e 29 <a class="popup2" href="profile/{$smarty.session.forlife}">les X</a>.
ee12da4e
FB
30 </div>
31 <div class="flags">
32 {include file="include/flags.radio.tpl" disabled=true withtext=true name="profile_ex_pub"}
2dcac0f5
FB
33 </div>
34 <div style="margin-top: 1em">
fd38b30e
FB
35 {include file=$profile_page}
36 </div>
7f4a724e 37 <div style="clear: both; margin-top: 1em" class="center">
93553cea
FB
38 <input type="hidden" name="valid_page" value="{$current}" />
39 <input type="submit" name="current_page" value="Valider les modifications" />
7f4a724e 40 {if $current neq count($lookup)-1}
93553cea 41 <input type="submit" name="next_page" value="Valider et passer à la page suivante" />
7f4a724e 42 {/if}
fd38b30e
FB
43 </div>
44</form>
45
46{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}