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