Adds a link to ->baseurl on the title of the NL, and fixes a display issue on Mail...
[platal.git] / templates / xnetevents / index.tpl
CommitLineData
d6d580ec 1{**************************************************************************}
2{* *}
8d84c630 3{* Copyright (C) 2003-2009 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}
77af6562 24<h1>{$asso.nom}&nbsp;: Événements</h1>
f02eefd4 25{else}
26<h1>
e8439508 27 {$asso.nom}&nbsp;:
77af6562 28 {if $archive}[<a href="{$platal->ns}events">Événements</a>] {else}Évé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}&nbsp;&euro;
1f5b0b59 37 {if $updated.paid > 0}
a7de4ef7 38 (tu as déjà payé {$updated.paid|replace:'.':','}&nbsp;&euro;)
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;">
6f5299b7 64 {icon name=calendar_view_day title="Évé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
6f5299b7 74 {icon name=date_edit title="Édition de l'événement"}</a>]
f02eefd4 75 &nbsp;
4fcbb455 76 [<a href="javascript:dynpostkv('{$platal->pl_self()}?token={xsrf_token}', {if !$archive}'archive'{else}'unarchive'{/if}, {$e.eid})">
f02eefd4 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 &nbsp;
4fcbb455 85 [<a href="javascript:dynpostkv('{$platal->ns}events?token={xsrf_token}', '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>
77af6562 94 <td class="titre">Date&nbsp;:</td>
20c5c7e6 95 <td>{$e.date}</td>
d6d580ec 96 </tr>
97
98 <tr>
77af6562 99 <td class="titre">Annonceur&nbsp;:</td>
d6d580ec 100 <td>
1f0d8e19 101 <a href='https://www.polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
d6d580ec 102 </td>
103 </tr>
104
d24c8a11 105 {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}
d6d580ec 106 <tr>
e8439508 107 <td class="titre">Informations&nbsp;:</td>
d6d580ec 108 <td class='actions'>
d24c8a11 109 {if $is_admin || $e.show_participants}
5cbb1fad 110 <a href="{$platal->ns}events/admin/{$e.short_name|default:$e.eid}">
d6d580ec 111 consulter la liste des participants
7ac1ef77 112 {icon name=group title="Liste des participants"}
d6d580ec 113 </a><br />
114 {/if}
cb24457f 115 {if $e.deadline_inscription && $e.inscr_open}
a7de4ef7 116 dernières inscriptions
cb24457f 117 le {$e.deadline_inscription|date_format:"%d %B %Y"}
d6d580ec 118 {/if}
119 </td>
120 </tr>
cb24457f 121 {/if}
d6d580ec 122
123 <tr>
124 <td class="titre">
77af6562 125 État inscription&nbsp;:
d6d580ec 126 {if $e.inscr_open}
127 <input type="hidden" name="evt_{counter}" value="{$e.eid}" />
128 {/if}
129 </td>
130 <td>
131 {if !$e.inscrit}
132 <span class='error'>Non inscrit</span><br />
133 {else}
134 {foreach from=$e.moments item=m}
135 {if !$m.nb}
136 Tu ne viendras pas
137 {elseif $m.nb eq 1}
138 Tu viendras seul
139 {else}
a06247f6 140 Tu viendras avec {$m.nb-1} personne{if $m.nb > 2}s{/if}
77af6562 141 {/if} à <em>{$m.titre}</em>.<br />
d6d580ec 142 {/foreach}
143 {/if}
144
145 {if $e.topay}
146 <span class="error">
98a7e9dc 147 {if !$e.paid}
148 Tu dois payer {$e.topay|replace:'.':','}&nbsp;&euro;.
149 {elseif $e.paid < $e.topay}
150 Tu dois encore payer {math equation="a-b" a=$e.topay b=$e.paid|replace:'.':','}&nbsp;&euro;
77af6562 151 (tu as déjà payé {$e.paid|replace:'.':','}&nbsp;&euro;).
98a7e9dc 152 {else}
a7de4ef7 153 Tu as déjà payé les {$e.paid|replace:'.':','}&nbsp;&euro; de ton inscription.
98a7e9dc 154 {/if}
155 {if $e.paiement_id && $e.paid < $e.topay}
156 [<a href="{$platal->ns}payment/{$e.paiement_id}?montant={math equation="a-b" a=$e.topay b=$e.paid}">
d6d580ec 157 Payer en ligne</a>]
98a7e9dc 158 {/if}
d6d580ec 159 </span>
160 {/if}
161 </td>
162 </tr>
163
9ece1588 164 {if $e.inscr_open}
d6d580ec 165 <tr>
166 <td colspan='2' class='center'>
167 <strong>
5cbb1fad 168 <a href='{$platal->ns}events/sub/{$e.short_name|default:$e.eid}'>
a7de4ef7 169 gérer mon inscription
d6d580ec 170 </a>
171 </strong>
172 </td>
173 </tr>
174 {/if}
175
176</table>
177
178<br />
179
180{foreachelse}
181
182<p class="descr">
99544d53 183{if $archive}
a7de4ef7 184 Aucun événement n'a été archivé par les animateurs du groupe.
99544d53 185{else}
a7de4ef7 186 Aucun événement n'a été référencé par les animateurs du groupe.
99544d53 187{/if}
d6d580ec 188</p>
189
190{/foreach}
191
fbfc01a1
SJ
192{if $undisplayed_events neq 0}
193<p class="descr">
194 Il y a {$undisplayed_events} événement{if $undisplayed_events > 1}s non affichés car ils sont réservés
195 {else} non affiché car il est réservé{/if} aux membres de ce groupe.
196</p>
197{/if}
198
99544d53 199{if $evenements}
200<p class="descr">
77af6562 201 En cliquant sur l'icône {icon name=calendar_view_day title="Événement iCal"} associée à un événement,
6f5299b7 202 tu peux télécharger la version iCal de l'événement qui permet de l'ajouter dans ton agenda électronique.
99544d53 203</p>
204{/if}
205
a7de4ef7 206{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}