X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnetevents%2Findex.tpl;h=962fdaa81fb2b80888faad67619dc9356927b5d6;hb=ddec95b35f5434c80ce715d76467a61715f7f88a;hp=8a2f0648301246ab340b05017ec5cf1242f27720;hpb=99544d53fa61dee39d200b8cf7615b58999ceeb7;p=platal.git diff --git a/templates/xnetevents/index.tpl b/templates/xnetevents/index.tpl index 8a2f064..962fdaa 100644 --- a/templates/xnetevents/index.tpl +++ b/templates/xnetevents/index.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,54 +20,87 @@ {* *} {**************************************************************************} -{if !$admin} -
Choisis l'ordre d'affichage des événements pour ton groupe : | ++ + | +
Attention, ton choix s'appliquera à tous les utilisateurs ! |
+ La modification de l'inscription a été prise en compte !
+ {if $updated.topay > $updated.paid}
+
N'oublie pas de payer {math equation="a-b" a=$updated.topay b=$updated.paid} €
+ {if $updated.paid > 0}
+ (tu as déjà payé {$updated.paid|replace:'.':','} €)
+ {/if}
+ {if $updated.paiement_id}
+ [
+ Payer en ligne]
+ {/if}
+ {/if}
+
- [Annoncer un nouvel événement] + [Annoncer un nouvel événement]
{/if} {/if} -{foreach from=$evenements item=e} - +{foreach from=$evenements key=eid item=e}
-
- {icon name=calendar_view_day title="Evénement iCal"}
+
+ {icon name=calendar_view_day title="Ãvénement iCal"}
{$e.intitule}
{if !$e.inscr_open}
(Inscriptions closes)
{/if}
- {if $admin}
+ {if $is_admin}
- [ + [ modifier - {icon name=date_edit title="Edition de l'événement"}] + {icon name=date_edit title="Ãdition de l'événement"}] - [ + [ {if !$archive} archiver {icon name=package_add title="Archivage"}] {else} - désarchiver - {icon name=package_delete title="Désarchivage"}] + désarchiver + {icon name=package_delete title="Désarchivage"}] {/if} - [ + [ supprimer {icon name=delete title='Suppression'}] {/if} @@ -75,40 +108,27 @@ | |||
---|---|---|---|
date : | -
- {if $e.fin and $e.fin neq $e.debut}
- {if $e.debut_day eq $e.fin_day}
- le {$e.debut|date_format:"%d %B %Y"} de {$e.debut|date_format:"%H:%M"} à {$e.fin|date_format:"%H:%M"}
- {else}
- du {$e.debut|date_format:"%d %B %Y à %H:%M"} - au {$e.fin|date_format:"%d %B %Y à %H:%M"} - {/if} - {else} - le {$e.debut|date_format:"%d %B %Y à %H:%M"} - {/if} - |
+ Date : | +{$e.date} |
annonceur : | -- {$e.prenom} {$e.nom} ({$e.promo}) - | +Annonceur : | +{profile user=$e.uid promo=true groupperms=false} |
Informations : | +Informations : |
- {if $admin || $e.show_participants}
-
+ {if $is_admin || $e.show_participants}
+
consulter la liste des participants
{icon name=group title="Liste des participants"}
{/if} {if $e.deadline_inscription && $e.inscr_open} - dernières inscriptions + dernières inscriptions le {$e.deadline_inscription|date_format:"%d %B %Y"} {/if} |
@@ -117,36 +137,38 @@
|
- État inscription + Ãtat inscription : {if $e.inscr_open} - + {/if} |
{if !$e.inscrit}
Non inscrit {else} - {foreach from=$e.moments item=m} - {if !$m.nb} + {foreach from=$e.items key=item_id item=m} + {if !t($e.sub.$item_id) || !$e.sub.$item_id.nb} Tu ne viendras pas - {elseif $m.nb eq 1} - Tu viendras seul {else} - Tu viendras avec {$m.nb} personne{if $m.nb > 2}s{/if} - {/if} à {$m.titre} + Tu as inscrit {$e.sub.$item_id.nb} personne{if $e.sub.$item_id.nb > 1}s{/if} + {/if} à {$m.titre}. {/foreach} {/if} {if $e.topay} - Tu dois payer {$e.topay|replace:'.':','} € - {if $e.paid > 0} - (tu as déjà payé {$e.paid|replace:'.':','} €) - {/if} - {if $e.paiement_id} - [ + {if $e.paid eq '0.00'} + Tu dois payer {$e.topay|replace:'.':','} €. + {elseif $e.paid < $e.topay} + Tu dois encore payer {math equation="a-b" a=$e.topay b=$e.paid|replace:'.':','} € + (tu as déjà payé {$e.paid|replace:'.':','} €). + {else} + Tu as déjà payé les {$e.paid|replace:'.':','} € de ton inscription. + {/if} + {if t($e.paiement_id) && $e.paid < $e.topay} + [ Payer en ligne] - {/if} + {/if} {/if} |
@@ -156,8 +178,8 @@
||
- - gérer mon inscription + + Gérer mon inscription et voir les détails de l'événement. | @@ -170,22 +192,28 @@ {foreachelse} -