Merge remote branch 'origin/master' into xnet_accounts
[platal.git] / templates / xnetgrp / membres-del.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2010 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 {if t($smarty.post.confirm)}
24
25 <p class="descr">
26 {if !$self}
27 <a href="{$platal->ns}annuaire">retour à l'annuaire</a>
28 {else}
29 <a href="">retour à l'accueil</a>
30 {/if}
31 </p>
32
33 {else}
34
35 <h1>{$asso->nom}&nbsp;: gestion des membres</h1>
36
37 <h2>
38   Suppression du membre&nbsp;: {profile user=$user groupperms=false sex=false promo=true}
39 </h2>
40
41
42 <form method="post" action="{$platal->pl_self()}">
43   {xsrf_token_field}
44   <div class="center">
45     <p class="descr">
46     {if $self}
47     Êtes-vous sûr de vouloir vous désinscrire du groupe {$asso->nom} et de toutes
48     les listes de diffusion associées&nbsp;?
49     {if $user->type eq 'xnet' && $user->groupCount() eq 1}
50     <br />C'est le seul groupe auquel tu es actuellement inscrit sur polytechnique.net.
51     Si, malgré cela, tu souhaites garder ton accès à Polytechnique.net, décoche la case
52     ci-dessous.<br />
53     <label><input type="checkbox" name="accountDeletion" checked="checked" />Supprimer mon compte.</label>
54     {/if}
55     {else}
56     Êtes-vous sûr de vouloir supprimer {$user->fullName()} du groupe,
57     lui retirer tous les droits associés à son statut de membre
58     et le désabonner de toutes les listes de diffusion du groupe&nbsp;?
59     {/if}
60     </p>
61     <input type="submit" name="confirm" value="Oui, je {if $self}me{else}le{/if} désinscris complètement du groupe !" />
62   </div>
63 </form>
64
65 {/if}
66
67 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}