Revert "Rewrites xnetevents index page."
[platal.git] / templates / xnetevents / index.tpl
CommitLineData
d6d580ec 1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 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
30002fc8
AL
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
d24c8a11 41{if !$is_admin}
34ade5a6 42<h1>{$asso->nom}&nbsp;: Événements</h1>
f02eefd4 43{else}
44<h1>
aab2ffdd 45 {$asso->nom}&nbsp;:
77af6562 46 {if $archive}[<a href="{$platal->ns}events">Événements</a>] {else}Événements {/if}
f02eefd4 47 {if $archive}Archives {else}[<a href="{$platal->ns}events/archive">Archives</a>] {/if}
48</h1>
d6d580ec 49
2d394628 50{if $updated}
1f5b0b59 51<p class='error'>
6bb2f79a 52 La modification de l'inscription a été prise en compte&nbsp;!
98a7e9dc 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;
1f5b0b59 55 {if $updated.paid > 0}
a7de4ef7 56 (tu as déjà payé {$updated.paid|replace:'.':','}&nbsp;&euro;)
1f5b0b59 57 {/if}
58 {if $updated.paiement_id}
98a7e9dc 59 [<a href="{$platal->ns}payment/{$updated.paiement_id}?montant={math equation="a-b" a=$updated.topay b=$updated.paid}">
1f5b0b59 60 Payer en ligne</a>]
61 {/if}
62 {/if}
63</p>
64{/if}
65
99544d53 66{if !$archive}
d6d580ec 67<p class="center">
a7de4ef7 68 [<a href="{$platal->ns}events/edit">Annoncer un nouvel événement</a>]
d6d580ec 69</p>
70{/if}
99544d53 71{/if}
d6d580ec 72
2d394628
NI
73{foreach from=$evenements item=e}
74
7ac1ef77 75<table class="bicol" cellspacing="0" cellpadding="0">
d6d580ec 76 <colgroup>
77 <col width='25%' />
78 </colgroup>
79 <tr>
cb24457f 80 <th colspan="2"{if !$e.inscr_open} class="grayed"{/if}>
2d394628 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;">
6f5299b7 82 {icon name=calendar_view_day title="Événement iCal"}
11d8a183 83 </a>
99544d53 84 {$e.intitule}
cb24457f 85 {if !$e.inscr_open}
86 (<span class="error">Inscriptions closes</span>)
87 {/if}
d24c8a11 88 {if $is_admin}
d6d580ec 89 <br />
2d394628 90 [<a href="{$platal->ns}events/edit/{$e.short_name|default:$e.eid}">
d6d580ec 91 modifier
6f5299b7 92 {icon name=date_edit title="Édition de l'événement"}</a>]
f02eefd4 93 &nbsp;
2d394628 94 [<a href="javascript:$.dynPost('{$platal->pl_self()}?token={xsrf_token}',{if !$archive}'archive'{else}'unarchive'{/if},{$e.eid})">
f02eefd4 95 {if !$archive}
96 archiver
97 {icon name=package_add title="Archivage"}</a>]
98 {else}
a7de4ef7 99 désarchiver
100 {icon name=package_delete title="Désarchivage"}</a>]
f02eefd4 101 {/if}
102 &nbsp;
2d394628 103 [<a href="javascript:$.dynPost('{$platal->ns}events?token={xsrf_token}','del',{$e.eid})"
6bb2f79a 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;?')">
d6d580ec 105 supprimer
a72a67b9 106 {icon name=delete title='Suppression'}</a>]
d6d580ec 107 {/if}
108 </th>
109 </tr>
110
111 <tr>
77af6562 112 <td class="titre">Date&nbsp;:</td>
20c5c7e6 113 <td>{$e.date}</td>
d6d580ec 114 </tr>
115
116 <tr>
77af6562 117 <td class="titre">Annonceur&nbsp;:</td>
7f376ae0 118 <td>{profile user=$e.uid promo=true groupperms=false}</td>
d6d580ec 119 </tr>
120
d24c8a11 121 {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}
d6d580ec 122 <tr>
e8439508 123 <td class="titre">Informations&nbsp;:</td>
d6d580ec 124 <td class='actions'>
d24c8a11 125 {if $is_admin || $e.show_participants}
2d394628 126 <a href="{$platal->ns}events/admin/{$e.short_name|default:$e.eid}">
d6d580ec 127 consulter la liste des participants
7ac1ef77 128 {icon name=group title="Liste des participants"}
d6d580ec 129 </a><br />
130 {/if}
cb24457f 131 {if $e.deadline_inscription && $e.inscr_open}
a7de4ef7 132 dernières inscriptions
cb24457f 133 le {$e.deadline_inscription|date_format:"%d %B %Y"}
d6d580ec 134 {/if}
135 </td>
136 </tr>
cb24457f 137 {/if}
d6d580ec 138
139 <tr>
140 <td class="titre">
77af6562 141 État inscription&nbsp;:
d6d580ec 142 {if $e.inscr_open}
2d394628 143 <input type="hidden" name="evt_{counter}" value="{$e.eid}" />
d6d580ec 144 {/if}
145 </td>
146 <td>
147 {if !$e.inscrit}
148 <span class='error'>Non inscrit</span><br />
149 {else}
2d394628
NI
150 {foreach from=$e.moments item=m}
151 {if !$m.nb}
d6d580ec 152 Tu ne viendras pas
d6d580ec 153 {else}
2d394628 154 Tu as inscrit {$m.nb} personne{if $m.nb > 1}s{/if}
77af6562 155 {/if} à <em>{$m.titre}</em>.<br />
d6d580ec 156 {/foreach}
157 {/if}
158
159 {if $e.topay}
160 <span class="error">
fc54c8f8 161 {if $e.paid eq '0.00'}
98a7e9dc 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;
77af6562 165 (tu as déjà payé {$e.paid|replace:'.':','}&nbsp;&euro;).
98a7e9dc 166 {else}
a7de4ef7 167 Tu as déjà payé les {$e.paid|replace:'.':','}&nbsp;&euro; de ton inscription.
98a7e9dc 168 {/if}
2d394628 169 {if $e.paiement_id && $e.paid < $e.topay}
98a7e9dc 170 [<a href="{$platal->ns}payment/{$e.paiement_id}?montant={math equation="a-b" a=$e.topay b=$e.paid}">
d6d580ec 171 Payer en ligne</a>]
98a7e9dc 172 {/if}
d6d580ec 173 </span>
174 {/if}
175 </td>
176 </tr>
177
9ece1588 178 {if $e.inscr_open}
d6d580ec 179 <tr>
180 <td colspan='2' class='center'>
181 <strong>
2d394628 182 <a href='{$platal->ns}events/sub/{$e.short_name|default:$e.eid}'>
3f216b17 183 Gérer mon inscription et voir les détails de l'événement.
d6d580ec 184 </a>
185 </strong>
186 </td>
187 </tr>
188 {/if}
189
190</table>
191
192<br />
193
194{foreachelse}
195
196<p class="descr">
99544d53 197{if $archive}
a7de4ef7 198 Aucun événement n'a été archivé par les animateurs du groupe.
99544d53 199{else}
a7de4ef7 200 Aucun événement n'a été référencé par les animateurs du groupe.
99544d53 201{/if}
d6d580ec 202</p>
203
204{/foreach}
205
fbfc01a1
SJ
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
99544d53 213{if $evenements}
214<p class="descr">
77af6562 215 En cliquant sur l'icône {icon name=calendar_view_day title="Événement iCal"} associée à un événement,
6f5299b7 216 tu peux télécharger la version iCal de l'événement qui permet de l'ajouter dans ton agenda électronique.
99544d53 217</p>
218{/if}
219
448c8cdc 220{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}