Homogenize the code of the pages of the groups
[platal.git] / templates / xnet / groupe / inscrire.tpl
index a57bd11..a881578 100644 (file)
 
 <h1>Demande d'inscription à {$asso.nom}</h1>
 
-{if $smarty.request.u && $admin && $show_form}
+{if $u && $is_admin && $show_form}
 
 <h2>
   Demande de la part de : {$prenom} {$nom} (X{$promo})
-  <a href="https://www.polytechnique.org/fiche.php?user={$smarty.request.u}">Voir sa fiche</a>
+  <a href="https://www.polytechnique.org/profile/{$u}">Voir sa fiche</a>
 </h2>
-<form action="{$smarty.server.PHP_SELF}" method="post">
-  <input type="hidden" name="u" value="{$smarty.request.u}" />
+<form action="{$platal->ns}subscribe/{$u}" method="post">
   <input type="submit" value="Accepter" name="accept" />
   <br />
   ou bien
@@ -44,7 +43,7 @@
 <p class="descr">
 <strong>Ta demande d'inscription a bien été envoyée !</strong> Tu seras averti par email de la suite qui lui sera donnée.
 <p>
-<p class="descr">[<a href="asso.php">Retour à la page d'accueil de {$asso.nom}</a>]</p>
+<p class="descr">[<a href="{$platal->ns}">Retour à la page d'accueil de {$asso.nom}</a>]</p>
 
 {else}
 
@@ -53,7 +52,7 @@ Pour t'inscrire 
 formulaire ci-dessous. Vérifie et corrige au besoin les différents champs, puis clique sur
 [&nbsp;m'inscrire&nbsp;]
 </p>
-<form action="{$smarty.server.PHP_SELF}" method="post">
+<form action="{$platal->ns}subscribe" method="post">
   <p class="descr">
   <strong>OUI, je souhaite être inscrit au groupe {$asso.nom}</strong>
   </p>
@@ -71,7 +70,7 @@ Bien cordialement,
 
 --
 Ma fiche sur Polytechnique.org :
-https://www.polytechnique.org/fiche.php?user={$smarty.session.forlife}
+https://www.polytechnique.org/profile/{$smarty.session.forlife}
 </textarea>
   <div class="center">
     <input type="submit" name="inscrire" value="M'inscrire !" />