{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
document.getElementById('prenom').style.display = state;
document.getElementById('sexe').style.display = state;
document.getElementById('make_X').style.display = state;
+ document.getElementById('password').style.display = state;
}
function showXInput(box)
</select>
</td>
</tr>
- {if !$user->profile()}
+ {if $user->type eq 'virtual' || $user->type eq 'xnet'}
<tr class="impair">
<td class="titre">
Type d'utilisateur :
</select>
</td>
</tr>
- {/if}
- {if !$user->profile() || !$user->perms}
+ {if !$user->perms}
<tr class="impair">
<td class="titre">
Email :
</td>
</tr>
{/if}
+ {/if}
<tr class="impair">
<td class="titre">
Commentaire :
</td>
</tr>
{if $user->type eq 'xnet'}
+ <tr class="impair" id="password">
+ <td class="titre">Mot de passe :</td>
+ <td>
+ <div style="float: left">
+ <input type="text" name="new_plain_password" size="10" maxlength="256" value="********" />
+ <input type="hidden" name="pwhash" value="" />
+ </div>
+ <div style="float: left; margin-top: 5px;">
+ {checkpasswd prompt="new_plain_password" submit="dummy_none"}
+ </div>
+ {if !$onlyGroup}
+ <div style="clear: both">
+ <small class="error">
+ Attention, cet utilisateur est inscrit à d'autres groupes, changer son mot de passe modifiera aussi ses accès aux autres groupes.
+ </small>
+ </div>
+ {/if}
+ </td>
+ </tr>
<tr id="make_X">
<td colspan="2">
<span id="make_X_cb">
<div class="center">
<br />
- <input type="submit" name='change' value="Valider ces changements" />
+ <input type="submit" name='change' value="Valider ces changements" onclick="return hashResponse('new_plain_password', false, false);" />
<input type="reset" value="Annuler ces changements" />
</div>