0d0787d899ebd10a07396e6eef7e455a1a8b605b
[platal.git] / templates / xnetgrp / inscrire.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 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 $u && $is_admin && $show_form}
26
27 <h2>
28   Demande de la part de&nbsp;: <a href="profile/{$u}" class="popup2">{$prenom} {$nom} (X{$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/{$u}" method="post">
39   <table class="bicol">
40     <tr>
41       <td>Raison (en cas de refus)&nbsp;:</td>
42     </tr>
43     <tr>
44       <td>
45         <textarea cols="70" rows="8" name="motif"></textarea>
46       </td>
47     </tr>
48     <tr>
49       <td class="center">
50         <input type="submit" value="Accepter" name="accept" />
51         <input type="submit" value="Refuser" name="refuse" />
52       </td>
53     </tr>
54   </table>
55 </form>
56
57 <div><a href="{$platal->ns}/subscribe/valid">Revenir à la liste des validations en attente</a></div>
58
59 {elseif $smarty.post.inscrire}
60
61 <p class="descr">
62 <strong>Ta demande d'inscription a bien été envoyée !</strong> Tu seras averti par email de la suite qui lui sera donnée.
63 <p>
64 <p class="descr">[<a href="{$platal->ns}">Retour à la page d'accueil de {$asso.nom}</a>]</p>
65
66 {else}
67
68 <p class="descr">
69 Pour t'inscrire à {$asso.nom}, il te faut en demander l'autorisation aux animateurs du groupe via le
70 formulaire ci-dessous. Vérifie et corrige au besoin les différents champs, puis clique sur
71 [&nbsp;M'inscrire&nbsp;!&nbsp;].
72 </p>
73 <form action="{$platal->ns}subscribe" method="post">
74   <p class="descr">
75   <strong>OUI, je souhaite être inscrit au groupe {$asso.nom}.</strong>
76   </p>
77   <p class="descr">
78   Indique ci-après <strong>tes motivations</strong> qui seront communiquées aux animateurs du groupe&nbsp;:
79   </p> <textarea cols=80 rows=12 name="message">
80 Chers Camarades,
81
82 Je souhaite m'inscrire à {$asso.nom}.
83
84 Merci d'avance d'avoir la gentillesse de valider mon inscription.
85
86 Bien cordialement,
87 {$smarty.session.prenom} {$smarty.session.nom} (X{$smarty.session.promo})
88
89 --
90 Ma fiche sur Polytechnique.org&nbsp;:
91 https://www.polytechnique.org/profile/{$smarty.session.forlife}
92 </textarea>
93   <div class="center">
94     <input type="submit" name="inscrire" value="M'inscrire !" />
95     &nbsp;
96     <input type="reset" value="Annuler" />
97   </div>
98 </form>
99
100 {/if}
101
102 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}