Ooops, forgotten files
[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>
cb24457f 38 <th colspan="2"{if !$e.inscr_open} class="grayed"{/if}>
d6d580ec 39 {$e.intitule}
cb24457f 40 {if !$e.inscr_open}
41 (<span class="error">Inscriptions closes</span>)
42 {/if}
d6d580ec 43 {if $admin}
44 <br />
7b2413f6 45 [<a href="{$platal->ns}events/edit/{$e.eid}">
d6d580ec 46 modifier
25edb442 47 {icon name=date_edit title="Edition de l'événement"}</a>]
d6d580ec 48 &nbsp;&nbsp;&nbsp;&nbsp;
7b2413f6 49 [<a href="javascript:dynpostkv('{$platal->ns}events', 'del', {$e.eid})"
d6d580ec 50 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 ?')">
51 supprimer
a72a67b9 52 {icon name=delete title='Suppression'}</a>]
d6d580ec 53 {/if}
54 </th>
55 </tr>
56
57 <tr>
58 <td class="titre">date :</td>
59 <td>
60 {if $e.fin and $e.fin neq $e.debut}
61 {if $e.debut_day eq $e.fin_day}
62 le {$e.debut|date_format:"%d %B %Y"} de {$e.debut|date_format:"%H:%M"} à {$e.fin|date_format:"%H:%M"}
63 {else}
64 du {$e.debut|date_format:"%d %B %Y à %H:%M"}<br />
65 au {$e.fin|date_format:"%d %B %Y à %H:%M"}
66 {/if}
67 {else}
68 le {$e.debut|date_format:"%d %B %Y à %H:%M"}
69 {/if}
70 </td>
71 </tr>
72
73 <tr>
74 <td class="titre">annonceur :</td>
75 <td>
1f0d8e19 76 <a href='https://www.polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
d6d580ec 77 </td>
78 </tr>
79
cb24457f 80 {if $admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}
d6d580ec 81 <tr>
82 <td class="titre">Informations :</td>
83 <td class='actions'>
84 {if $admin || $e.show_participants}
7b2413f6 85 <a href="{$platal->ns}events/admin/{$e.eid}">
d6d580ec 86 consulter la liste des participants
7ac1ef77 87 {icon name=group title="Liste des participants"}
d6d580ec 88 </a><br />
89 {/if}
cb24457f 90 {if $e.deadline_inscription && $e.inscr_open}
91 dernières inscriptions
92 le {$e.deadline_inscription|date_format:"%d %B %Y"}
d6d580ec 93 {/if}
94 </td>
95 </tr>
cb24457f 96 {/if}
d6d580ec 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
9ece1588 135 {if $e.inscr_open}
d6d580ec 136 <tr>
137 <td colspan='2' class='center'>
138 <strong>
7b2413f6 139 <a href='{$platal->ns}events/sub/{$e.eid}'>
d6d580ec 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: *}