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