Merge commit 'origin/fusionax' into account
[platal.git] / templates / xnetlists / alias-admin.tpl
... / ...
CommitLineData
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|@count}
29 {foreach from=$mem item=m}
30 <tr>
31 <td>
32 {if $m.user}
33 {if $m.admin}<strong>{/if}
34 <a href="https://www.polytechnique.org/profile/{$m.user->login()}" class="popup2">{$m.user->fullName()}</a>
35 {if $m.admin}</strong>{/if}
36 {else}
37 {$m.email}
38 {/if}
39 </td>
40 <td class="right">
41 {if $m.user}
42 {if $m.admin}<strong>{/if}
43 {$m.user->promo()}
44 {if $m.admin}</strong>{/if}
45 {/if}
46 </td>
47 <td class="center">
48 <a href='{$platal->ns}alias/admin/{$platal->argv[1]}?del_member={$m.email|urlencode}&amp;token={xsrf_token}'>
49 {icon name=delete title='retirer membre'}
50 </a>
51 </td>
52 </tr>
53 {/foreach}
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: *}