X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnet%2Fgroupe%2Fevenements.tpl;h=96f3832505805977151f3e6822e1905d7ff19da6;hb=4f10a0584b9a24af98c39de0919c9a007963be9b;hp=2d8b2280c9567b1aee0ce0ef608d1a83341be472;hpb=3b3e9d150cc36f1ac440ef897a1fea19621214ee;p=platal.git diff --git a/templates/xnet/groupe/evenements.tpl b/templates/xnet/groupe/evenements.tpl index 2d8b228..96f3832 100644 --- a/templates/xnet/groupe/evenements.tpl +++ b/templates/xnet/groupe/evenements.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2004 Polytechnique.org *} +{* Copyright (C) 2003-2006 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -21,24 +21,18 @@ {**************************************************************************}

{$asso.nom} : -{if ($smarty.request.add || $smarty.request.mod || $get_form) && $admin} -Evénements -{else} Evénements -{/if}

{if !$logged}

Aucune manifestation publique n'a été saisie par ce groupe pour l'instant...

-{elseif $get_form} - {include file='xnet/groupe/form_evenement.tpl'} {else} {if $admin}

- [Annoncer un nouvel événement] + [Annoncer un nouvel événement]

{/if} @@ -50,55 +44,125 @@ Ev {else} - {iterate from=$evenements item=e} +
+ {foreach from=$evenements item=e} - + - + - + - - - + + {/if} + {assign var="montant" value=0} + {if !$e.membres_only or $is_member or $e.inscrit} + {if $e.inscr_open} + + + + {/if} + {iterate from=$e.moments item=m} + {assign var="montant" value=$montant+$m.montant*$m.nb} + + + + + {/iterate} + {if $e.deadline_inscription} + + + + {/if} + {if $montant > 0 || $e.paid > 0} + + + + {/if} + {/if}
{$e.intitule} - {if $admin || $e.show_participants} - Liste des participants - {/if} {if $admin} - Edition de l'événement - Suppression de {$e.intitule} + Edition de l'événement + Suppression de {$e.intitule} {/if}
date : - {if $e.fin} - du {$e.debut|date_format:"%d %B %Y à %H:%M"}
- au {$e.fin|date_format:"%d %B %Y à %H:%M"} + {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"} + le {$e.debut|date_format:"%d %B %Y à %H:%M"} {/if}
annonceur : - {$e.prenom} {$e.nom} ({$e.promo}) + {$e.prenom} {$e.nom} ({$e.promo})
- Détails... - - {if $e.inscrit} - tu es inscrit à cet événément. - {if $e.inscrit > 1}(avec {$e.inscrit - 1} invité{if $e.inscrit > 2}s{/if}){/if} - - {else} - tu n'es pas inscrit à cet événément. - {/if} + {if $admin || $e.show_participants} +
+ + Liste des participants + Liste des participants +
+ Je viendrai... + +
{$m.titre} + {if $e.inscr_open} + non + {if $e.noinvite} + oui + {else} + seul
+ 1}checked="checked"{/if}/>avec personnes + {/if} + {else} + {if !$m.nb} + Je ne viendrai pas. + {elseif $m.nb eq 1} + Je viendrai{if !$e.noinvite} seul{/if}. + {else} + Je viendrai avec {$m.nb} personne{if $m.nb > 2}s{/if} + {/if} + {/if} +
+ {if $e.inscr_open} + dernières inscriptions + le {$e.deadline_inscription|date_format:"%d %B %Y"} + {else} + Inscriptions closes. + {/if} +
$e.paid}class="erreur"{/if}> + Tu dois payer {$montant|replace:'.':','} €{if $e.paid > 0}, et tu as déjà payé {$e.paid|replace:'.':','} €{/if}. + {if $e.paiement_id && $montant > $e.paid} + [Payer en ligne] + {/if} +
-
- {/iterate} + {if (!$e.membres_only or $is_member or $e.inscrit) and $e.inscr_open} +

+ +

+ {else} +

 

+ {/if} + {/foreach} +
+ +
+
{/if} {/if}