Commit | Line | Data |
---|---|---|
4af7fd22 FB |
1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
4af7fd22 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 | ||
e46cf8c4 | 23 | <h1>{$asso->nom} : validation des inscriptions</h1> |
4af7fd22 FB |
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 | } | |
4af7fd22 FB |
37 | } |
38 | {/literal} | |
39 | //]]></script> | |
40 | ||
dc789431 | 41 | {if $valid->total() > 0} |
4af7fd22 FB |
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> | |
dc789431 | 46 | <th>Prénom Nom (Promotion)</th> |
4af7fd22 FB |
47 | <th>Date de demande</th> |
48 | <th></th> | |
49 | </tr> | |
50 | {iterate from=$valid item=user} | |
51 | <tr> | |
0fab5209 | 52 | <td><input type="checkbox" name="subs[{$user.hruid}]" value="1" class="select_sub" /></td> |
aa21c568 | 53 | <td>{profile user=$user.uid promo=true}</td> |
4af7fd22 | 54 | <td>{$user.date|date_format}</td> |
0fab5209 | 55 | <td><a href="{$platal->ns}subscribe/{$user.hruid}">{icon name=magnifier title="Détails"}</a></td> |
4af7fd22 FB |
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> | |
dc789431 SJ |
70 | {else} |
71 | <p> | |
72 | Il n'y a pas d'inscription à valider. | |
73 | </p> | |
74 | {/if} | |
75 | ||
4af7fd22 | 76 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |