Fixes cache problems when updating an event image.
[platal.git] / templates / xnetevents / subscribe.tpl
... / ...
CommitLineData
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>{$asso.nom}&nbsp;: Evénement {$event.intitule}</h1>
24
25<p>
26 [<a href="{$platal->ns}events">Revenir à la liste des événements</a>]
27</p>
28
29<p class='descr'>
30 Cet événement a lieu <strong>{$event.date}</strong> et a été proposé par
31 <a href='https://www.polytechnique.org/profile/{$event.alias}' class='popup2'>
32 {$event.prenom} {$event.nom} ({$event.promo}).
33 </a>
34</p>
35
36<p class='descr'>
37 {$event.descriptif|nl2br}
38</p>
39
40{if $admin || $event.show_participants}
41<p class='descr'>
42 Tu peux
43 <a href="{$platal->ns}events/admin/{$event.eid}">
44 consulter la liste des participants
45 {icon name=group title="Liste des participants"}</a>
46 déjà inscrits.
47</p>
48{/if}
49
50<form action="{$platal->ns}events/sub/{$event.eid}" method="post">
51 {xsrf_token_field}
52 <table class="tiny" cellspacing="0" cellpadding="0">
53 {foreach from=$event.moments item=m}
54 <tr><th>{$m.titre} ({$m.montant} &euro;)</th></tr>
55 {if $m.details}
56 <tr>
57 <td>
58 {$m.details|nl2br}
59 </td>
60 </tr>
61 {/if}
62 <tr>
63 <td>
64 {if $event.inscr_open}
65 <label><input type="radio" name="moment[{$m.item_id}]" value="0"
66 {if !$m.nb}checked="checked"{/if}/>non</label>
67 {if $event.noinvite}
68 <label><input type="radio" name="moment[{$m.item_id}]" value="1"
69 {if $m.nb eq 1}checked="checked"{/if}/>oui</label>
70 {else}
71 <label><input type="radio" name="moment[{$m.item_id}]" value="1"
72 {if $m.nb eq 1}checked="checked"{/if}/>seul</label><br />
73 <label><input type="radio" name="moment[{$m.item_id}]" value="2" id="avec"
74 {if $m.nb > 1}checked="checked"{/if}/>avec</label>
75 <input size="2" name="personnes[{$m.item_id}]"
76 value="{if $m.nb > 1}{math equation='x - 1' x=$m.nb}{else}1{/if}"/><label for="avec"> personnes</label>
77 {/if}
78 {else}
79 {if !$m.nb}
80 Je ne viendrai pas.
81 {elseif $m.nb eq 1}
82 Je viendrai{if !$event.noinvite} seul{/if}.
83 {else}
84 Je viendrai avec {$m.nb} personne{if $m.nb > 2}s{/if}.
85 {/if}
86 {/if}
87 </td>
88 </tr>
89 {/foreach}
90
91 <tr><th>À payer</th></tr>
92 <tr>
93 <td>
94 {if $event.topay}
95 <div class="error">
96 {if !$event.paid}
97 Tu dois payer {$event.topay|replace:'.':','}&nbsp;&euro;.
98 {elseif $event.paid < $event.topay}
99 Tu dois encore payer {math equation="a-b" a=$event.topay b=$event.paid|replace:'.':','}&nbsp;&euro;
100 (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;).
101 {else}
102 Tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro; pour ton inscription.
103 {/if}
104 </div>
105 <div>
106 {if $event.paiement_id && $event.paid < $event.topay}
107 <a href="{$platal->ns}payment/{$event.paiement_id}?montant={math equation="a-b" a=$event.topay b=$event.paid}">
108 {icon name=money} Payer en ligne</a>
109 {elseif $validation && $event.paid < $event.topay}
110 <br />Le télépaiement pour cet événement est en instance de validation&nbsp;:<br />
111 <input type="checkbox" name="notify_payment" {if $event.notify_payment}checked="checked"{/if} id="notify" />
112 <label for="notify">être prévenu lorsque le télépaiment pour cet événement sera disponible.</label>
113 {/if}
114 </div>
115 {else}
116 Rien à payer
117 {if $event.paid > 0}
118 (tu as déjà payé {$event.paid|replace:'.':','}&nbsp;&euro;).
119 {/if}.
120 {/if}
121 </td>
122 </tr>
123 </table>
124
125 <p style="text-align:center">
126 <input type="submit" name='submit' value="Valider mes inscriptions" />
127 </p>
128</form>
129
130{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}