Changes thoroughly education's implementation : allows multiple education, adds data...
[platal.git] / templates / profile / general.tpl
index 90c9356..f3bddc0 100644 (file)
       <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
     </td>
   </tr>
-  <tr class="pair">
+  <tr>
     <td>
-      <span class="titre">Application</span><br />
-      <span class="comm">(4e année de l'X)</span>
+      <span class="titre">Formation</span>
     </td>
-    <td>
-      <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">
-        {applis_options selected=$appli1.id}
-      </select>
-      <br />
-      <input type="hidden" name="appli1_tmp" value="{$appli1.type}" />
-      <select name="appli1[type]">
-        <option value=""></option>
-      </select>
+    <td></td>
+  </tr>
+  {foreach from=$edus key=eduid item=edu}
+  <tr>
+    <td colspan="2">
+      <div id="edu_{$eduid}">
+        {include file="profile/edu.tpl" eduid="$eduid" edu="$edu" edu_fields=$edu_fields}
+      </div>
     </td>
   </tr>
-  <tr class="pair">
-    <td>
-      <span class="titre">Post-application</span>
+  {/foreach}
+  {if $edus|@count eq 0}
+  <tr>
+    <td colspan="2">
+      <div id="edu_0">
+        {include file="profile/edu.tpl" eduid=0 edu=0}
+      </div>
     </td>
-    <td>
-      <select name="appli2[id]" onchange="fillType(this.form['appli2[type]'], this.selectedIndex-1);">
-        {applis_options selected=$appli2.id}
-      </select>
-      <br />
-      <input type="hidden" name="appli2_tmp" value="{$appli2.type}" />
-      <select name="appli2[type]">
-        <option value=""></option>
-      </select>
+  </tr>
+  {/if}
+  <tr>
+    <td colspan="2">
+      <div id="edu_add" class="center" style="clear: both; padding-top: 4px;">
+        <a href="javascript:addEdu();">
+          {icon name=add title="Ajouter une formation"} Ajouter une formation
+        </a>
+      </div>
     </td>
   </tr>
-  <tr class="pair">
+  <tr class="impair">
     <td class="center" colspan="2">
       <small>Si ta formation ne figure pas dans la liste,
       <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>