Revert the last two commits
[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
c860774b 50{if t($updated) && $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
c860774b 73{foreach from=$evenements key=eid item=e}
7ac1ef77 74<table class="bicol" cellspacing="0" cellpadding="0">
d6d580ec 75 <colgroup>
76 <col width='25%' />
77 </colgroup>
78 <tr>
cb24457f 79 <th colspan="2"{if !$e.inscr_open} class="grayed"{/if}>
c860774b 80 <a href="{$platal->ns}events/ical/{$eid}/{$eid}.ics" style="display: block; float: left;">
6f5299b7 81 {icon name=calendar_view_day title="Événement iCal"}
11d8a183 82 </a>
99544d53 83 {$e.intitule}
cb24457f 84 {if !$e.inscr_open}
85 (<span class="error">Inscriptions closes</span>)
86 {/if}
d24c8a11 87 {if $is_admin}
d6d580ec 88 <br />
c860774b 89 [<a href="{$platal->ns}events/edit/{$eid}">
d6d580ec 90 modifier
6f5299b7 91 {icon name=date_edit title="Édition de l'événement"}</a>]
f02eefd4 92 &nbsp;
c860774b 93 [<a href="javascript:$.dynPost('{$platal->pl_self()}?token={xsrf_token}',{if !$archive}'archive'{else}'unarchive'{/if},{$eid})">
f02eefd4 94 {if !$archive}
95 archiver
96 {icon name=package_add title="Archivage"}</a>]
97 {else}
a7de4ef7 98 désarchiver
99 {icon name=package_delete title="Désarchivage"}</a>]
f02eefd4 100 {/if}
101 &nbsp;
c860774b 102 [<a href="javascript:$.dynPost('{$platal->ns}events?token={xsrf_token}','del',{$eid})"
6bb2f79a 103 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 104 supprimer
a72a67b9 105 {icon name=delete title='Suppression'}</a>]
d6d580ec 106 {/if}
107 </th>
108 </tr>
109
110 <tr>
77af6562 111 <td class="titre">Date&nbsp;:</td>
20c5c7e6 112 <td>{$e.date}</td>
d6d580ec 113 </tr>
114
115 <tr>
77af6562 116 <td class="titre">Annonceur&nbsp;:</td>
7f376ae0 117 <td>{profile user=$e.uid promo=true groupperms=false}</td>
d6d580ec 118 </tr>
119
d24c8a11 120 {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}
d6d580ec 121 <tr>
e8439508 122 <td class="titre">Informations&nbsp;:</td>
d6d580ec 123 <td class='actions'>
d24c8a11 124 {if $is_admin || $e.show_participants}
c860774b 125 <a href="{$platal->ns}events/admin/{$eid}">
d6d580ec 126 consulter la liste des participants
7ac1ef77 127 {icon name=group title="Liste des participants"}
d6d580ec 128 </a><br />
129 {/if}
cb24457f 130 {if $e.deadline_inscription && $e.inscr_open}
a7de4ef7 131 dernières inscriptions
cb24457f 132 le {$e.deadline_inscription|date_format:"%d %B %Y"}
d6d580ec 133 {/if}
134 </td>
135 </tr>
cb24457f 136 {/if}
d6d580ec 137
138 <tr>
139 <td class="titre">
77af6562 140 État inscription&nbsp;:
d6d580ec 141 {if $e.inscr_open}
c860774b 142 <input type="hidden" name="evt_{counter}" value="{$eid}" />
d6d580ec 143 {/if}
144 </td>
145 <td>
146 {if !$e.inscrit}
147 <span class='error'>Non inscrit</span><br />
148 {else}
c860774b
NI
149 {foreach from=$e.items key=item_id item=m}
150 {if !t($e.sub.$item_id) || !$e.sub.$item_id.nb}
d6d580ec 151 Tu ne viendras pas
d6d580ec 152 {else}
c860774b 153 Tu as inscrit {$e.sub.$item_id.nb} personne{if $e.sub.$item_id.nb > 1}s{/if}
77af6562 154 {/if} à <em>{$m.titre}</em>.<br />
d6d580ec 155 {/foreach}
156 {/if}
157
158 {if $e.topay}
159 <span class="error">
fc54c8f8 160 {if $e.paid eq '0.00'}
98a7e9dc 161 Tu dois payer {$e.topay|replace:'.':','}&nbsp;&euro;.
162 {elseif $e.paid < $e.topay}
163 Tu dois encore payer {math equation="a-b" a=$e.topay b=$e.paid|replace:'.':','}&nbsp;&euro;
77af6562 164 (tu as déjà payé {$e.paid|replace:'.':','}&nbsp;&euro;).
98a7e9dc 165 {else}
a7de4ef7 166 Tu as déjà payé les {$e.paid|replace:'.':','}&nbsp;&euro; de ton inscription.
98a7e9dc 167 {/if}
c860774b 168 {if t($e.paiement_id) && $e.paid < $e.topay}
98a7e9dc 169 [<a href="{$platal->ns}payment/{$e.paiement_id}?montant={math equation="a-b" a=$e.topay b=$e.paid}">
d6d580ec 170 Payer en ligne</a>]
98a7e9dc 171 {/if}
d6d580ec 172 </span>
173 {/if}
174 </td>
175 </tr>
176
9ece1588 177 {if $e.inscr_open}
d6d580ec 178 <tr>
179 <td colspan='2' class='center'>
180 <strong>
c860774b 181 <a href='{$platal->ns}events/sub/{$eid}'>
3f216b17 182 Gérer mon inscription et voir les détails de l'événement.
d6d580ec 183 </a>
184 </strong>
185 </td>
186 </tr>
187 {/if}
188
189</table>
190
191<br />
192
193{foreachelse}
194
195<p class="descr">
99544d53 196{if $archive}
a7de4ef7 197 Aucun événement n'a été archivé par les animateurs du groupe.
99544d53 198{else}
a7de4ef7 199 Aucun événement n'a été référencé par les animateurs du groupe.
99544d53 200{/if}
d6d580ec 201</p>
202
203{/foreach}
204
fbfc01a1
SJ
205{if $undisplayed_events neq 0}
206<p class="descr">
207 Il y a {$undisplayed_events} événement{if $undisplayed_events > 1}s non affichés car ils sont réservés
208 {else} non affiché car il est réservé{/if} aux membres de ce groupe.
209</p>
210{/if}
211
99544d53 212{if $evenements}
213<p class="descr">
77af6562 214 En cliquant sur l'icône {icon name=calendar_view_day title="Événement iCal"} associée à un événement,
6f5299b7 215 tu peux télécharger la version iCal de l'événement qui permet de l'ajouter dans ton agenda électronique.
99544d53 216</p>
217{/if}
218
448c8cdc 219{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}