Happy New Year!
[platal.git] / templates / xnetlists / alias-admin.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2009 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 <p>[<a href='{$platal->ns}lists'>retour à la page des listes</a>]</p>
24
25 <h1>Membres de {$platal->argv[1]}</h1>
26       
27 <table class='tinybicol'>
28   {if $mem->total()}
29   {iterate from=$mem item=m}
30   <tr>
31     <td>
32       {if $m.nom}
33       {if $m.admin}<strong>{/if}
34       {if $m.alias}<a href="https://www.polytechnique.org/profile/{$m.alias}" class="popup2">{/if}
35       {$m.prenom} {$m.nom}
36       {if $m.alias}</a>{/if}
37       {if $m.admin}</strong>{/if}
38       {else}
39       {$m.redirect}
40       {/if}
41     </td>
42     <td class="right">
43       {if $m.admin}<strong>{/if}
44       {$m.promo}
45       {if $m.admin}</strong>{/if}
46     </td>
47     <td class="center">
48       <a href='{$platal->ns}alias/admin/{$platal->argv[1]}?del_member={$m.redirect|urlencode}&amp;token={xsrf_token}'>
49       {icon name=delete title='retirer membre'}
50       </a>
51     </td>
52   </tr>
53   {/iterate}
54   {else}
55   <tr>
56     <td colspan="3">
57       <em>aucun membres ...</em>
58     </td>
59   </tr>
60   {/if}
61   <tr>
62     <th colspan="3">Ajouter</th>
63   </tr>
64   <tr>
65     <td colspan="3" class="center">
66       <form method="post" action="{$platal->ns}alias/admin/{$platal->argv[1]}">
67         {xsrf_token_field}
68         <div>
69         <input type='text' name='add_member' />
70         &nbsp;
71         <input type='submit' value='ajouter' />
72         </div>
73       </form>
74     </td>
75   </tr>
76 </table>
77
78 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}