| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2009 Polytechnique.org *} |
| 4 | {* http://opensource.polytechnique.org/ *} |
| 5 | {* *} |
| 6 | {* This program is free software; you can redistribute it and/or modify *} |
| 7 | {* it under the terms of the GNU General Public License as published by *} |
| 8 | {* the Free Software Foundation; either version 2 of the License, or *} |
| 9 | {* (at your option) any later version. *} |
| 10 | {* *} |
| 11 | {* This program is distributed in the hope that it will be useful, *} |
| 12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} |
| 13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} |
| 14 | {* GNU General Public License for more details. *} |
| 15 | {* *} |
| 16 | {* You should have received a copy of the GNU General Public License *} |
| 17 | {* along with this program; if not, write to the Free Software *} |
| 18 | {* Foundation, Inc., *} |
| 19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} |
| 20 | {* *} |
| 21 | {**************************************************************************} |
| 22 | |
| 23 | <h1>Demande d'inscription à {$asso->nom}</h1> |
| 24 | |
| 25 | {if $user && $is_admin && $show_form} |
| 26 | |
| 27 | <h2> |
| 28 | Demande de la part de : <a href="profile/{$user->login()}" class="popup2">{$user->fullName()} (X{$user->promo()})</a> |
| 29 | </h2> |
| 30 | |
| 31 | {if $reason} |
| 32 | <fieldset> |
| 33 | <legend>Motif de la demande</legend> |
| 34 | {$reason|nl2br} |
| 35 | </fieldset> |
| 36 | {/if} |
| 37 | |
| 38 | <form action="{$platal->ns}subscribe/{$user->login()}" method="post"> |
| 39 | {xsrf_token_field} |
| 40 | <table class="bicol"> |
| 41 | <tr> |
| 42 | <td>Raison (en cas de refus) :</td> |
| 43 | </tr> |
| 44 | <tr> |
| 45 | <td> |
| 46 | <textarea cols="70" rows="8" name="motif"></textarea> |
| 47 | </td> |
| 48 | </tr> |
| 49 | <tr> |
| 50 | <td class="center"> |
| 51 | <input type="submit" value="Accepter" name="accept" /> |
| 52 | <input type="submit" value="Refuser" name="refuse" /> |
| 53 | </td> |
| 54 | </tr> |
| 55 | </table> |
| 56 | </form> |
| 57 | |
| 58 | <div><a href="{$platal->ns}/subscribe/valid">Revenir à la liste des validations en attente</a></div> |
| 59 | |
| 60 | {elseif $smarty.post.inscrire} |
| 61 | |
| 62 | <p class="descr"> |
| 63 | <strong>Ta demande d'inscription a bien été envoyée !</strong> Tu seras averti par email de la suite qui lui sera donnée. |
| 64 | <p> |
| 65 | <p class="descr">[<a href="{$platal->ns}">Retour à la page d'accueil de {$asso->nom}</a>]</p> |
| 66 | |
| 67 | {else} |
| 68 | |
| 69 | <p class="descr"> |
| 70 | Pour t'inscrire à {$asso->nom}, il te faut en demander l'autorisation aux animateurs du groupe via le |
| 71 | formulaire ci-dessous. Vérifie et corrige au besoin les différents champs, puis clique sur |
| 72 | [ M'inscrire ! ]. |
| 73 | </p> |
| 74 | <form action="{$platal->ns}subscribe" method="post"> |
| 75 | {xsrf_token_field} |
| 76 | <p class="descr"> |
| 77 | <strong>OUI, je souhaite être inscrit au groupe {$asso->nom}.</strong> |
| 78 | </p> |
| 79 | <p class="descr"> |
| 80 | Indique ci-après <strong>tes motivations</strong> qui seront communiquées aux animateurs du groupe : |
| 81 | </p> <textarea cols=80 rows=12 name="message"> |
| 82 | Chers Camarades, |
| 83 | |
| 84 | Je souhaite m'inscrire à {$asso->nom}. |
| 85 | |
| 86 | Merci d'avance d'avoir la gentillesse de valider mon inscription. |
| 87 | |
| 88 | Bien cordialement, |
| 89 | {$smarty.session.prenom} {$smarty.session.nom} (X{$smarty.session.promo}) |
| 90 | |
| 91 | -- |
| 92 | Ma fiche sur Polytechnique.org : |
| 93 | https://www.polytechnique.org/profile/{$smarty.session.hruid} |
| 94 | </textarea> |
| 95 | <div class="center"> |
| 96 | <input type="submit" name="inscrire" value="M'inscrire !" /> |
| 97 | |
| 98 | <input type="reset" value="Annuler" /> |
| 99 | </div> |
| 100 | </form> |
| 101 | |
| 102 | {/if} |
| 103 | |
| 104 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |