Merge remote branch 'origin/xorg/maint' into xorg/master
[platal.git] / templates / admin / accounts.tpl
index 5488d05..fece962 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  *}
@@ -47,6 +47,7 @@ function add_user_to_url(f) {
   </form>
 </fieldset>
 
+{if $users->total() > 0}
 <fieldset>
   <legend>Liste des comptes manuels</legend>
 
@@ -58,29 +59,46 @@ function add_user_to_url(f) {
     {/iterate}
   </ul>
 </fieldset>
+{/if}
 
 <fieldset>
   <legend>Nouveau compte</legend>
 
   <ul>
     <li><a href="admin/add_accounts">Ajout d'un ensemble d'utilisateurs</a></li>
-    <li>Ajouter une secrétaire de l'AX:</li>
+    <li>Ajouter un compte manuel :</li>
   </ul>
   <p>
     <form action="admin/accounts" method="post">
       {xsrf_token_field}
       <table style="width: 75%; margin-left: auto; margin-right: auto">
         <tr>
+          <td class="titre">Type de compte</td>
+          <td>
+            <select name="type">
+              <option value="ax">Personnel de l'AX</option>
+              <option value="fx">Personnel de la FX</option>
+              <option value="school">Personnel de l'Ecole</option>
+            </select>
+            <a href="admin/account/types">Détail des permissions associées</a>
+          </td>
+        </tr>
+        <tr>
           <td class="titre">Nom</td>
-          <td><input type="text" name="firstname" size=60 maxlength="255" value="" /></td>
+          <td><input type="text" name="lastname" size=60 maxlength="255" value="" /></td>
         </tr>
         <tr>
           <td class="titre">Prénom</td>
-          <td><input type="text" name="lastname" size=60" maxlength="255" value="" /></td>
+          <td><input type="text" name="firstname" size=60" maxlength="255" value="" /></td>
         </tr>
         <tr>
           <td class="titre">Sexe</td>
-          <td><input type="checkbox" name="sex" checked="checked" /></td>
+          <td>
+            <select name="sex">
+              <option value="female">Femme</option>
+              <option value="male">Homme</option>
+            </select>
+          </td>
         </tr>
         <tr>
           <td class="titre">Email</td>