first reimport from platal
[platal.git] / templates / xnet / groupe / membres-edit.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2004 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<h1>{$asso.nom} : gestion des membres</h1>
24
25<h2>
26 Édition du profil de {$user.prenom} {$user.nom}
27 {if $user.origine eq 'X'}
28 (X{$user.promo})
29 <a href="https://www.polytechnique.org/fiche.php?user={$user.alias}"><img src="{rel}/images/loupe.gif" alt="Voir la fiche" /></a>
30 {/if}
31 <a href="?del={$user.email}"><img src="{rel}/images/del.png" alt="Suppression du compte" /></a>
32 <a href="mailto:{$user.email}"><img src="{rel}/images/mail.png" alt="Ecrire un mail" /></a>
33</h2>
34
35<form method="post" action="{$smarty.server.REQUEST_URI}">
36 <table cellpadding="0" cellspacing="0" class='tiny'>
37 <tr>
38 <td class="titre">
39 Permissions:
40 </td>
41 <td>
42 <select name="is_admin">
43 <option value="0" {if !$user.perms}selected="selected"{/if}>Membre</option>
44 <option value="1" {if $user.perms}selected="selected"{/if}>Administrateur</option>
45 </select>
46 </td>
47 </tr>
48 {if $user.origine neq X}
49 <tr>
50 <td class="titre">
51 Prénom:
52 </td>
53 <td>
54 <input type="text" value="{$user.prenom}" name="prenom" size="40" />
55 </td>
56 </tr>
57 <tr>
58 <td class="titre">
59 Nom:
60 </td>
61 <td>
62 <input type="text" value="{$user.nom}" name="nom" size="40" />
63 </td>
64 </tr>
65 <tr>
66 <td class="titre">
67 Email:
68 </td>
69 <td>
70 <input type="text" value="{$user.email}" name="email" size="40" />
71 </td>
72 </tr>
73 {/if}
74 </table>
75
76 <h2>Abonnement aux listes</h2>
77
78 <table cellpadding="0" cellspacing="0" class='large'>
79 <tr>
80 <th>&nbsp;</th>
81 <th>Liste</th>
82 <th>Description</th>
83 <th>Nb</th>
84 </tr>
85 {foreach from=$listes item=liste}
86 <tr>
87 <td class='right'>
88 <input type='hidden' name='ml1[{$liste.list}]' value='{$liste.sub}' />
89 <input type='checkbox' name='ml2[{$liste.list}]' {if $liste.sub eq 2}checked="checked"{/if} />
90 </td>
91 <td>
92 <a href='listes-members.php?liste={$liste.list}'>{$liste.list}</a>
93 </td>
94 <td>{$liste.desc}</td>
95 <td class='right'>{$liste.nbsub}</td>
96 </tr>
97 {foreachelse}
98 <tr><td colspan='4'>Pas de listes pour ce groupe</td></tr>
99 {/foreach}
100 </table>
101
102 <h2>Abonnement aux alias</h2>
103
104 <table cellpadding="0" cellspacing="0" class='large'>
105 <tr>
106 <th>&nbsp;</th>
107 <th>Alias</th>
108 </tr>
109
110 {foreach from=$alias item=a}
111 <tr>
112 <td align='right'>
113 <input type='hidden' name='ml3[{$a.alias}]' value='{$a.sub}' />
114 <input type='checkbox' name='ml4[{$a.alias}]' {if $a.sub}checked="checked"{/if} />
115 </td>
116 <td>
117 <a href='alias-admin.php?liste={$a.alias}'>{$a.alias}</a>
118 </td>
119 </tr>
120 {foreachelse}
121 <tr><td colspan='2'>Pas d'alias pour ce groupe</td></tr>
122 {/foreach}
123 </table>
124
125 <div class="center">
126 <br />
127 <input type="submit" name='change' value="Valider ces changements" />
128 &nbsp;
129 <input type="reset" value="Annuler ces changements" />
130 </div>
131
132</form>
133
134
135{* vim:set et sw=2 sts=2 sws=2: *}