Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
0337d704 | 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 | ||
06db561e | 23 | <script type="text/javascript"> |
631565e1 FB |
24 | {literal} |
25 | function showInformations(box) | |
26 | { | |
bb88d138 | 27 | var state = (box.value != 'virtual') ? '' : 'none'; |
631565e1 FB |
28 | document.getElementById('prenom').style.display = state; |
29 | document.getElementById('sexe').style.display = state; | |
30 | document.getElementById('make_X').style.display = state; | |
31 | } | |
32 | ||
33 | function showXInput(box) | |
34 | { | |
35 | if (box.checked) { | |
36 | document.getElementById('make_X_cb').style.display = 'none'; | |
37 | document.getElementById('make_X_login').style.display = ''; | |
38 | } | |
39 | } | |
40 | {/literal} | |
06db561e | 41 | </script> |
42 | ||
34ade5a6 | 43 | <h1>{$asso->nom} : gestion des membres</h1> |
0337d704 | 44 | |
ef7c8560 | 45 | <p> |
a7de4ef7 | 46 | [<a href='{$platal->ns}annuaire'>Retour à l'annuaire</a>] |
ef7c8560 | 47 | </p> |
48 | ||
0337d704 | 49 | <h2> |
a6761ca9 FB |
50 | Édition du profil de {profile user=$user groupperms=false sex=false promo=true} |
51 | <a href="mailto:{$user->bestEmail()}">{icon name=email title="mail"}</a> | |
0337d704 | 52 | </h2> |
53 | ||
7b2413f6 | 54 | <form method="post" action="{$platal->ns}member/{$platal->argv[1]}"> |
e7fdf9dd | 55 | {xsrf_token_field} |
0cc4c07d | 56 | <table cellpadding="0" cellspacing="0" class='tinybicol'> |
57 | <tr class="pair"> | |
0337d704 | 58 | <td class="titre"> |
54b24ba2 | 59 | Permissions : |
0337d704 | 60 | </td> |
61 | <td> | |
bb88d138 PC |
62 | <select name="group_perms"> |
63 | <option value="membre" {if $user->group_perms eq 'membre'}selected="selected"{/if}>Membre</option> | |
64 | <option value="admin" {if $user->group_perms eq 'admin'}selected="selected"{/if}>Animateur</option> | |
0337d704 | 65 | </select> |
66 | </td> | |
67 | </tr> | |
bb88d138 | 68 | {if !$user->profile()} |
0cc4c07d | 69 | <tr class="impair"> |
0337d704 | 70 | <td class="titre"> |
e8439508 | 71 | Type d'utilisateur : |
06db561e | 72 | </td> |
73 | <td> | |
bb88d138 PC |
74 | <select name="type" onchange="showInformations(this); return true"{if $user->profile()} disabled="disabled"{/if}> |
75 | <option value="xnet" {if $user->type neq 'virtual'}selected="selected"{/if}>Personne physique</option> | |
76 | <option value="virtual" {if $user->type eq "virtual"}selected="selected"{/if}>Personne morale</option> | |
06db561e | 77 | </select> |
78 | </td> | |
79 | </tr> | |
a6761ca9 | 80 | <tr id="prenom" class="impair" {if $user->type eq "virtual"}style="display: none"{/if}> |
06db561e | 81 | <td class="titre"> |
bb88d138 | 82 | Nom affiché : |
0337d704 | 83 | </td> |
84 | <td> | |
bb88d138 | 85 | <input type="text" value="{$user->displayName()}" name="display_name" size="40"{if $user->profile()} disabled="disabled"{/if} /> |
0337d704 | 86 | </td> |
87 | </tr> | |
0cc4c07d | 88 | <tr class="impair"> |
0337d704 | 89 | <td class="titre"> |
bb88d138 | 90 | Nom complet : |
0337d704 | 91 | </td> |
92 | <td> | |
bb88d138 | 93 | <input type="text" value="{$user->fullName()}" name="full_name" size="40"{if $user->profile()} disabled="disabled"{/if} /> |
0337d704 | 94 | </td> |
95 | </tr> | |
d081acb2 SJ |
96 | <tr class="impair"> |
97 | <td class="titre"> | |
98 | Nom annuaire : | |
99 | </td> | |
100 | <td> | |
101 | <input type="text" value="{$user->directoryName()}" name="directory_name" size="40"{if $user->profile()} disabled="disabled"{/if} /> | |
102 | </td> | |
103 | </tr> | |
a6761ca9 | 104 | <tr id="sexe" class="impair" {if $user->type eq "virtual"}style="display: none"{/if}> |
0cc4c07d | 105 | <td class="titre"> |
e8439508 | 106 | Sexe : |
0cc4c07d | 107 | </td> |
108 | <td> | |
bb88d138 PC |
109 | <select name="sex"{if $user->profile()} disabled="disabled"{/if}> |
110 | <option value="male"{if !$user->isFemale()} selected="selected"{/if}>Homme</option> | |
111 | <option value="female"{if $user->isFemale()} selected="selected"{/if}>Femme</option> | |
0cc4c07d | 112 | </select> |
113 | </td> | |
114 | </tr> | |
115 | <tr class="impair"> | |
0337d704 | 116 | <td class="titre"> |
54b24ba2 | 117 | Email : |
0337d704 | 118 | </td> |
119 | <td> | |
bb88d138 | 120 | <input type="text" value="{$user->forlifeEmail()}" name="email" size="40"{if $user->profile()} disabled="disabled"{/if} /> |
0337d704 | 121 | </td> |
122 | </tr> | |
bb88d138 | 123 | {/if} |
54b24ba2 FB |
124 | <tr class="impair"> |
125 | <td class="titre"> | |
126 | Commentaire : | |
127 | </td> | |
128 | <td> | |
a6761ca9 | 129 | <input type="text" name="comm" value="{$user->group_comm}" size="40" maxlength="255" /><br /> |
6e828e47 | 130 | <small>Poste, origine… (accessible à toutes les personnes autorisées à consulter l'annuaire)</small> |
54b24ba2 FB |
131 | </td> |
132 | </tr> | |
bb88d138 | 133 | {if $user->type eq 'xnet'} |
a6761ca9 | 134 | <tr id="make_X"> |
631565e1 FB |
135 | <td colspan="2"> |
136 | <span id="make_X_cb"> | |
52e34cc0 | 137 | <input type="checkbox" name="is_x" id="is_x" onclick="showXInput(this);" onchange="showXInput(this);" /> |
841ff7e7 | 138 | <label for="is_x">coche cette case s'il s'agit d'un X</label> |
631565e1 FB |
139 | </span> |
140 | <span id="make_X_login" style="display: none"> | |
141 | <span class="titre">Identifiant (prenom.nom.promo) :</span> | |
142 | <input type="text" name="login_X" value="" /> | |
143 | </span> | |
144 | </td> | |
145 | </tr> | |
0337d704 | 146 | {/if} |
147 | </table> | |
148 | ||
149 | <h2>Abonnement aux listes</h2> | |
150 | ||
151 | <table cellpadding="0" cellspacing="0" class='large'> | |
152 | <tr> | |
153 | <th> </th> | |
154 | <th>Liste</th> | |
155 | <th>Description</th> | |
156 | <th>Nb</th> | |
157 | </tr> | |
158 | {foreach from=$listes item=liste} | |
159 | <tr> | |
160 | <td class='right'> | |
161 | <input type='hidden' name='ml1[{$liste.list}]' value='{$liste.sub}' /> | |
162 | <input type='checkbox' name='ml2[{$liste.list}]' {if $liste.sub eq 2}checked="checked"{/if} /> | |
163 | </td> | |
164 | <td> | |
7b2413f6 | 165 | <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a> |
0337d704 | 166 | </td> |
4b88dabd | 167 | <td>{$liste.desc|smarty:nodefaults}</td> |
0337d704 | 168 | <td class='right'>{$liste.nbsub}</td> |
169 | </tr> | |
170 | {foreachelse} | |
171 | <tr><td colspan='4'>Pas de listes pour ce groupe</td></tr> | |
172 | {/foreach} | |
173 | </table> | |
174 | ||
175 | <h2>Abonnement aux alias</h2> | |
176 | ||
177 | <table cellpadding="0" cellspacing="0" class='large'> | |
178 | <tr> | |
179 | <th> </th> | |
180 | <th>Alias</th> | |
181 | </tr> | |
182 | ||
a6761ca9 | 183 | {foreach from=$alias key=address item=sub} |
0337d704 | 184 | <tr> |
185 | <td align='right'> | |
a6761ca9 FB |
186 | <input type='hidden' name='ml3[{$address}]' value='{$sub}' /> |
187 | <input type='checkbox' name='ml4[{$address}]' {if $sub}checked="checked"{/if} /> | |
0337d704 | 188 | </td> |
189 | <td> | |
a6761ca9 | 190 | <a href='{$platal->ns}alias/admin/{$address}'>{$address}</a> |
0337d704 | 191 | </td> |
192 | </tr> | |
193 | {foreachelse} | |
194 | <tr><td colspan='2'>Pas d'alias pour ce groupe</td></tr> | |
195 | {/foreach} | |
196 | </table> | |
197 | ||
198 | <div class="center"> | |
199 | <br /> | |
200 | <input type="submit" name='change' value="Valider ces changements" /> | |
201 | | |
202 | <input type="reset" value="Annuler ces changements" /> | |
203 | </div> | |
204 | ||
205 | </form> | |
206 | ||
207 | ||
a7de4ef7 | 208 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |