Fixes vim mode line.
[platal.git] / templates / xnetevents / admin.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 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
34ade5a6 23<h1>{$asso->nom}&nbsp;: <a href='{$platal->ns}events'>Événements</a> </h1>
0337d704 24
2b522870 25{if $evt.short_name && $participants|@count && $is_admin}
0337d704 26<p class="center">
9ff5b337
SJ
27 [<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un email à ceux qui viennent</a>]
28 <br />
29 [<a href="mailto:?bcc={$evt.short_name}-absents@{#globals.xnet.evts_domain#}">envoyer un email aux membres du groupe n'ayant pas répondu</a>]
30 <br />
31 [<a href="mailto:?bcc={$evt.short_name}-paye@{#globals.xnet.evts_domain#}">envoyer un email aux personnes ayant payé</a>]
32 <br />
33 [<a href="mailto:?bcc={$evt.short_name}-participants-non-paye@{#globals.xnet.evts_domain#}">envoyer un email aux inscrits n'ayant pas encore payé</a>]
0337d704 34</p>
35{/if}
36
0337d704 37<p class="center">
04d55591
SJ
38[<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if
39!$platal->argv[2]}class="erreur"{/if}>Vue générale</a>]
0337d704 40{foreach from=$moments item=m}
f6bdd218 41[<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 42{/foreach}
43</p>
0337d704 44
45<p class="center">
e979cd2b 46[<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
0337d704 47{foreach from=$alphabet item=c}
e979cd2b 48[<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
0337d704 49{/foreach}
50</p>
51
d24c8a11 52{if $is_admin}{literal}
0337d704 53<script type="text/javascript">
54function remplitAuto(mail) {
55 document.getElementById('inscription').mail.value=mail;
8919c4e1 56 var f = document.getElementById('montant');
57 if (f)
58 f.mail.value=mail;
0337d704 59}
60</script>
61{/literal}
62
d598204c
AL
63{if $tout}
64<p>
65 {$evt.nb_tot} personne{if $evt.nb_tot > 1}s ont réalisé leur {else} a réalisé son {/if}
66 inscription à l'événement {$evt.intitule} {if $evt.titre}- {$evt.titre} {/if}
67 qui aura lieu {$evt.date}.
68</p>
69{else}
70<p>
71 {$evt.nb_tot} personne{if $evt.nb_tot > 1}s participeront {else} participera {/if}
72 à {$evt.intitule} - {$evt.titre}
73</p>
74{/if}
75
0337d704 76{if $oublis}
77<p class="erreur">
e8439508 78Ils ont payé mais ont oublié de s'inscrire&nbsp;:
0337d704 79</p>
80
a7de4ef7 81<table summary="payé mais non inscrits" class="tinybicol">
0337d704 82 <tr>
a7de4ef7 83 <th>Prénom NOM</th>
0337d704 84 <th>Promo</th>
85 <th>Infos</th>
86 <th>Montant</th>
87 </tr>
896479ae 88 {foreach from=$oubliinscription item=m}
98a7e9dc 89 <tr class="pair">
0337d704 90 <td>
e46cf8c4 91 {if $is_admin}<a href="javascript:remplitAuto('{$m.user->login()}')">{/if}
07eb5b0e 92 {profile user=$m.user link=false}
ad40e162 93 {if $is_admin}</a>{/if}
0337d704 94 </td>
07eb5b0e 95 <td>{$m.user->promo()}</td>
0337d704 96 <td>
07eb5b0e
FB
97 <a href="https://www.polytechnique.org/profile/{$m.user->login()}">{icon name=user_suit title="fiche"}</a>
98 <a href="https://www.polytechnique.org/vcard/{$m.user->login()}.vcf">{icon name=vcard title="vcard"}</a>
99 <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a>
0337d704 100 </td>
a7c0d514 101 <td>{$m.amount|replace:'.':','} &euro;</td>
0337d704 102 </tr>
896479ae 103 {/foreach}
0337d704 104</table>
105
106<hr />
107{/if}
108
109{/if}
110
111<table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}">
112 <tr>
40ca91d2 113 {if $is_admin && $evt.paiement_id && $tout}
58591700 114 {assign var=height value='rowspan="2"'}
115 {/if}
116 <th {$height|smarty:nodefaults}>Prénom NOM</th>
117 <th {$height|smarty:nodefaults}>Promo</th>
118 <th {$height|smarty:nodefaults}>Info</th>
0337d704 119 {if $tout}
b479e26b 120 {if $moments}
121 {foreach from=$moments item=m}
58591700 122 <th {$height|smarty:nodefaults}>{$m.titre}</th>
b479e26b 123 {/foreach}
124 {else}
58591700 125 <th {$height|smarty:nodefaults}>Nombre</th>
b479e26b 126 {/if}
d24c8a11 127 {if $is_admin && $evt.money}
58591700 128 <th {$height|smarty:nodefaults}>Montant</th>
129 <th colspan="3">Payé</th>
0337d704 130 {/if}
131 {else}
58591700 132 <th {$height|smarty:nodefaults}>Nombre</th>
0337d704 133 {/if}
134 </tr>
40ca91d2 135 {if $is_admin && $evt.paiement_id && $tout}
58591700 136 <tr>
137 <th>Télépaiement</th>
138 <th>Autre</th>
139 <th>Total</th>
140 </tr>
141 {/if}
0337d704 142 {foreach from=$participants item=m}
ed21e24a 143 <tr>
0337d704 144 <td>
07eb5b0e
FB
145 {if $is_admin}<a href="javascript:remplitAuto('{$m.user->login()}')">{/if}
146 {profile user=$m.user promo=false link=false}
f97a955b 147 {if $is_admin}</a>{/if}
0337d704 148 </td>
07eb5b0e 149 <td>{$m.user->promo()}</td>
0337d704 150 <td>
07eb5b0e
FB
151 {if $m.user->hasProfile()}
152 <a href="https://www.polytechnique.org/profile/{$m.user->login()}">{icon name=user_suit title="fiche"}</a>
153 <a href="https://www.polytechnique.org/vcard/{$m.user->login()}.vcf">{icon name=vcard title="vcard"}</a>
154 <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a>
0337d704 155 {else}
07eb5b0e 156 <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a>
0337d704 157 {/if}
158 </td>
159 {if $tout}
b479e26b 160 {if $moments}
161 {foreach from=$moments item=i}
162 <td>{$m[$i.item_id]}</td>
163 {/foreach}
164 {else}
165 <td>{$m[1]}</td>
166 {/if}
d24c8a11 167 {if $is_admin && $evt.money}
0337d704 168 <td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}&euro;</td>
58591700 169 {if $evt.paiement_id}
170 <td>{$m.telepayment|default:0}&euro;</td>
171 <td>{$m.adminpaid|default:0}&euro;</td>
172 {/if}
43863a7f 173 <td{if $m.montant < $m.paid} style="color: maroon"{/if}>{$m.paid}&euro;</td>
0337d704 174 {/if}
175 {else}
176 <td>
177 {$m.nb}
178 </td>
179 {/if}
180 </tr>
181 {/foreach}
3eaf05e3 182 {if $is_admin && $evt.money && $tout}
e01ebe65
FB
183 <tr>
184 {assign var=cols value=$moments|@count}
185 <td colspan="{$cols+3}" class="right"><strong>Total</strong></td>
186 <td>{$evt.topay}&euro;</td>
187 {if $evt.paiement_id}
188 <td>{$evt.telepaid|default:0}&euro;</td>
189 <td>{$evt.adminpaid|default:0}&euro;</td>
190 {/if}
191 <td>{$evt.paid}&euro;</td>
192 </tr>
193 {/if}
0337d704 194</table>
195
196<p class="descr">
197{foreach from=$links item=ofs key=txt}
e979cd2b 198<a href="{$platal->pl_self()}?offset={$ofs}&amp;initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
0337d704 199{/foreach}
200</p>
201
07eb5b0e 202{if $absents|@count}
61664f8b 203
204<hr />
205
206<p>Les personnes suivantes ont indiqué qu'elles ne viendraient pas à l'événement&nbsp;:</p>
207
208<table class="tinybicol">
209 <tr><th>Prénom NOM</th><th>Origine</th></tr>
07eb5b0e 210 {foreach from=$absents item=m}
61664f8b 211 <tr>
212 <td>
07eb5b0e
FB
213 {if $is_admin}<a href="javascript:remplitAuto('{$m->login()}')">{/if}
214 {profile user=$m link=false promo=false}
adcc7deb 215 {if $is_admin}</a>{/if}
61664f8b 216 </td>
217 <td>
07eb5b0e 218 {$m->promo()}
61664f8b 219 </td>
220 </tr>
07eb5b0e 221 {/foreach}
61664f8b 222</table>
223
224{/if}
225
d24c8a11 226{if $is_admin}
0337d704 227
228<p class="descr">
80575e7c 229 {include file="include/csv.tpl" url="`$platal->ns`events/csv/`$evt.eid`/`$platal->argv[2]`/`$evt.csv_name`.csv"}
0337d704 230</p>
231
232<hr />
233
234<p class="descr">
a7de4ef7 235En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe.
faefdbb7 236Donne ici son email, ainsi que le nombre de participants.
0337d704 237</p>
238
e979cd2b 239<form action="{$platal->pl_self()}" method="post" id="inscription">
4fcbb455 240 {xsrf_token_field}
0337d704 241 <p class="descr">
ed21e24a 242 <input type="hidden" name="adm" value="nbs" />
bd46a8e4 243
faefdbb7 244 Email&nbsp;: <input name="mail" size="20" />
ed21e24a 245
246 {if $platal->argv[2]}
77af6562 247 {$evt.titre}&nbsp;: <input name="nb[{$platal->argv[2]}]" size="1" value="1" />
b479e26b 248 {else}
ed21e24a 249 {foreach from=$moments item=m}
77af6562 250 {$m.titre}&nbsp;: <input name="nb[{$m.item_id}]" size="1" value="1"/>
ed21e24a 251 {foreachelse}
77af6562 252 Nombre&nbsp;: <input name="nb[1]" size="1" value="1" />
ed21e24a 253 {/foreach}
b479e26b 254 {/if}
ed21e24a 255 <input type="submit" />
0337d704 256 </p>
3bfa0e8d
PC
257 <p class="descr">
258 Tu peux aussi enlever toute trace de son inscription ou de sa décision de ne pas s'insscrire (s'il n'a rien payé).
259 <div class="center">
260 <input type="submit" name="cancel" value="Annuler l'inscription" />
261 </div>
262 </p>
0337d704 263</form>
264
ed21e24a 265{if $evt.money}
266
0337d704 267<hr />
268
269<p class="descr">
a7de4ef7 270En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement
271du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux
272entrer un montant négatif.
0337d704 273</p>
274
275<p class="descr">
77af6562 276Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous.
0337d704 277</p>
278
e979cd2b 279<form action="{$platal->pl_self()}" method="post" id="montant">
4fcbb455 280 {xsrf_token_field}
0337d704 281 <p class="descr">
0337d704 282 <input type="hidden" name="adm" value="prix" />
faefdbb7 283 Email&nbsp;: <input name="mail" size="20" />
77af6562 284 montant&nbsp;: <input name="montant" size="3" value="0,00" /> &euro;
0337d704 285 <input type="submit" />
286 </p>
287</form>
288{/if}
289
ed21e24a 290{/if}
291
448c8cdc 292{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}