{**************************************************************************}
<script type="text/javascript">
- {literal}
- function showInformations(box)
- {
- var state = (box.value == 'ext') ? '' : 'none';
- document.getElementById('prenom').style.display = state;
- document.getElementById('sexe').style.display = state;
- }
- {/literal}
+{literal}
+ function showInformations(box)
+ {
+ var state = (box.value == 'ext') ? '' : 'none';
+ document.getElementById('prenom').style.display = state;
+ document.getElementById('sexe').style.display = state;
+ document.getElementById('make_X').style.display = state;
+ }
+
+ function showXInput(box)
+ {
+ if (box.checked) {
+ document.getElementById('make_X_cb').style.display = 'none';
+ document.getElementById('make_X_login').style.display = '';
+ }
+ }
+{/literal}
</script>
-<h1>{$asso.nom} : gestion des membres</h1>
+<h1>{$asso.nom} : gestion des membres</h1>
<p>
[<a href='{$platal->ns}annuaire'>Retour à l'annuaire</a>]
{if $user.origine neq X}
<tr class="impair">
<td class="titre">
- Type d'utilisateur :
+ Type d'utilisateur :
</td>
<td>
<select name="origine" onchange="showInformations(this); return true">
</tr>
<tr id="prenom" class="impair" {if $user.origine eq "groupe"}style="display: none"{/if}>
<td class="titre">
- Prénom :
+ Prénom :
</td>
<td>
<input type="text" value="{$user.prenom}" name="prenom" size="40" />
</tr>
<tr class="impair">
<td class="titre">
- Nom :
+ Nom :
</td>
<td>
<input type="text" value="{$user.nom}" name="nom" size="40" />
</tr>
<tr id="sexe" class="impair" {if $user.origine eq "groupe"}style="display: none"{/if}>
<td class="titre">
- Sexe :
+ Sexe :
</td>
<td>
<select name="sexe">
<input type="text" value="{$user.email}" name="email" size="40" />
</td>
</tr>
+ <tr id="make_X" {if $user.origine eq "groupe"}style="display: none"{/if}>
+ <td colspan="2">
+ <span id="make_X_cb">
+ <input type="checkbox" name="is_x" id="is_x" onclick="showXInput(this);" onchange="showXInput(this);" />
+ <label for="is_x">coche cette case si il s'agit d'un X</label>
+ </span>
+ <span id="make_X_login" style="display: none">
+ <span class="titre">Identifiant (prenom.nom.promo) :</span>
+ <input type="text" name="login_X" value="" />
+ </span>
+ </td>
+ </tr>
{/if}
</table>
<td>
<a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a>
</td>
- <td>{$liste.desc}</td>
+ <td>{$liste.desc|smarty:nodefaults}</td>
<td class='right'>{$liste.nbsub}</td>
</tr>
{foreachelse}