Merge branch 'xorg/maint' into xorg/master
[platal.git] / templates / register / step2.tpl
index a460a37..308ca9c 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 
 <form action="register" method="post">
   <table class="bicol" summary="Identification" cellpadding="3">
-    {if $smarty.session.sub_state.promo >= 1996}
-    {assign var="promo" value=$smarty.session.sub_state.promo}
+    {if t($smarty.session.subState.schoolid)}
     <tr>
-      <th colspan="2">matricule</th>
+      <th colspan="2">Matricule</th>
     </tr>
     <tr>
       <td class="titre">
-        Matricule :
+        Matricule École&nbsp;:
       </td>
       <td>
-        <input type="text" size="6" maxlength="6" name="mat" 
-          value="{$smarty.request.matricule|default:$smarty.session.sub_state.mat}" />
+        <input type="text" size="6" maxlength="6" name="schoolid"
+          value="{$smarty.request.schoolid|default:$smarty.session.subState.schoolid}" />
       </td>
     </tr>
     <tr class="pair">
       <td></td>
       <td>
-        6 chiffres terminant par le numéro d'entrée (ex: 
-        {if $promo < 2000}
-        {math equation="promo % 100" promo=$promo}0532)<br />
-        {else}
-        {math equation="(promo % 100) + 100" promo=$promo}532)<br />
-        {/if}
-        Voir sur le GU ou un bulletin de solde pour trouver cette information<br /><br />
-        Pour les élèves étrangers voie 2, il est du type :
-        {if $promo < 1999}
-        {math equation="(promo + 1) % 100" promo=$promo}0XXX
-        {else}
-        {math equation="((promo + 1) % 100) + 100" promo=$promo}XXX
-        {/if}
+        6 chiffres terminant par le numéro d'entrée (ex&nbsp;: {$smarty.session.subState.schoolid_exemple}).
+        Voir sur le GU ou un bulletin de solde pour trouver cette information.<br /><br />
+        Pour les élèves étrangers voie 2, il peut être aussi du type&nbsp;: {$smarty.session.subState.schoolid_exemple_ev2}.
       </td>
     </tr>
     {/if}
       </th>
     </tr>
     <tr>
-      <td class="titre"> 
+      <td class="titre">
         Nom <span class="smaller">(à l'X)</span>
       </td>
       <td>
-        <input type="text" size="20" maxlength="30" name="nom" value="{$smarty.request.nom}" />
+        <input type="text" size="20" maxlength="30" name="lastname" value="{$smarty.request.lastname}" />
       </td>
     </tr>
     <tr>
@@ -81,7 +70,7 @@
         Prénom
       </td>
       <td>
-        <input type="text" size="15" maxlength="20" name="prenom" value="{$smarty.request.prenom}" />
+        <input type="text" size="15" maxlength="20" name="firstname" value="{$smarty.request.firstname}" />
       </td>
     </tr>
     <tr>
@@ -89,7 +78,7 @@
         Promotion
       </td>
       <td>
-        <input type="text" size="4" readonly="readonly" value="{$smarty.session.sub_state.promo}" />
+        <input type="text" size="4" readonly="readonly" value="{$smarty.session.subState.promo}" />
       </td>
     </tr>
     <tr>