{**************************************************************************}
{* *}
-{* 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 *}
<form method="post" action="{$platal->ns}member/{$platal->argv[1]}">
{xsrf_token_field}
<table cellpadding="0" cellspacing="0" class='tinybicol'>
+ {if hasPerm('admin')}
+ <tr class="pair">
+ <td class="titre">
+ Identifiant unique :
+ </td>
+ <td>
+ {$user->hruid}
+ <a href="https://www.polytechnique.org/admin/user/{$user->hruid}">{icon name="user_edit" title="Administer"}</a>
+ </td>
+ </tr>
+ {/if}
<tr class="pair">
<td class="titre">
Permissions :
</select>
</td>
</tr>
- {if !$user->profile()}
+ <tr class="pair">
+ <td class="titre">
+ Poste :
+ </td>
+ <td>
+ <select name="group_position">
+ <option value=""{if $user->group_position eq ''} selected="selected"{/if}></option>
+ {foreach from=$positions item=position}
+ <option value="{$position}"{if $user->group_position eq $position} selected="selected"{/if}>{$position}</option>
+ {/foreach}
+ </select>
+ </td>
+ </tr>
+ {if $user->type eq 'virtual' || $user->type eq 'xnet'}
<tr class="impair">
<td class="titre">
Type d'utilisateur :
</td>
<td>
- <select name="type" onchange="showInformations(this); return true"{if $user->profile()} disabled="disabled"{/if}>
+ <select name="type" onchange="showInformations(this); return true">
<option value="xnet" {if $user->type neq 'virtual'}selected="selected"{/if}>Personne physique</option>
<option value="virtual" {if $user->type eq "virtual"}selected="selected"{/if}>Personne morale</option>
</select>
Nom affiché :
</td>
<td>
- <input type="text" value="{$user->displayName()}" name="display_name" size="40"{if $user->profile()} disabled="disabled"{/if} />
+ <input type="text" value="{$user->displayName()}" name="display_name" size="40" />
</td>
</tr>
<tr class="impair">
Nom complet :
</td>
<td>
- <input type="text" value="{$user->fullName()}" name="full_name" size="40"{if $user->profile()} disabled="disabled"{/if} />
+ <input type="text" value="{$user->fullName()}" name="full_name" size="40" />
+ </td>
+ </tr>
+ <tr class="impair">
+ <td class="titre">
+ Nom annuaire :
+ </td>
+ <td>
+ <input type="text" value="{$user->directoryName()}" name="directory_name" size="40" />
</td>
</tr>
<tr id="sexe" class="impair" {if $user->type eq "virtual"}style="display: none"{/if}>
Sexe :
</td>
<td>
- <select name="sex"{if $user->profile()} disabled="disabled"{/if}>
+ <select name="sex">
<option value="male"{if !$user->isFemale()} selected="selected"{/if}>Homme</option>
<option value="female"{if $user->isFemale()} selected="selected"{/if}>Femme</option>
</select>
</td>
</tr>
+ {if !$user->perms}
<tr class="impair">
<td class="titre">
Email :
</td>
<td>
- <input type="text" value="{$user->forlifeEmail()}" name="email" size="40"{if $user->profile()} disabled="disabled"{/if} />
+ <input type="text" value="{$user->forlifeEmail()}" name="email" size="40" />
</td>
</tr>
{/if}
+ {/if}
<tr class="impair">
<td class="titre">
Commentaire :
<input type="submit" name='change' value="Valider ces changements" />
<input type="reset" value="Annuler ces changements" />
- </div>
+ </div>
</form>