Adapts Xorg MLs and aliases handling to new mail chain.
[platal.git] / templates / xnetgrp / membres-edit.tpl
index ea1050d..92a3833 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  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  *}
         </select>
       </td>
     </tr>
-    {if !$user->profile()}
+    <tr class="pair">
+      <td class="titre">
+        Poste&nbsp;:
+      </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&nbsp;:
         </select>
       </td>
     </tr>
-    {/if}
-    {if !$user->profile() || !$user->perms}
+    {if !$user->perms}
     <tr class="impair">
       <td class="titre">
         Email&nbsp;:
       </td>
     </tr>
     {/if}
+    {/if}
     <tr class="impair">
       <td class="titre">
         Commentaire&nbsp;: