step 1-3 reworked
authorx2000habouzit <x2000habouzit>
Sun, 5 Sep 2004 22:01:11 +0000 (22:01 +0000)
committerx2000habouzit <x2000habouzit>
Sun, 5 Sep 2004 22:01:11 +0000 (22:01 +0000)
templates/inscription/error.tpl [new file with mode: 0644]
templates/inscription/index.tpl [moved from templates/inscrire.charte.tpl with 91% similarity]
templates/inscription/step1.tpl [moved from templates/inscrire.form_id.tpl with 90% similarity]
templates/inscription/step2.tpl [moved from templates/inscrire.form_data.tpl with 86% similarity]
templates/inscription/step3.tpl [moved from templates/inscrire.preins.tpl with 94% similarity]
templates/mails/inscrire.mail.tpl

diff --git a/templates/inscription/error.tpl b/templates/inscription/error.tpl
new file mode 100644 (file)
index 0000000..e63212a
--- /dev/null
@@ -0,0 +1,29 @@
+{***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************
+        $Id: error.tpl,v 1.1 2004-09-05 22:01:11 x2000habouzit Exp $
+ ***************************************************************************}
+
+{dynamic}
+
+{$html|smarty:nodefaults}
+
+{/dynamic}
+
+{* vim:set et sw=2 sts=2 sws=2: *}
similarity index 91%
rename from templates/inscrire.charte.tpl
rename to templates/inscription/index.tpl
index 6476a7f..0ef51a9 100644 (file)
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: inscrire.charte.tpl,v 1.4 2004-08-31 11:25:39 x2000habouzit Exp $
+        $Id: index.tpl,v 1.1 2004-09-05 22:01:11 x2000habouzit Exp $
  ***************************************************************************}
 
 
-<form action="{$smarty.server.REQUEST_URI}" method="post">
+<form action="{"inscription/step1.php"|url}" method="post">
   <div class="rubrique">
     Conditions générales
   </div>
@@ -32,7 +32,6 @@
   </p>
   {include file="docs/charte.tpl"}
   <div class="center">
-    <input type="hidden" value="OUI" name="charte" />
     <input type="submit" value="J'accepte ces conditions" name="submit" />
   </div>
 </form>
similarity index 90%
rename from templates/inscrire.form_id.tpl
rename to templates/inscription/step1.tpl
index 29a93f7..0f7250b 100644 (file)
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: inscrire.form_id.tpl,v 1.5 2004-08-31 11:25:39 x2000habouzit Exp $
+        $Id: step1.tpl,v 1.1 2004-09-05 22:01:11 x2000habouzit Exp $
  ***************************************************************************}
 
-
 {dynamic}
-
-{foreach from=$erreur item=err}
-<p class="erreur">{$err}</p>
-{/foreach}
-
-<form action="{$smarty.server.REQUEST_URI}" method="post">
+<p class='erreur'>{$erreur|smarty:nodefaults|nl2br}</p>
+<form action="{"inscription/step2.php"|url}" method="post" id='idf'>
   <div class="rubrique">
     Identification
   </div>
     </tr>
     <tr>
       <td colspan="2" class="center">
-        <input type="hidden" value="OUI" name="charte" />
-        <input type="submit" value="Continuer l'inscription" name="submit" />
+        <input type="submit" value="Continuer l'inscription" />
       </td>
     </tr>
   </table>
 </form>
-
 {/dynamic}
+
 {* vim:set et sw=2 sts=2 sws=2: *}
similarity index 86%
rename from templates/inscrire.form_data.tpl
rename to templates/inscription/step2.tpl
index 9db48d0..540f2d3 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: inscrire.form_data.tpl,v 1.4 2004-08-31 11:25:39 x2000habouzit Exp $
+        $Id: step2.tpl,v 1.1 2004-09-05 22:01:11 x2000habouzit Exp $
  ***************************************************************************}
 
 
 
 {dynamic}
 
-{foreach from=$erreur item=err}
-<p class="erreur">{$err|smarty:nodefaults}</p>
-{/foreach}
+<p class="erreur">{$erreur|smarty:nodefaults|nl2br}</p>
 
-<form action="{$gotourl|default:$smarty.server.REQUEST_URI}" method="post" name="infos">
+<form action="{$gotourl|default:"step3.php"}" method="post">
   {if $homonyme}
   <p>
-  Tu as un homonyme dans notre base de données, nous ne pouvons donc pas te donner 
-  l'adresse <strong>{$loginbis}@polytechnique.org</strong>, ton adresse sera 
-  <strong>{$mailorg}@polytechnique.org</strong> et l'adresse précédente sera 
-  redirigée vers un auto-reply indiquant l'existence d'homonymes. Sache que tu peux 
-  demander un alias qui te donne une autre adresse de ton choix.
+  Ton adresse sera : <strong>{$forlife}@polytechnique.org</strong>
   </p>
   {else}
   <p>
-  Ton adresse sera :<br/>
-  <strong>{$mailorg}@polytechnique.org</strong>
+  Tu n'as pour le moment aucun homonyme dans notre base de données, nous allons
+  donc te donner l'adresse <strong>{$mailorg}@polytechnique.org</strong>, en plus
+  de ton adresse à vie <strong>{$forlife}@polytechnique.org</strong>.
+  Sache que tu peux perdre cette adresse si un homonyme s'inscrit (même si cela reste assez rare).
   </p>
   {/if}
   
@@ -64,7 +60,7 @@
     <tr>
       <td class="titre">
         E-mail<br />
-        <span class="smaller">(Premier forward)</span>
+        <span class="smaller">(Première redirection)</span>
       </td>
       <td>
         <input type="text" size="35" maxlength="50" name="email" value="{$smarty.request.email}" />
     </tr>
     <tr>
       <td colspan="2" class="center">
-        <input type="hidden" value="OUI" name="charte" />
         <input type="hidden" value="{$smarty.request.nom}" name="nom" />
         <input type="hidden" value="{$smarty.request.prenom}" name="prenom" />
         <input type="hidden" value="{$smarty.request.promo}" name="promo" />
similarity index 94%
rename from templates/inscrire.preins.tpl
rename to templates/inscription/step3.tpl
index a62f684..e68c7f6 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: inscrire.preins.tpl,v 1.3 2004-08-31 11:25:39 x2000habouzit Exp $
+        $Id: step3.tpl,v 1.1 2004-09-05 22:01:11 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -31,7 +31,7 @@ La pr
 {dynamic}
 <p>
 Les instructions te permettant notamment d'activer ton e-mail
-<strong>{$mailorg}@polytechnique.org</strong>, ainsi que ton mot de passe pour
+<strong>{$forlife}@polytechnique.org</strong>, ainsi que ton mot de passe pour
 acc&eacute;der au site viennent de t'être envoyés à l'adresse
 <strong>{$smarty.request.email}</strong>.
 </p>
index a969ba6..6d44c14 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: inscrire.mail.tpl,v 1.2 2004-08-31 11:25:40 x2000habouzit Exp $
+        $Id: inscrire.mail.tpl,v 1.3 2004-09-05 22:01:12 x2000habouzit Exp $
  ***************************************************************************}
 
 {config_load file="mails.conf" section="inscrire"}
@@ -30,12 +30,12 @@ Ton inscription sur Polytechnique.org est presque termin
 
 Après activation, tes paramètres seront :
 
-login        : {$mailorg}
+login        : {$forlife}
 mot de passe : {$pass_clair}
 
 Rends-toi sur la page web suivante afin d'activer ta pré-inscription, et de changer ton mot de passe en quelque chose de plus facile à mémoriser :
 
-{$baseurl}/step4.php?ref={$ins_id}
+{$baseurl}/inscription/step4.php?ref={$ins_id}
 
 Si en cliquant dessus tu n'y arrives pas, copie intégralement l'adresse dans la barre de ton navigateur.