Merge branch 'platal-0.9.17'
[platal.git] / templates / xnetgrp / subscribe-valid.tpl
CommitLineData
4af7fd22
FB
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<h1>{$asso.nom}&nbsp;: Validation des inscriptions</h1>
24
25<script type="text/javascript">//<![CDATA[
26{literal}
27 var toggleState = false;
28 function toggleSelection()
29 {
30 toggleState = !toggleState;
31 var boxes = $(':checkbox.select_sub');
32 if (toggleState) {
33 boxes.attr("checked", "checked");
34 } else {
35 boxes.removeAttr("checked");
36 }
37 return true;
38 }
39{/literal}
40//]]></script>
41
42<form action="{$platal->ns}subscribe/valid" method="post">
43 <table class="tinybicol">
44 <tr>
45 <th><a href="javascript:toggleSelection()">{icon name="arrow_refresh" title="Inverser la sélection"}</a></th>
46 <th>Prénom Nom</th>
47 <th>Date de demande</th>
48 <th></th>
49 </tr>
50 {iterate from=$valid item=user}
51 <tr>
52 <td><input type="checkbox" name="subs[{$user.forlife}]" value="1" class="select_sub" /></td>
53 <td><a href="profile/{$user.forlife}" class="popup2">{$user.prenom} {$user.nom} (X{$user.promo})</a></td>
54 <td>{$user.date|date_format}</td>
55 <td><a href="{$platal->ns}subscribe/{$user.forlife}">{icon name=magnifier title="Détails"}</a></td>
56 </tr>
57 {/iterate}
58 </table>
59
60 <div class="center">
61 {xsrf_token_field}
62 <input type="submit" name="valid" value="Accepter" />
63 </div>
64
65 <div>
66 Pour voir le détail sur une demande, clique sur le lien {icon name=magnifier title="Détails"}.<br />
67 Pour refuser une demande, tu dois aller consulter les détails et remplir la raison du refus.
68 </div>
69</form>
70{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}