Merge branch 'xorg/maint'
[platal.git] / templates / lists / admin_edit_alias.tpl
CommitLineData
2ed80014
SJ
1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 Polytechnique.org *}
2ed80014
SJ
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="admin/aliases">Retour à la liste des aliases</a>]</p>
24
25<h1>Membres de {$alias}</h1>
26
27<table class="tinybicol">
28 {if $members.users|@count}
29 {foreach from=$members.users item=member}
30 <tr>
31 <td>
32 {if $member->hasProfile()}
33 <a href="https://www.polytechnique.org/profile/{$member->hruid}" class="popup2">{$member->fullName()}</a>
34 {else}
35 {$member->fullName()}
36 {/if}
37 </td>
38 <td class="right">{$member->promo()}</td>
39 <td class="center">
40 <a href="admin/aliases/{$alias}?del_member={$member->id()}&amp;token={xsrf_token}">
41 {icon name=delete title="retirer membre"}
42 </a>
43 </td>
44 </tr>
45 {/foreach}
46 {/if}
47 {if $members.nonusers|@count}
48 {foreach from=$members.nonusers item=member}
49 <tr>
50 <td>{$member}</td>
51 <td></td>
52 <td class="center">
53 <a href="admin/aliases/{$alias}?del_member={$member}&amp;token={xsrf_token}">
54 {icon name=delete title="retirer membre"}
55 </a>
56 </td>
57 </tr>
58 {/foreach}
59 {/if}
60 {if $members.users|@count eq 0 && $members.nonusers|@count eq 0}
61 <tr>
62 <td colspan="3">
63 <em>aucun membre&hellip;</em>
64 </td>
65 </tr>
66 {/if}
67 <tr>
68 <th colspan="3">Ajouter</th>
69 </tr>
70 <tr>
71 <td colspan="3" class="center">
72 <form method="post" action="admin/aliases/{$alias}">
73 {xsrf_token_field}
74 <div>
75 <input type="text" name="add_member" />
76 &nbsp;
77 <input type="submit" value="ajouter" />
78 </div>
79 </form>
80 </td>
81 </tr>
82</table>
83
84
85<form method="post" action="admin/aliases/{$alias}">
86 {xsrf_token_field}
87 <p class="center">
88 <input type="submit" name="del_alias" value="Supprimer l'alias" onclick="return confirm('ES tu sûr de vouloir supprimer cet alias.')" />
89 </p>
90</form>
91
448c8cdc 92{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}