Allows empty grad years (Closes #1155).
[platal.git] / templates / profile / general.edu.tpl
index b2307da..51ff4c7 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -26,7 +26,7 @@
     <a href="javascript:removeEdu('{$eduid}')">
       {icon name=cross title="Supprimer cette formation"}
     </a>
-    <select name="{$eduname}[eduid]" onchange="fillType(this.form['{$eduname}[degreeid]'], this.selectedIndex - 1);">
+    <select name="{$eduname}[eduid]" onchange="prepareType('{$eduid}')">
       {education_options selected=$edu.eduid}
     </select>
   </td>
@@ -38,7 +38,7 @@
   <td>
     <input type="hidden" name="edu_{$eduid}_tmp" value="{$edu.degreeid}" />
     <select name="{$eduname}[degreeid]">
-      <option value=""></option>
+      <option value="">&nbsp;</option>
     </select>
   </td>
 </tr>
@@ -59,7 +59,7 @@
     <span class="titre">Année d'obtention du diplôme&nbsp;:</span>
   </td>
   <td>
-    <input type="text" {if $edu.error}class="error"{/if} name="{$eduname}[grad_year]"
+    <input type="text" {if $edu.warning}class="warning"{/if} name="{$eduname}[grad_year]"
     value="{$edu.grad_year}" size="4" maxlength="4" />
     <small>(par exemple&nbsp;: 2008)</small>
   </td>