From d6f22eea7626245e9edde2c5bf49788abc384b5b Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 5 Sep 2004 22:01:11 +0000 Subject: [PATCH] step 1-3 reworked --- templates/inscription/error.tpl | 29 ++++++++++++++++++++++ .../{inscrire.charte.tpl => inscription/index.tpl} | 5 ++-- .../step1.tpl} | 17 +++++-------- .../step2.tpl} | 23 +++++++---------- .../{inscrire.preins.tpl => inscription/step3.tpl} | 4 +-- templates/mails/inscrire.mail.tpl | 6 ++--- 6 files changed, 51 insertions(+), 33 deletions(-) create mode 100644 templates/inscription/error.tpl rename templates/{inscrire.charte.tpl => inscription/index.tpl} (91%) rename templates/{inscrire.form_id.tpl => inscription/step1.tpl} (90%) rename templates/{inscrire.form_data.tpl => inscription/step2.tpl} (86%) rename templates/{inscrire.preins.tpl => inscription/step3.tpl} (94%) diff --git a/templates/inscription/error.tpl b/templates/inscription/error.tpl new file mode 100644 index 0000000..e63212a --- /dev/null +++ b/templates/inscription/error.tpl @@ -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: *} diff --git a/templates/inscrire.charte.tpl b/templates/inscription/index.tpl similarity index 91% rename from templates/inscrire.charte.tpl rename to templates/inscription/index.tpl index 6476a7f..0ef51a9 100644 --- a/templates/inscrire.charte.tpl +++ b/templates/inscription/index.tpl @@ -17,11 +17,11 @@ * 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 $ ***************************************************************************} -
+
Conditions générales
@@ -32,7 +32,6 @@

{include file="docs/charte.tpl"}
-
diff --git a/templates/inscrire.form_id.tpl b/templates/inscription/step1.tpl similarity index 90% rename from templates/inscrire.form_id.tpl rename to templates/inscription/step1.tpl index 29a93f7..0f7250b 100644 --- a/templates/inscrire.form_id.tpl +++ b/templates/inscription/step1.tpl @@ -17,17 +17,13 @@ * 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} -

{$err}

-{/foreach} - -
+

{$erreur|smarty:nodefaults|nl2br}

+ +
Identification
@@ -92,12 +88,11 @@ - - +
- {/dynamic} + {* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/inscrire.form_data.tpl b/templates/inscription/step2.tpl similarity index 86% rename from templates/inscrire.form_data.tpl rename to templates/inscription/step2.tpl index 9db48d0..540f2d3 100644 --- a/templates/inscrire.form_data.tpl +++ b/templates/inscription/step2.tpl @@ -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 $ ***************************************************************************} @@ -29,23 +29,19 @@ {dynamic} -{foreach from=$erreur item=err} -

{$err|smarty:nodefaults}

-{/foreach} +

{$erreur|smarty:nodefaults|nl2br}

-
+ {if $homonyme}

- Tu as un homonyme dans notre base de données, nous ne pouvons donc pas te donner - l'adresse {$loginbis}@polytechnique.org, ton adresse sera - {$mailorg}@polytechnique.org 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 : {$forlife}@polytechnique.org

{else}

- Ton adresse sera :
- {$mailorg}@polytechnique.org + Tu n'as pour le moment aucun homonyme dans notre base de données, nous allons + donc te donner l'adresse {$mailorg}@polytechnique.org, en plus + de ton adresse à vie {$forlife}@polytechnique.org. + Sache que tu peux perdre cette adresse si un homonyme s'inscrit (même si cela reste assez rare).

{/if} @@ -64,7 +60,7 @@ E-mail
- (Premier forward) + (Première redirection) @@ -154,7 +150,6 @@ - diff --git a/templates/inscrire.preins.tpl b/templates/inscription/step3.tpl similarity index 94% rename from templates/inscrire.preins.tpl rename to templates/inscription/step3.tpl index a62f684..e68c7f6 100644 --- a/templates/inscrire.preins.tpl +++ b/templates/inscription/step3.tpl @@ -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}

Les instructions te permettant notamment d'activer ton e-mail -{$mailorg}@polytechnique.org, ainsi que ton mot de passe pour +{$forlife}@polytechnique.org, ainsi que ton mot de passe pour accéder au site viennent de t'être envoyés à l'adresse {$smarty.request.email}.

diff --git a/templates/mails/inscrire.mail.tpl b/templates/mails/inscrire.mail.tpl index a969ba6..6d44c14 100644 --- a/templates/mails/inscrire.mail.tpl +++ b/templates/mails/inscrire.mail.tpl @@ -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. -- 2.1.4