Adds XSRF protection to the XnetLists module.
[platal.git] / templates / xnetlists / sync.tpl
CommitLineData
3fe218e4 1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 Polytechnique.org *}
3fe218e4 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
3eb25eb3 23{include file='lists/header_listes.tpl' on='sync'}
a7de4ef7 24<h1>Non abonnés à la liste {$platal->argv[1]}@{$asso.mail_domain}</h1>
3fe218e4 25
7b2413f6 26<form action="{$platal->ns}lists/sync/{$platal->argv[1]}" method="post">
8d73663d 27 {xsrf_token_field}
3fe218e4 28 <table cellspacing="2" cellpadding="0" class="tiny">
29 <tr>
1bd2bc7e 30 <th colspan="2">Membre</th>
3fe218e4 31 <th></th>
32 </tr>
33 {foreach from=$not_in_list item=u}
34 <tr>
1bd2bc7e 35 <td>{$u.nom|strtoupper} {$u.prenom}</td>
36 <td>{$u.promo}</td>
3fe218e4 37 <td><input type="checkbox" name="add[{$u.email}]" /></td>
38 </tr>
39 {/foreach}
40 <tr>
1bd2bc7e 41 <td colspan='3' class="center">
3fe218e4 42 <input type='submit' value='forcer inscription' />
43 </td>
44 </tr>
45 </table>
46
47</form>
48
a7de4ef7 49{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}