Commit | Line | Data |
---|---|---|
d6d580ec | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 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 | ||
e8439508 | 23 | <h1>{$asso.nom} : 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'> | |
a7de4ef7 | 30 | Cet événement a lieu |
d6d580ec | 31 | <strong> |
32 | {if $event.fin and $event.fin neq $event.debut} | |
33 | {if $event.debut_day eq $event.fin_day} | |
a7de4ef7 | 34 | le {$event.debut|date_format:"%d %B %Y"} de {$event.debut|date_format:"%H:%M"} à {$event.fin|date_format:"%H:%M"} |
d6d580ec | 35 | {else} |
a7de4ef7 | 36 | du {$event.debut|date_format:"%d %B %Y à %H:%M"}<br /> |
37 | au {$event.fin|date_format:"%d %B %Y à %H:%M"} | |
d6d580ec | 38 | {/if} |
39 | {else} | |
a7de4ef7 | 40 | le {$event.debut|date_format:"%d %B %Y à %H:%M"} |
d6d580ec | 41 | {/if} |
42 | </strong> | |
a7de4ef7 | 43 | et a été proposé par |
d6d580ec | 44 | <a href='https://www.polytechnique.org/profile/{$event.alias}' class='popup2'> |
77af6562 | 45 | {$event.prenom} {$event.nom} ({$event.promo}). |
d6d580ec | 46 | </a> |
47 | </p> | |
48 | ||
49 | <p class='descr'> | |
50 | {$event.descriptif|nl2br} | |
51 | </p> | |
52 | ||
53 | {if $admin || $event.show_participants} | |
54 | <p class='descr'> | |
55 | Tu peux | |
7b2413f6 | 56 | <a href="{$platal->ns}events/admin/{$event.eid}"> |
77254e96 | 57 | consulter la liste des participants |
7ac1ef77 | 58 | {icon name=group title="Liste des participants"}</a> |
a7de4ef7 | 59 | déjà inscrits. |
d6d580ec | 60 | </p> |
61 | {/if} | |
62 | ||
7b2413f6 | 63 | <form action="{$platal->ns}events/sub/{$event.eid}" method="post"> |
d6d580ec | 64 | <table class="tiny" cellspacing="0" cellpadding="0"> |
65 | {foreach from=$event.moments item=m} | |
66 | <tr><th>{$m.titre} ({$m.montant} €)</th></tr> | |
67 | {if $m.details} | |
68 | <tr> | |
69 | <td> | |
70 | {$m.details|nl2br} | |
71 | </td> | |
72 | </tr> | |
73 | {/if} | |
74 | <tr> | |
75 | <td> | |
76 | {if $event.inscr_open} | |
77 | <input type="radio" name="moment[{$m.item_id}]" value="0" | |
78 | {if !$m.nb}checked="checked"{/if}/>non | |
79 | {if $event.noinvite} | |
80 | <input type="radio" name="moment[{$m.item_id}]" value="1" | |
81 | {if $m.nb eq 1}checked="checked"{/if}/>oui | |
82 | {else} | |
83 | <input type="radio" name="moment[{$m.item_id}]" value="1" | |
84 | {if $m.nb eq 1}checked="checked"{/if}/>seul<br /> | |
85 | <input type="radio" name="moment[{$m.item_id}]" value="2" | |
86 | {if $m.nb > 1}checked="checked"{/if}/>avec | |
87 | <input size="2" name="personnes[{$m.item_id}]" | |
88 | value="{if $m.nb > 1}{math equation='x - 1' x=$m.nb}{else}1{/if}"/> personnes | |
89 | {/if} | |
90 | {else} | |
91 | {if !$m.nb} | |
92 | Je ne viendrai pas. | |
93 | {elseif $m.nb eq 1} | |
94 | Je viendrai{if !$event.noinvite} seul{/if}. | |
95 | {else} | |
77af6562 | 96 | Je viendrai avec {$m.nb} personne{if $m.nb > 2}s{/if}. |
d6d580ec | 97 | {/if} |
98 | {/if} | |
99 | </td> | |
100 | </tr> | |
101 | {/foreach} | |
102 | ||
a7de4ef7 | 103 | <tr><th>À payer</th></tr> |
d6d580ec | 104 | <tr> |
105 | <td> | |
106 | {if $event.topay} | |
2ac0bcee | 107 | <div class="error"> |
98a7e9dc | 108 | {if !$event.paid} |
109 | Tu dois payer {$event.topay|replace:'.':','} €. | |
110 | {elseif $event.paid < $event.topay} | |
111 | Tu dois encore payer {math equation="a-b" a=$event.topay b=$event.paid|replace:'.':','} € | |
77af6562 | 112 | (tu as déjà payé {$event.paid|replace:'.':','} €). |
98a7e9dc | 113 | {else} |
a7de4ef7 | 114 | Tu as déjà payé {$event.paid|replace:'.':','} € pour ton inscription. |
2ac0bcee FB |
115 | {/if} |
116 | </div> | |
117 | <div> | |
98a7e9dc | 118 | {if $event.paiement_id && $event.paid < $event.topay} |
b0691e10 FB |
119 | <a href="{$platal->ns}payment/{$event.paiement_id}?montant={math equation="a-b" a=$event.topay b=$event.paid}"> |
120 | {icon name=money} Payer en ligne</a> | |
2ac0bcee FB |
121 | {elseif $validation && $event.paid < $event.topay} |
122 | <br />Le télépaiement pour cet événement est en instance de validation :<br /> | |
123 | <input type="checkbox" name="notify_payment" {if $event.notify_payment}checked="checked"{/if} id="notify" /> | |
77af6562 | 124 | <label for="notify">être prévenu lorsque le télépaiment pour cet événement sera disponible.</label> |
98a7e9dc | 125 | {/if} |
2ac0bcee | 126 | </div> |
d6d580ec | 127 | {else} |
a7de4ef7 | 128 | Rien à payer |
d6d580ec | 129 | {if $event.paid > 0} |
77af6562 | 130 | (tu as déjà payé {$event.paid|replace:'.':','} €). |
d6d580ec | 131 | {/if}. |
132 | {/if} | |
133 | </td> | |
134 | </tr> | |
135 | </table> | |
136 | ||
137 | <p style="text-align:center"> | |
138 | <input type="submit" name='submit' value="Valider mes inscriptions" /> | |
139 | </p> | |
140 | </form> | |
141 | ||
a7de4ef7 | 142 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |