Port xnetevents (I hope this works).
[platal.git] / templates / xnetevents / index.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{if !$is_admin}
24<h1>{$asso->nom}&nbsp;: Événements</h1>
25{else}
26<h1>
27 {$asso->nom}&nbsp;:
28 {if $archive}[<a href="{$platal->ns}events">Événements</a>] {else}Événements {/if}
29 {if $archive}Archives {else}[<a href="{$platal->ns}events/archive">Archives</a>] {/if}
30</h1>
31
32{if $updated}
33<p class='error'>
34 La modification de l'inscription a été prise en compte !
35 {if $updated.topay > $updated.paid}
36 <br/>N'oublie pas de payer {math equation="a-b" a=$updated.topay b=$updated.paid}&nbsp;&euro;
37 {if $updated.paid > 0}
38 (tu as déjà payé {$updated.paid|replace:'.':','}&nbsp;&euro;)
39 {/if}
40 {if $updated.paiement_id}
41 [<a href="{$platal->ns}payment/{$updated.paiement_id}?montant={math equation="a-b" a=$updated.topay b=$updated.paid}">
42 Payer en ligne</a>]
43 {/if}
44 {/if}
45</p>
46{/if}
47
48{if !$archive}
49<p class="center">
50 [<a href="{$platal->ns}events/edit">Annoncer un nouvel événement</a>]
51</p>
52{/if}
53{/if}
54
55{foreach from=$evenements item=e}
56
57<table class="bicol" cellspacing="0" cellpadding="0">
58 <colgroup>
59 <col width='25%' />
60 </colgroup>
61 <tr>
62 <th colspan="2"{if !$e.inscr_open} class="grayed"{/if}>
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;">
64 {icon name=calendar_view_day title="Événement iCal"}
65 </a>
66 {$e.intitule}
67 {if !$e.inscr_open}
68 (<span class="error">Inscriptions closes</span>)
69 {/if}
70 {if $is_admin}
71 <br />
72 [<a href="{$platal->ns}events/edit/{$e.short_name|default:$e.eid}">
73 modifier
74 {icon name=date_edit title="Édition de l'événement"}</a>]
75 &nbsp;
76 [<a href="javascript:dynpostkv('{$platal->pl_self()}?token={xsrf_token}', {if !$archive}'archive'{else}'unarchive'{/if}, {$e.eid})">
77 {if !$archive}
78 archiver
79 {icon name=package_add title="Archivage"}</a>]
80 {else}
81 désarchiver
82 {icon name=package_delete title="Désarchivage"}</a>]
83 {/if}
84 &nbsp;
85 [<a href="javascript:dynpostkv('{$platal->ns}events?token={xsrf_token}', 'del', {$e.eid})"
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 ?')">
87 supprimer
88 {icon name=delete title='Suppression'}</a>]
89 {/if}
90 </th>
91 </tr>
92
93 <tr>
94 <td class="titre">Date&nbsp;:</td>
95 <td>{$e.date}</td>
96 </tr>
97
98 <tr>
99 <td class="titre">Annonceur&nbsp;:</td>
100 <td>{profile user=$e.organisateur_uid promo=true groupperms=false}</td>
101 </tr>
102
103 {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}
104 <tr>
105 <td class="titre">Informations&nbsp;:</td>
106 <td class='actions'>
107 {if $is_admin || $e.show_participants}
108 <a href="{$platal->ns}events/admin/{$e.short_name|default:$e.eid}">
109 consulter la liste des participants
110 {icon name=group title="Liste des participants"}
111 </a><br />
112 {/if}
113 {if $e.deadline_inscription && $e.inscr_open}
114 dernières inscriptions
115 le {$e.deadline_inscription|date_format:"%d %B %Y"}
116 {/if}
117 </td>
118 </tr>
119 {/if}
120
121 <tr>
122 <td class="titre">
123 État inscription&nbsp;:
124 {if $e.inscr_open}
125 <input type="hidden" name="evt_{counter}" value="{$e.eid}" />
126 {/if}
127 </td>
128 <td>
129 {if !$e.inscrit}
130 <span class='error'>Non inscrit</span><br />
131 {else}
132 {foreach from=$e.moments item=m}
133 {if !$m.nb}
134 Tu ne viendras pas
135 {elseif $m.nb eq 1}
136 Tu viendras seul
137 {else}
138 Tu viendras avec {$m.nb-1} personne{if $m.nb > 2}s{/if}
139 {/if} à <em>{$m.titre}</em>.<br />
140 {/foreach}
141 {/if}
142
143 {if $e.topay}
144 <span class="error">
145 {if !$e.paid}
146 Tu dois payer {$e.topay|replace:'.':','}&nbsp;&euro;.
147 {elseif $e.paid < $e.topay}
148 Tu dois encore payer {math equation="a-b" a=$e.topay b=$e.paid|replace:'.':','}&nbsp;&euro;
149 (tu as déjà payé {$e.paid|replace:'.':','}&nbsp;&euro;).
150 {else}
151 Tu as déjà payé les {$e.paid|replace:'.':','}&nbsp;&euro; de ton inscription.
152 {/if}
153 {if $e.paiement_id && $e.paid < $e.topay}
154 [<a href="{$platal->ns}payment/{$e.paiement_id}?montant={math equation="a-b" a=$e.topay b=$e.paid}">
155 Payer en ligne</a>]
156 {/if}
157 </span>
158 {/if}
159 </td>
160 </tr>
161
162 {if $e.inscr_open}
163 <tr>
164 <td colspan='2' class='center'>
165 <strong>
166 <a href='{$platal->ns}events/sub/{$e.short_name|default:$e.eid}'>
167 gérer mon inscription
168 </a>
169 </strong>
170 </td>
171 </tr>
172 {/if}
173
174</table>
175
176<br />
177
178{foreachelse}
179
180<p class="descr">
181{if $archive}
182 Aucun événement n'a été archivé par les animateurs du groupe.
183{else}
184 Aucun événement n'a été référencé par les animateurs du groupe.
185{/if}
186</p>
187
188{/foreach}
189
190{if $undisplayed_events neq 0}
191<p class="descr">
192 Il y a {$undisplayed_events} événement{if $undisplayed_events > 1}s non affichés car ils sont réservés
193 {else} non affiché car il est réservé{/if} aux membres de ce groupe.
194</p>
195{/if}
196
197{if $evenements}
198<p class="descr">
199 En cliquant sur l'icône {icon name=calendar_view_day title="Événement iCal"} associée à un événement,
200 tu peux télécharger la version iCal de l'événement qui permet de l'ajouter dans ton agenda électronique.
201</p>
202{/if}
203
204{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}