d6d580ec |
1 | {**************************************************************************} |
2 | {* *} |
5ddeb07c |
3 | {* Copyright (C) 2003-2007 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 | |
d24c8a11 |
23 | {if !$is_admin} |
a7de4ef7 |
24 | <h1>{$asso.nom} : Evénements</h1> |
f02eefd4 |
25 | {else} |
26 | <h1> |
27 | {$asso.nom} : |
a7de4ef7 |
28 | {if $archive}[<a href="{$platal->ns}events">Evénements</a>] {else}Evénements {/if} |
f02eefd4 |
29 | {if $archive}Archives {else}[<a href="{$platal->ns}events/archive">Archives</a>] {/if} |
30 | </h1> |
d6d580ec |
31 | |
1f5b0b59 |
32 | {if $updated} |
33 | <p class='error'> |
a7de4ef7 |
34 | La modification de l'inscription a été prise en compte ! |
98a7e9dc |
35 | {if $updated.topay > $updated.paid} |
36 | <br/>N'oublie pas de payer {math equation="a-b" a=$updated.topay b=$updated.paid} € |
1f5b0b59 |
37 | {if $updated.paid > 0} |
a7de4ef7 |
38 | (tu as déjà payé {$updated.paid|replace:'.':','} €) |
1f5b0b59 |
39 | {/if} |
40 | {if $updated.paiement_id} |
98a7e9dc |
41 | [<a href="{$platal->ns}payment/{$updated.paiement_id}?montant={math equation="a-b" a=$updated.topay b=$updated.paid}"> |
1f5b0b59 |
42 | Payer en ligne</a>] |
43 | {/if} |
44 | {/if} |
45 | </p> |
46 | {/if} |
47 | |
99544d53 |
48 | {if !$archive} |
d6d580ec |
49 | <p class="center"> |
a7de4ef7 |
50 | [<a href="{$platal->ns}events/edit">Annoncer un nouvel événement</a>] |
d6d580ec |
51 | </p> |
52 | {/if} |
99544d53 |
53 | {/if} |
d6d580ec |
54 | |
55 | {foreach from=$evenements item=e} |
56 | |
7ac1ef77 |
57 | <table class="bicol" cellspacing="0" cellpadding="0"> |
d6d580ec |
58 | <colgroup> |
59 | <col width='25%' /> |
60 | </colgroup> |
61 | <tr> |
cb24457f |
62 | <th colspan="2"{if !$e.inscr_open} class="grayed"{/if}> |
d4b47f0e |
63 | <a href="{$platal->ns}events/ical/{$e.short_name|default:$e.eid}/{$e.short_name|default:$e.eid}.ics" style="display: block; float: left;"> |
a7de4ef7 |
64 | {icon name=calendar_view_day title="Evénement iCal"} |
11d8a183 |
65 | </a> |
99544d53 |
66 | {$e.intitule} |
cb24457f |
67 | {if !$e.inscr_open} |
68 | (<span class="error">Inscriptions closes</span>) |
69 | {/if} |
d24c8a11 |
70 | {if $is_admin} |
d6d580ec |
71 | <br /> |
5cbb1fad |
72 | [<a href="{$platal->ns}events/edit/{$e.short_name|default:$e.eid}"> |
d6d580ec |
73 | modifier |
a7de4ef7 |
74 | {icon name=date_edit title="Edition de l'événement"}</a>] |
f02eefd4 |
75 | |
76 | [<a href="javascript:dynpostkv('{$platal->pl_self()}', {if !$archive}'archive'{else}'unarchive'{/if}, {$e.eid})"> |
77 | {if !$archive} |
78 | archiver |
79 | {icon name=package_add title="Archivage"}</a>] |
80 | {else} |
a7de4ef7 |
81 | désarchiver |
82 | {icon name=package_delete title="Désarchivage"}</a>] |
f02eefd4 |
83 | {/if} |
84 | |
7b2413f6 |
85 | [<a href="javascript:dynpostkv('{$platal->ns}events', 'del', {$e.eid})" |
a7de4ef7 |
86 | onclick="return confirm('Supprimer l\'événement effacera la liste des inscrits et des paiements.\n Es-tu sûr de vouloir supprimer l\'événement ?')"> |
d6d580ec |
87 | supprimer |
a72a67b9 |
88 | {icon name=delete title='Suppression'}</a>] |
d6d580ec |
89 | {/if} |
90 | </th> |
91 | </tr> |
92 | |
93 | <tr> |
94 | <td class="titre">date :</td> |
95 | <td> |
96 | {if $e.fin and $e.fin neq $e.debut} |
97 | {if $e.debut_day eq $e.fin_day} |
a7de4ef7 |
98 | le {$e.debut|date_format:"%d %B %Y"} de {$e.debut|date_format:"%H:%M"} à {$e.fin|date_format:"%H:%M"} |
d6d580ec |
99 | {else} |
a7de4ef7 |
100 | du {$e.debut|date_format:"%d %B %Y à %H:%M"}<br /> |
101 | au {$e.fin|date_format:"%d %B %Y à %H:%M"} |
d6d580ec |
102 | {/if} |
103 | {else} |
a7de4ef7 |
104 | le {$e.debut|date_format:"%d %B %Y à %H:%M"} |
d6d580ec |
105 | {/if} |
106 | </td> |
107 | </tr> |
108 | |
109 | <tr> |
110 | <td class="titre">annonceur :</td> |
111 | <td> |
1f0d8e19 |
112 | <a href='https://www.polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a> |
d6d580ec |
113 | </td> |
114 | </tr> |
115 | |
d24c8a11 |
116 | {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)} |
d6d580ec |
117 | <tr> |
118 | <td class="titre">Informations :</td> |
119 | <td class='actions'> |
d24c8a11 |
120 | {if $is_admin || $e.show_participants} |
5cbb1fad |
121 | <a href="{$platal->ns}events/admin/{$e.short_name|default:$e.eid}"> |
d6d580ec |
122 | consulter la liste des participants |
7ac1ef77 |
123 | {icon name=group title="Liste des participants"} |
d6d580ec |
124 | </a><br /> |
125 | {/if} |
cb24457f |
126 | {if $e.deadline_inscription && $e.inscr_open} |
a7de4ef7 |
127 | dernières inscriptions |
cb24457f |
128 | le {$e.deadline_inscription|date_format:"%d %B %Y"} |
d6d580ec |
129 | {/if} |
130 | </td> |
131 | </tr> |
cb24457f |
132 | {/if} |
d6d580ec |
133 | |
134 | <tr> |
135 | <td class="titre"> |
a7de4ef7 |
136 | État inscription |
d6d580ec |
137 | {if $e.inscr_open} |
138 | <input type="hidden" name="evt_{counter}" value="{$e.eid}" /> |
139 | {/if} |
140 | </td> |
141 | <td> |
142 | {if !$e.inscrit} |
143 | <span class='error'>Non inscrit</span><br /> |
144 | {else} |
145 | {foreach from=$e.moments item=m} |
146 | {if !$m.nb} |
147 | Tu ne viendras pas |
148 | {elseif $m.nb eq 1} |
149 | Tu viendras seul |
150 | {else} |
a06247f6 |
151 | Tu viendras avec {$m.nb-1} personne{if $m.nb > 2}s{/if} |
a7de4ef7 |
152 | {/if} à <em>{$m.titre}</em><br /> |
d6d580ec |
153 | {/foreach} |
154 | {/if} |
155 | |
156 | {if $e.topay} |
157 | <span class="error"> |
98a7e9dc |
158 | {if !$e.paid} |
159 | Tu dois payer {$e.topay|replace:'.':','} €. |
160 | {elseif $e.paid < $e.topay} |
161 | Tu dois encore payer {math equation="a-b" a=$e.topay b=$e.paid|replace:'.':','} € |
a7de4ef7 |
162 | (tu as déjà payé {$e.paid|replace:'.':','} €) |
98a7e9dc |
163 | {else} |
a7de4ef7 |
164 | Tu as déjà payé les {$e.paid|replace:'.':','} € de ton inscription. |
98a7e9dc |
165 | {/if} |
166 | {if $e.paiement_id && $e.paid < $e.topay} |
167 | [<a href="{$platal->ns}payment/{$e.paiement_id}?montant={math equation="a-b" a=$e.topay b=$e.paid}"> |
d6d580ec |
168 | Payer en ligne</a>] |
98a7e9dc |
169 | {/if} |
d6d580ec |
170 | </span> |
171 | {/if} |
172 | </td> |
173 | </tr> |
174 | |
9ece1588 |
175 | {if $e.inscr_open} |
d6d580ec |
176 | <tr> |
177 | <td colspan='2' class='center'> |
178 | <strong> |
5cbb1fad |
179 | <a href='{$platal->ns}events/sub/{$e.short_name|default:$e.eid}'> |
a7de4ef7 |
180 | gérer mon inscription |
d6d580ec |
181 | </a> |
182 | </strong> |
183 | </td> |
184 | </tr> |
185 | {/if} |
186 | |
187 | </table> |
188 | |
189 | <br /> |
190 | |
191 | {foreachelse} |
192 | |
99544d53 |
193 | |
d6d580ec |
194 | <p class="descr"> |
99544d53 |
195 | {if $archive} |
a7de4ef7 |
196 | Aucun événement n'a été archivé par les animateurs du groupe. |
99544d53 |
197 | {else} |
a7de4ef7 |
198 | Aucun événement n'a été référencé par les animateurs du groupe. |
99544d53 |
199 | {/if} |
d6d580ec |
200 | </p> |
201 | |
202 | {/foreach} |
203 | |
99544d53 |
204 | {if $evenements} |
205 | <p class="descr"> |
a7de4ef7 |
206 | En cliquant sur l'icône {icon name=calendar_view_day title="Evénement iCal"} associée à un événement |
207 | tu peux télécharger la version iCal de l'événement qui permet de l'ajouter dans ton agenda électronique |
99544d53 |
208 | </p> |
209 | {/if} |
210 | |
a7de4ef7 |
211 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |