a3df7d5951b52c6dcb84ed9ffbf3bf997415cceb
[platal.git] / templates / xnetevents / subscribe.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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>{$asso.nom} : Evénement {$event.intitule}</h1>
24
25 {if $updated}
26 <p class='error'>
27   La modification de l'inscription a été prise en compte !
28 </p>
29 {/if}
30
31 <p>
32   [<a href="{$platal->ns}events">Revenir à la liste des événements</a>]
33 </p>
34
35 <p class='descr'>
36   Cet événement a lieu 
37   <strong>
38   {if $event.fin and $event.fin neq $event.debut}
39     {if $event.debut_day eq $event.fin_day}
40       le {$event.debut|date_format:"%d %B %Y"} de {$event.debut|date_format:"%H:%M"} à {$event.fin|date_format:"%H:%M"}
41     {else}
42       du {$event.debut|date_format:"%d %B %Y à %H:%M"}<br />
43       au {$event.fin|date_format:"%d %B %Y à %H:%M"}
44     {/if}
45   {else}
46     le {$event.debut|date_format:"%d %B %Y à %H:%M"}
47   {/if}
48   </strong>
49   et a été proposé par
50   <a href='https://www.polytechnique.org/profile/{$event.alias}' class='popup2'>
51     {$event.prenom} {$event.nom} ({$event.promo})
52   </a>
53 </p>
54
55 <p class='descr'>
56   {$event.descriptif|nl2br}
57 </p>
58
59 {if $admin || $event.show_participants}
60 <p class='descr'>
61   Tu peux 
62   <a href="{$platal->ns}events/admin/{$event.eid}">
63     consulster liste des participants
64     {icon name=group title="Liste des participants"}</a>
65   déjà inscrits.
66 </p>
67 {/if}
68
69 <form action="{$platal->ns}events/sub/{$event.eid}" method="post">
70   <table class="tiny" cellspacing="0" cellpadding="0">
71     {foreach from=$event.moments item=m}
72     <tr><th>{$m.titre} ({$m.montant} &euro;)</th></tr>
73     {if $m.details}
74     <tr>
75       <td>
76       {$m.details|nl2br}
77       </td>
78     </tr>
79     {/if}
80     <tr>
81       <td>
82         {if $event.inscr_open}
83           <input type="radio" name="moment[{$m.item_id}]" value="0"
84           {if !$m.nb}checked="checked"{/if}/>non
85           {if $event.noinvite}
86               <input type="radio" name="moment[{$m.item_id}]" value="1"
87               {if $m.nb eq 1}checked="checked"{/if}/>oui
88           {else}
89               <input type="radio" name="moment[{$m.item_id}]" value="1"
90               {if $m.nb eq 1}checked="checked"{/if}/>seul<br />
91               <input type="radio" name="moment[{$m.item_id}]" value="2"
92               {if $m.nb > 1}checked="checked"{/if}/>avec
93                 <input size="2" name="personnes[{$m.item_id}]"
94                   value="{if $m.nb > 1}{math equation='x - 1' x=$m.nb}{else}1{/if}"/> personnes
95           {/if}
96         {else}
97           {if !$m.nb}
98             Je ne viendrai pas.
99           {elseif $m.nb eq 1}
100             Je viendrai{if !$event.noinvite} seul{/if}.
101           {else}
102             Je viendrai avec {$m.nb} personne{if $m.nb > 2}s{/if}
103           {/if}
104         {/if}
105       </td>
106     </tr>
107     {/foreach}
108
109     <tr><th>À payer</th></tr>
110     <tr>
111       <td>
112         {if $event.topay}
113         <span class="error">
114         Tu dois payer {$event.topay|replace:'.':','}&nbsp;&euro;
115         {if $event.paid > 0}
116         (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;)
117         {/if}.
118         {if $event.paiement_id}
119           [<a href="https://www.polytechnique.org/payment/{$event.paiement_id}?montant={$event.topay}}">
120           Payer en ligne</a>]
121         {/if}
122         </span>
123         {else}
124         Rien à payer
125         {if $event.paid > 0}
126         (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;)
127         {/if}.
128         {/if}
129       </td>
130     </tr>
131   </table>
132
133   <p style="text-align:center">
134     <input type="submit" name='submit' value="Valider mes inscriptions" />
135   </p>
136 </form>
137
138 {* vim:set et sw=2 sts=2 sws=2: *}