Fix AX ID updating in admin/add_accounts page
[platal.git] / templates / admin / add_accounts.tpl
index 44323cf..d72ec79 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 
 <h1>Mise à jour de l'annuaire</h1>
 
-{if !$add_type}
+{if t($newAccounts)}
+<p>
+  Les comptes suivants ont été ajoutés&nbsp;:
+  <ul>
+  {foreach from=$newAccounts key=hruid item=name}
+    <li><a href="{$platal->ns}admin/user/{$hruid}">{$name}</a></li>
+  {/foreach}
+  </ul>
+</p>
+{/if}
+
+{if !t($add_type)}
 <form action="{$platal->pl_self()}" method="post">
 <table class="tinybicol">
   <tr>
 
 {else}
 <form action="{$platal->pl_self()}" method="post">
-<input type="hidden" name="add_type" value="{$add_type}" />
-<table class="tinybicol">
+<table class="tinybicol" style="margin-bottom: 1em">
   <tr>
     <td class="center">
       <strong>Promotion&nbsp;:</strong>
       <input type="text" name="promotion" size="4" maxlength="4" />
+      <input type="hidden" name="add_type" value="{$add_type}" />
     </td>
   </tr>
 {if $add_type eq 'promo'}
     </td>
   </tr>
 </table>
-<br />
 <table class="bicol">
   <tr>
     <td>Nom</td>
     <td>Prénom</td>
-    <td>Date de naissance</td>
+    <td>Date de naissance (JJ/MM/AAAA)</td>
     <td>Sexe (F/M)</td>
     <td>Matricule École</td>
     <td>Matricule AX</td>
 <br />
 <table class="bicol">
   <tr>
-    <td>Nom</td>
-    <td>Prénom</td>
+    <td>Nom Prénom ou Identifiant (hrid)</td>
     <td>Matricule AX</td>
   </tr>
   <tr>
-    <td colspan="4"><textarea name="people" rows="20" cols="80"></textarea></td>
+    <td colspan="2"><textarea name="people" rows="20" cols="80"></textarea></td>
   </tr>
 </table>
 {/if}
 </form>
 {/if}
 
-{* vim:set et sws=2 sts=2 sw=2 enc=utf-8: *}
+{* vim:set et sws=2 sts=2 sw=2 fenc=utf-8: *}