Add mailing list headers to newsletters
[platal.git] / templates / xnetgrp / inscrire.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2013 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 t($user) && $is_admin && $show_form}
26
27 <h2>
28   Demande de la part de&nbsp;: <a href="profile/{$user->login()}" class="popup2">{$user->fullName()} ({$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)&nbsp;:</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&nbsp;!</strong> Tu seras averti{if $smarty.session.user->gender}e{/if} 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 [&nbsp;M'inscrire&nbsp;!&nbsp;].
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&nbsp;:
81   </p>
82   <p>
83 <textarea cols="80" rows="12" name="message">Chers Camarades,
84
85 Je souhaite m'inscrire à {$asso->nom}.
86
87 Merci d'avance d'avoir la gentillesse de valider mon inscription.
88
89 Bien cordialement,
90 {$smarty.session.user->fullname("promo")}
91 {if $smarty.session.user->hasProfile()}
92
93 --
94 Ma fiche sur Polytechnique.org&nbsp;:
95 https://www.polytechnique.org/profile/{$smarty.session.user->hruid}{/if}</textarea>
96   </p>
97   <div class="center">
98     <input type="submit" name="inscrire" value="M'inscrire !" />
99   </div>
100 </form>
101
102 {/if}
103
104 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}