Convert source code to UTF-8
[platal.git] / templates / xnetgrp / membres-edit.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 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">
24 {literal}
25 function showInformations(box)
26 {
27 var state = (box.value == 'ext') ? '' : 'none';
28 document.getElementById('prenom').style.display = state;
29 document.getElementById('sexe').style.display = state;
30 }
31 {/literal}
32</script>
33
0337d704 34<h1>{$asso.nom} : gestion des membres</h1>
35
ef7c8560 36<p>
a7de4ef7 37[<a href='{$platal->ns}annuaire'>Retour à l'annuaire</a>]
ef7c8560 38</p>
39
0337d704 40<h2>
a7de4ef7 41 Édition du profil de {$user.prenom} {$user.nom}
0337d704 42 {if $user.origine eq 'X'}
43 (X{$user.promo})
7ac1ef77 44 <a href="https://www.polytechnique.org/profile/{$user.alias}">{icon name=user_suit title="fiche"}</a>
0337d704 45 {/if}
a72a67b9 46 <a href="{$platal->ns}member/del/{$user.email}">{icon name=delete title="Suppression du compte"}</a>
f7413044 47 <a href="mailto:{$user.email}">{icon name=email title="mail"}</a>
0337d704 48</h2>
49
7b2413f6 50<form method="post" action="{$platal->ns}member/{$platal->argv[1]}">
0cc4c07d 51 <table cellpadding="0" cellspacing="0" class='tinybicol'>
52 <tr class="pair">
0337d704 53 <td class="titre">
54 Permissions:
55 </td>
56 <td>
57 <select name="is_admin">
58 <option value="0" {if !$user.perms}selected="selected"{/if}>Membre</option>
59 <option value="1" {if $user.perms}selected="selected"{/if}>Administrateur</option>
60 </select>
61 </td>
62 </tr>
63 {if $user.origine neq X}
0cc4c07d 64 <tr class="impair">
0337d704 65 <td class="titre">
06db561e 66 Type d'utilisateur :
67 </td>
68 <td>
69 <select name="origine" onchange="showInformations(this); return true">
70 <option value="ext" {if $user.origine eq "ext"}selected="selected"{/if}>Personne physique</option>
71 <option value="groupe" {if $user.origine eq "groupe"}selected="selected"{/if}>Personne morale</option>
72 </select>
73 </td>
74 </tr>
75 <tr id="prenom" class="impair" {if $user.origine eq "groupe"}style="display: none"{/if}>
76 <td class="titre">
a7de4ef7 77 Prénom :
0337d704 78 </td>
79 <td>
80 <input type="text" value="{$user.prenom}" name="prenom" size="40" />
81 </td>
82 </tr>
0cc4c07d 83 <tr class="impair">
0337d704 84 <td class="titre">
06db561e 85 Nom :
0337d704 86 </td>
87 <td>
88 <input type="text" value="{$user.nom}" name="nom" size="40" />
89 </td>
90 </tr>
06db561e 91 <tr id="sexe" class="impair" {if $user.origine eq "groupe"}style="display: none"{/if}>
0cc4c07d 92 <td class="titre">
06db561e 93 Sexe :
0cc4c07d 94 </td>
95 <td>
96 <select name="sexe">
97 <option value="0"{if $user.sexe eq 0} selected="selected"{/if}>Homme</option>
98 <option value="1"{if $user.sexe eq 1} selected="selected"{/if}>Femme</option>
99 </select>
100 </td>
101 </tr>
102 <tr class="impair">
0337d704 103 <td class="titre">
104 Email:
105 </td>
106 <td>
107 <input type="text" value="{$user.email}" name="email" size="40" />
108 </td>
109 </tr>
110 {/if}
111 </table>
112
113 <h2>Abonnement aux listes</h2>
114
115 <table cellpadding="0" cellspacing="0" class='large'>
116 <tr>
117 <th>&nbsp;</th>
118 <th>Liste</th>
119 <th>Description</th>
120 <th>Nb</th>
121 </tr>
122 {foreach from=$listes item=liste}
123 <tr>
124 <td class='right'>
125 <input type='hidden' name='ml1[{$liste.list}]' value='{$liste.sub}' />
126 <input type='checkbox' name='ml2[{$liste.list}]' {if $liste.sub eq 2}checked="checked"{/if} />
127 </td>
128 <td>
7b2413f6 129 <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a>
0337d704 130 </td>
131 <td>{$liste.desc}</td>
132 <td class='right'>{$liste.nbsub}</td>
133 </tr>
134 {foreachelse}
135 <tr><td colspan='4'>Pas de listes pour ce groupe</td></tr>
136 {/foreach}
137 </table>
138
139 <h2>Abonnement aux alias</h2>
140
141 <table cellpadding="0" cellspacing="0" class='large'>
142 <tr>
143 <th>&nbsp;</th>
144 <th>Alias</th>
145 </tr>
146
147 {foreach from=$alias item=a}
148 <tr>
149 <td align='right'>
150 <input type='hidden' name='ml3[{$a.alias}]' value='{$a.sub}' />
151 <input type='checkbox' name='ml4[{$a.alias}]' {if $a.sub}checked="checked"{/if} />
152 </td>
153 <td>
7b2413f6 154 <a href='{$platal->ns}alias/admin/{$a.alias}'>{$a.alias}</a>
0337d704 155 </td>
156 </tr>
157 {foreachelse}
158 <tr><td colspan='2'>Pas d'alias pour ce groupe</td></tr>
159 {/foreach}
160 </table>
161
162 <div class="center">
163 <br />
164 <input type="submit" name='change' value="Valider ces changements" />
165 &nbsp;
166 <input type="reset" value="Annuler ces changements" />
167 </div>
168
169</form>
170
171
a7de4ef7 172{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}