Merge remote branch 'origin/platal-1.0.0'
[platal.git] / templates / admin / deces_promo.tpl
index 64dee3a..cf5a6c1 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -20,8 +20,6 @@
 {*                                                                        *}
 {**************************************************************************}
 
-
-
 <form action="admin/deaths" method="post">
   <table class="bicol">
     <tr>
@@ -46,7 +44,7 @@
     <tr class="{cycle values="impair,pair"}">
       <td>{$x.directory_name}</td>
       <td class="center">
-        <input type="text" class="deathDate" name="{$x.hrpid}" value="{$x.deathdate}" size="10" maxlength="10" />
+        <input type="text" class="deathDate" name="death_{$x.pid}" value="{$x.deathdate}" size="10" maxlength="10" />
       </td>
     </tr>
     {/iterate}
 
 <script type="text/javascript">//<![CDATA[
   {literal}
-  $('input.deathDate').change(
-    function ()
-    {
-      $(this).addClass('sendDate');
-    });
+  $('input.deathDate').change(function () {
+    $(this).addClass('sendDate');
+  });
   
-  $('#deathDateList').submit(
-    function ()
-    {
-      // Avoid sending useless data to the webserver
-      $('input.deathDate').not('.sendDate').attr('disabled', true);
-    });
+  $('#deathDateList').submit(function () {
+    // Avoid sending useless data to the webserver
+    $('input.deathDate').not('.sendDate').attr('disabled', true);
+  });
   {/literal}
 //]]></script>
 {/if}