Oops
[platal.git] / templates / xnetevents / index.tpl
CommitLineData
d6d580ec 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2006 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<h1>{$asso.nom} : Evénements</h1>
24
25{if $admin}
26<p class="center">
7b2413f6 27 [<a href="{$platal->ns}events/edit">Annoncer un nouvel événement</a>]
d6d580ec 28</p>
29{/if}
30
31{foreach from=$evenements item=e}
32
7ac1ef77 33<table class="bicol" cellspacing="0" cellpadding="0">
d6d580ec 34 <colgroup>
35 <col width='25%' />
36 </colgroup>
37 <tr>
38 <th colspan="2">
39 {$e.intitule}
40 {if $admin}
41 <br />
7b2413f6 42 [<a href="{$platal->ns}events/edit/{$e.eid}">
d6d580ec 43 modifier
25edb442 44 {icon name=date_edit title="Edition de l'événement"}</a>]
d6d580ec 45 &nbsp;&nbsp;&nbsp;&nbsp;
7b2413f6 46 [<a href="javascript:dynpostkv('{$platal->ns}events', 'del', {$e.eid})"
d6d580ec 47 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 ?')">
48 supprimer
a72a67b9 49 {icon name=delete title='Suppression'}</a>]
d6d580ec 50 {/if}
51 </th>
52 </tr>
53
54 <tr>
55 <td class="titre">date :</td>
56 <td>
57 {if $e.fin and $e.fin neq $e.debut}
58 {if $e.debut_day eq $e.fin_day}
59 le {$e.debut|date_format:"%d %B %Y"} de {$e.debut|date_format:"%H:%M"} à {$e.fin|date_format:"%H:%M"}
60 {else}
61 du {$e.debut|date_format:"%d %B %Y à %H:%M"}<br />
62 au {$e.fin|date_format:"%d %B %Y à %H:%M"}
63 {/if}
64 {else}
65 le {$e.debut|date_format:"%d %B %Y à %H:%M"}
66 {/if}
67 </td>
68 </tr>
69
70 <tr>
71 <td class="titre">annonceur :</td>
72 <td>
1f0d8e19 73 <a href='https://www.polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
d6d580ec 74 </td>
75 </tr>
76
77 <tr>
78 <td class="titre">Informations :</td>
79 <td class='actions'>
80 {if $admin || $e.show_participants}
7b2413f6 81 <a href="{$platal->ns}events/admin/{$e.eid}">
d6d580ec 82 consulter la liste des participants
7ac1ef77 83 {icon name=group title="Liste des participants"}
d6d580ec 84 </a><br />
85 {/if}
86 {if $e.deadline_inscription}
87 {if $e.inscr_open}
88 dernières inscriptions
89 le {$e.deadline_inscription|date_format:"%d %B %Y"}
90 {else}
91 <span class='error'>Inscriptions closes.</span><br />
92 {/if}
93 {/if}
94 </td>
95 </tr>
96
97 <tr>
98 <td class="titre">
99 État inscription
100 {if $e.inscr_open}
101 <input type="hidden" name="evt_{counter}" value="{$e.eid}" />
102 {/if}
103 </td>
104 <td>
105 {if !$e.inscrit}
106 <span class='error'>Non inscrit</span><br />
107 {else}
108 {foreach from=$e.moments item=m}
109 {if !$m.nb}
110 Tu ne viendras pas
111 {elseif $m.nb eq 1}
112 Tu viendras seul
113 {else}
114 Tu viendras avec {$m.nb} personne{if $m.nb > 2}s{/if}
115 {/if} à <em>{$m.titre}</em><br />
116 {/foreach}
117 {/if}
118
119 {if $e.topay}
120 <span class="error">
121 Tu dois payer {$e.topay|replace:'.':','}&nbsp;&euro;
122 {if $e.paid > 0}
123 (tu as déjà payé {$e.paid|replace:'.':','}&nbsp;&euro;)
124 {/if}
125 {if $e.paiement_id}
126 [<a href="https://www.polytechnique.org/payment/{$e.paiement_id}?montant={$e.topay}}">
127 Payer en ligne</a>]
128 {/if}
129 </span>
130 {/if}
131 </td>
132 </tr>
133
9ece1588 134 {if $e.inscr_open}
d6d580ec 135 <tr>
136 <td colspan='2' class='center'>
137 <strong>
7b2413f6 138 <a href='{$platal->ns}events/sub/{$e.eid}'>
d6d580ec 139 gérer mon inscription
140 </a>
141 </strong>
142 </td>
143 </tr>
144 {/if}
145
146</table>
147
148<br />
149
150{foreachelse}
151
152<p class="descr">
153 Aucun événement n'a été référencé par les animateurs du groupe.
154</p>
155
156{/foreach}
157
158{* vim:set et sw=2 sts=2 sws=2: *}