Happy New Year!
[platal.git] / templates / xnetgrp / inscrire.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5e1513f6 3{* Copyright (C) 2003-2011 Polytechnique.org *}
0337d704 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
34ade5a6 23<h1>Demande d'inscription à {$asso->nom}</h1>
0337d704 24
0fab5209 25{if $user && $is_admin && $show_form}
0337d704 26
27<h2>
f1d3a335 28 Demande de la part de&nbsp;: <a href="profile/{$user->login()}" class="popup2">{$user->fullName()} ({$user->promo()})</a>
0337d704 29</h2>
4af7fd22
FB
30
31{if $reason}
32<fieldset>
33 <legend>Motif de la demande</legend>
34 {$reason|nl2br}
35</fieldset>
36{/if}
37
0fab5209 38<form action="{$platal->ns}subscribe/{$user->login()}" method="post">
e7fdf9dd 39 {xsrf_token_field}
4af7fd22
FB
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>
0337d704 56</form>
57
4af7fd22
FB
58<div><a href="{$platal->ns}/subscribe/valid">Revenir à la liste des validations en attente</a></div>
59
0337d704 60{elseif $smarty.post.inscrire}
61
62<p class="descr">
2ab3486b 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.
0337d704 64<p>
34ade5a6 65<p class="descr">[<a href="{$platal->ns}">Retour à la page d'accueil de {$asso->nom}</a>]</p>
0337d704 66
67{else}
68
69<p class="descr">
34ade5a6 70Pour t'inscrire à {$asso->nom}, il te faut en demander l'autorisation aux animateurs du groupe via le
a7de4ef7 71formulaire ci-dessous. Vérifie et corrige au besoin les différents champs, puis clique sur
77af6562 72[&nbsp;M'inscrire&nbsp;!&nbsp;].
0337d704 73</p>
7b2413f6 74<form action="{$platal->ns}subscribe" method="post">
e7fdf9dd 75 {xsrf_token_field}
0337d704 76 <p class="descr">
34ade5a6 77 <strong>OUI, je souhaite être inscrit au groupe {$asso->nom}.</strong>
0337d704 78 </p>
79 <p class="descr">
e8439508 80 Indique ci-après <strong>tes motivations</strong> qui seront communiquées aux animateurs du groupe&nbsp;:
0337d704 81 </p> <textarea cols=80 rows=12 name="message">
82Chers Camarades,
83
34ade5a6 84Je souhaite m'inscrire à {$asso->nom}.
0337d704 85
86Merci d'avance d'avoir la gentillesse de valider mon inscription.
87
88Bien cordialement,
e9d30b93 89{assign var="profile" value=$smarty.session.user->profile()}
c019e01c 90{$profile->fullname("promo")}
0337d704 91
92--
e8439508 93Ma fiche sur Polytechnique.org&nbsp;:
c019e01c 94https://www.polytechnique.org/profile/{$profile->hrpid}
0337d704 95</textarea>
96 <div class="center">
97 <input type="submit" name="inscrire" value="M'inscrire !" />
0337d704 98 </div>
99</form>
100
101{/if}
102
a7de4ef7 103{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}