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