Close #695: More details about payments for xnet events
[platal.git] / templates / xnetevents / admin.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 Polytechnique.org *}
0337d704 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
a7de4ef7 23<h1>{$asso.nom} : <a href='{$platal->ns}events'>Evénements</a> </h1>
0337d704 24
25<p>
a7de4ef7 26L'événement {$evt.intitule} {if $evt.titre} - {$evt.titre}{/if} comptera
ed21e24a 27{$evt.nb_tot} personne{if $evt.nb_tot > 1}s{/if}.
0337d704 28</p>
29
30{if $evt.participant_list}
31<p class="center">
a7de4ef7 32[<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un mail à ceux qui viennent</a>]
76bbde1c 33-
7d73bb7b 34[<a href="mailto:?bcc={$evt.short_name}-absents@{#globals.xnet.evts_domain#}">envoyer un mail aux membres non inscrits</a>]
0337d704 35</p>
36{/if}
37
5070a22d 38{if count($moments) > 1}
0337d704 39<p class="center">
f6bdd218 40[<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if !$platal->argv[2]}class="erreur"{/if}>tout</a>]
0337d704 41{foreach from=$moments item=m}
f6bdd218 42[<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}/{$m.item_id}" {if $platal->argv[2] eq $m.item_id}class="erreur"{/if}>{$m.titre}</a>]
0337d704 43{/foreach}
44</p>
45{/if}
46
47<p class="center">
e979cd2b 48[<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
0337d704 49{foreach from=$alphabet item=c}
e979cd2b 50[<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
0337d704 51{/foreach}
52</p>
53
d24c8a11 54{if $is_admin}{literal}
0337d704 55<script type="text/javascript">
56function remplitAuto(mail) {
57 document.getElementById('inscription').mail.value=mail;
8919c4e1 58 var f = document.getElementById('montant');
59 if (f)
60 f.mail.value=mail;
0337d704 61 return false;
62}
63</script>
64{/literal}
65
66{if $oublis}
67<p class="erreur">
a7de4ef7 68Ils ont payé mais ont oublié de s'inscrire :
0337d704 69</p>
70
a7de4ef7 71<table summary="payé mais non inscrits" class="tinybicol">
0337d704 72 <tr>
a7de4ef7 73 <th>Prénom NOM</th>
0337d704 74 <th>Promo</th>
75 <th>Infos</th>
76 <th>Montant</th>
77 </tr>
78 {iterate from=$oubliinscription item=m}
98a7e9dc 79 <tr class="pair">
0337d704 80 <td>
d24c8a11 81 <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
0337d704 82 {$m.prenom} {$m.nom}
83 </a>
84 </td>
85 <td>{$m.promo}</td>
86 <td>
7ac1ef77 87 <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a>
88 <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a>
7d73bb7b 89 <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
0337d704 90 </td>
91 <td>{$m.montant}</td>
92 </tr>
93 {/iterate}
94</table>
95
96<hr />
97{/if}
98
99{/if}
100
101<table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}">
102 <tr>
58591700 103 {if $is_admin && $evt.paiement_id}
104 {assign var=height value='rowspan="2"'}
105 {/if}
106 <th {$height|smarty:nodefaults}>Prénom NOM</th>
107 <th {$height|smarty:nodefaults}>Promo</th>
108 <th {$height|smarty:nodefaults}>Info</th>
0337d704 109 {if $tout}
b479e26b 110 {if $moments}
111 {foreach from=$moments item=m}
58591700 112 <th {$height|smarty:nodefaults}>{$m.titre}</th>
b479e26b 113 {/foreach}
114 {else}
58591700 115 <th {$height|smarty:nodefaults}>Nombre</th>
b479e26b 116 {/if}
d24c8a11 117 {if $is_admin && $evt.money}
58591700 118 <th {$height|smarty:nodefaults}>Montant</th>
119 <th colspan="3">Payé</th>
0337d704 120 {/if}
121 {else}
58591700 122 <th {$height|smarty:nodefaults}>Nombre</th>
0337d704 123 {/if}
124 </tr>
58591700 125 {if $is_admin && $evt.paiement_id}
126 <tr>
127 <th>Télépaiement</th>
128 <th>Autre</th>
129 <th>Total</th>
130 </tr>
131 {/if}
0337d704 132 {foreach from=$participants item=m}
ed21e24a 133 <tr>
0337d704 134 <td>
d24c8a11 135 <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
0337d704 136 {if $m.femme}&bull;{/if}{$m.prenom} {$m.nom}
137 </a>
138 </td>
139 <td>{$m.promo}</td>
140 <td>
141 {if $m.x}
7ac1ef77 142 <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a>
143 <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a>
7d73bb7b 144 <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
0337d704 145 {else}
f7413044 146 <a href="mailto:{$m.email}">{icon name=email title="mail"}</a>
0337d704 147 {/if}
148 </td>
149 {if $tout}
b479e26b 150 {if $moments}
151 {foreach from=$moments item=i}
152 <td>{$m[$i.item_id]}</td>
153 {/foreach}
154 {else}
155 <td>{$m[1]}</td>
156 {/if}
d24c8a11 157 {if $is_admin && $evt.money}
0337d704 158 <td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}&euro;</td>
58591700 159 {if $evt.paiement_id}
160 <td>{$m.telepayment|default:0}&euro;</td>
161 <td>{$m.adminpaid|default:0}&euro;</td>
162 {/if}
163 <td {if $m.montant < $m.paid}class="erreur"{/if}>{$m.paid}&euro;</td>
0337d704 164 {/if}
165 {else}
166 <td>
167 {$m.nb}
168 </td>
169 {/if}
170 </tr>
171 {/foreach}
172</table>
173
174<p class="descr">
175{foreach from=$links item=ofs key=txt}
e979cd2b 176<a href="{$platal->pl_self()}?offset={$ofs}&amp;initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
0337d704 177{/foreach}
178</p>
179
61664f8b 180{if $absents->total()}
181
182<hr />
183
184<p>Les personnes suivantes ont indiqué qu'elles ne viendraient pas à l'événement&nbsp;:</p>
185
186<table class="tinybicol">
187 <tr><th>Prénom NOM</th><th>Origine</th></tr>
188 {iterate from=$absents item=m}
189 <tr>
190 <td>
191 <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
192 {if $m.sexe}&bull;{/if}{$m.prenom} {$m.nom}
193 </a>
194 </td>
195 <td>
196 {$m.promo}
197 </td>
198 </tr>
199 {/iterate}
200</table>
201
202{/if}
203
d24c8a11 204{if $is_admin}
0337d704 205
206<p class="descr">
a7de4ef7 207[<a href="{$platal->ns}events/csv/{$evt.eid}/{$platal->argv[2]}/{$evt.intitule}{if $evt.titre}.{$evt.titre}{/if}.csv">Télécharger le fichier Excel</a>]
0337d704 208</p>
209
210<hr />
211
212<p class="descr">
a7de4ef7 213En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe.
ed21e24a 214Donne ici son mail, ainsi que le nombre de participants.
0337d704 215</p>
216
e979cd2b 217<form action="{$platal->pl_self()}" method="post" id="inscription">
0337d704 218 <p class="descr">
ed21e24a 219 <input type="hidden" name="adm" value="nbs" />
bd46a8e4 220
ed21e24a 221 Mail: <input name="mail" size="20" />
222
223 {if $platal->argv[2]}
224 {$evt.titre}: <input name="nb[{$platal->argv[2]}]" size="1" value="1" />
b479e26b 225 {else}
ed21e24a 226 {foreach from=$moments item=m}
227 {$m.titre}: <input name="nb[{$m.item_id}]" size="1" value="1"/>
228 {foreachelse}
229 Nombre: <input name="nb[1]" size="1" value="1" />
230 {/foreach}
b479e26b 231 {/if}
ed21e24a 232 <input type="submit" />
0337d704 233 </p>
234</form>
235
ed21e24a 236{if $evt.money}
237
0337d704 238<hr />
239
240<p class="descr">
a7de4ef7 241En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement
242du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux
243entrer un montant négatif.
0337d704 244</p>
245
246<p class="descr">
247Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous
248</p>
249
e979cd2b 250<form action="{$platal->pl_self()}" method="post" id="montant">
0337d704 251 <p class="descr">
0337d704 252 <input type="hidden" name="adm" value="prix" />
253 Mail: <input name="mail" size="20" />
254 montant: <input name="montant" size="3" value="0,00" /> &euro;
255 <input type="submit" />
256 </p>
257</form>
258{/if}
259
ed21e24a 260{/if}
261
a7de4ef7 262{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}