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