Grey submit button on send mail page after click.
[platal.git] / templates / admin / deces_promo.tpl
index 25aeb75..e1e0bd4 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-
-
-{foreach from=$new_deces item=i}
-<p class="erreur">Ajout du décès de {$i.name} le {$i.date}.</p>
-{/foreach}
-
 <form action="admin/deaths" method="post">
-  <table class="tinybicol">
+  <table class="bicol">
     <tr>
       <td>
-        <input type="submit" value="GO" style="visibility: hidden" />
-        <input type="submit" value="&lt;&lt;" name="sub10" />
-      </td>
-      <td><input type="submit" value="&lt;"  name="sub01" /></td>
-      <td>
         Promotion&nbsp;:
-        <input type="text" name="promo" value="{$promo}" size="4" maxlength="4" />
-        <input type="submit" value="GO" />
-      </td>
-      <td><input type="submit" value="&gt;"  name="add01" /></td>
-      <td>
-        <input type="submit" value="&gt;&gt;" name="add10" />
-        <input type="submit" value="GO" style="visibility: hidden" />
+        <input type="text" name="promo" value="{$promo}" size="5" maxlength="5" />
+        <input type="submit" value="Afficher" />
       </td>
     </tr>
   </table>
 </form>
 
-<form action="admin/deaths/{$promo}/validate" method="post">
+{if t($profileList)}
+<form action="admin/deaths/{$promo}/validate" id="deathDateList" method="post">
+  {xsrf_token_field}
   <table class="bicol" summary="liste des dates de décès">
     <tr>
       <th>Nom</th>
       <th>Date de décès</th>
     </tr>
-    {iterate item=x from=$decedes}
+    {iterate item=profile from=$profileList}
     <tr class="{cycle values="impair,pair"}">
-      <td>{$x.nom} {$x.prenom}</td>
+      <td>{$profile.directory_name}</td>
       <td class="center">
-        <input type="text" name="{$x.matricule}" value="{$x.deces}" size="10" maxlength="10" />
+        <input type="text" name="death_{$profile.pid}" value="{$profile.deathdate}" size="10" maxlength="10" />
       </td>
     </tr>
     {/iterate}
@@ -69,5 +55,6 @@
     </tr>
   </table>
 </form>
+{/if}
 
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}