{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2008 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-<h1>{$asso.nom} : Evénements</h1>
+{if !$is_admin}
+<h1>{$asso.nom} : Événements</h1>
+{else}
+<h1>
+ {$asso.nom} :
+ {if $archive}[<a href="{$platal->ns}events">Événements</a>] {else}Événements {/if}
+ {if $archive}Archives {else}[<a href="{$platal->ns}events/archive">Archives</a>] {/if}
+</h1>
+
+{if $updated}
+<p class='error'>
+ La modification de l'inscription a été prise en compte !
+ {if $updated.topay > $updated.paid}
+ <br/>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}
+ [<a href="{$platal->ns}payment/{$updated.paiement_id}?montant={math equation="a-b" a=$updated.topay b=$updated.paid}">
+ Payer en ligne</a>]
+ {/if}
+ {/if}
+</p>
+{/if}
-{if $admin}
+{if !$archive}
<p class="center">
- [<a href="{rel}/{$platal->ns}events/edit">Annoncer un nouvel événement</a>]
+ [<a href="{$platal->ns}events/edit">Annoncer un nouvel événement</a>]
</p>
{/if}
+{/if}
{foreach from=$evenements item=e}
-<table class="bicol" cellspacing="0" cellpadding="0" {popup caption=$e.intitule text=$e.descriptif}>
+<table class="bicol" cellspacing="0" cellpadding="0">
<colgroup>
<col width='25%' />
</colgroup>
<tr>
- <th colspan="2">
+ <th colspan="2"{if !$e.inscr_open} class="grayed"{/if}>
+ <a href="{$platal->ns}events/ical/{$e.short_name|default:$e.eid}/{$e.short_name|default:$e.eid}.ics" style="display: block; float: left;">
+ {icon name=calendar_view_day title="Événement iCal"}
+ </a>
{$e.intitule}
- {if $admin}
+ {if !$e.inscr_open}
+ (<span class="error">Inscriptions closes</span>)
+ {/if}
+ {if $is_admin}
<br />
- [<a href="{rel}/{$platal->ns}events/edit/{$e.eid}?mod=1">
+ [<a href="{$platal->ns}events/edit/{$e.short_name|default:$e.eid}">
modifier
- <img src="{rel}/images/profil.png" title="Edition de l'événement" alt="Edition" />
- </a>]
-
- [<a href="javascript:dynpostkv('{rel}/{$platal->ns}events', 'del', {$e.eid})"
- 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 ?')">
+ {icon name=date_edit title="Édition de l'événement"}</a>]
+
+ [<a href="javascript:dynpostkv('{$platal->pl_self()}', {if !$archive}'archive'{else}'unarchive'{/if}, {$e.eid})">
+ {if !$archive}
+ archiver
+ {icon name=package_add title="Archivage"}</a>]
+ {else}
+ désarchiver
+ {icon name=package_delete title="Désarchivage"}</a>]
+ {/if}
+
+ [<a href="javascript:dynpostkv('{$platal->ns}events', 'del', {$e.eid})"
+ 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 ?')">
supprimer
- <img src="{rel}/images/del.png" alt="Suppression de {$e.intitule}" title="Suppression" />
- </a>]
+ {icon name=delete title='Suppression'}</a>]
{/if}
</th>
</tr>
<tr>
- <td class="titre">date :</td>
+ <td class="titre">Date :</td>
<td>
{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"}
+ 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"}<br />
- au {$e.fin|date_format:"%d %B %Y à %H:%M"}
+ du {$e.debut|date_format:"%d %B %Y à %H:%M"}<br />
+ 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}
</td>
</tr>
<tr>
- <td class="titre">annonceur :</td>
+ <td class="titre">Annonceur :</td>
<td>
<a href='https://www.polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
</td>
</tr>
+ {if $is_admin || $e.show_participants || ($e.deadline_inscription && $e.inscr_open)}
<tr>
- <td class="titre">Informations :</td>
+ <td class="titre">Informations :</td>
<td class='actions'>
- {if $admin || $e.show_participants}
- <a href="{rel}/{$platal->ns}events/admin/{$e.eid}">
+ {if $is_admin || $e.show_participants}
+ <a href="{$platal->ns}events/admin/{$e.short_name|default:$e.eid}">
consulter la liste des participants
- <img src="{rel}/images/loupe.gif" title="Liste des participants" alt="" />
+ {icon name=group title="Liste des participants"}
</a><br />
{/if}
- {if $e.deadline_inscription}
- {if $e.inscr_open}
- dernières inscriptions
- le {$e.deadline_inscription|date_format:"%d %B %Y"}
- {else}
- <span class='error'>Inscriptions closes.</span><br />
- {/if}
+ {if $e.deadline_inscription && $e.inscr_open}
+ dernières inscriptions
+ le {$e.deadline_inscription|date_format:"%d %B %Y"}
{/if}
</td>
</tr>
+ {/if}
<tr>
<td class="titre">
- État inscription
+ État inscription :
{if $e.inscr_open}
<input type="hidden" name="evt_{counter}" value="{$e.eid}" />
{/if}
{elseif $m.nb eq 1}
Tu viendras seul
{else}
- Tu viendras avec {$m.nb} personne{if $m.nb > 2}s{/if}
- {/if} à <em>{$m.titre}</em><br />
+ Tu viendras avec {$m.nb-1} personne{if $m.nb > 2}s{/if}
+ {/if} à <em>{$m.titre}</em>.<br />
{/foreach}
{/if}
{if $e.topay}
<span class="error">
- Tu dois payer {$e.topay|replace:'.':','} €
- {if $e.paid > 0}
- (tu as déjà payé {$e.paid|replace:'.':','} €)
- {/if}
- {if $e.paiement_id}
- [<a href="https://www.polytechnique.org/payment/{$e.paiement_id}?montant={$e.topay}}">
+ {if !$e.paid}
+ 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 $e.paiement_id && $e.paid < $e.topay}
+ [<a href="{$platal->ns}payment/{$e.paiement_id}?montant={math equation="a-b" a=$e.topay b=$e.paid}">
Payer en ligne</a>]
- {/if}
+ {/if}
</span>
{/if}
</td>
</tr>
- {if (!$e.membres_only or $is_member or $e.inscrit) and $e.inscr_open}
+ {if $e.inscr_open}
<tr>
<td colspan='2' class='center'>
<strong>
- <a href='{rel}/{$platal->ns}events/sub/{$e.eid}'>
- gérer mon inscription
+ <a href='{$platal->ns}events/sub/{$e.short_name|default:$e.eid}'>
+ gérer mon inscription
</a>
</strong>
</td>
{foreachelse}
+
<p class="descr">
- Aucun événement n'a été référencé par les animateurs du groupe.
+{if $archive}
+ Aucun événement n'a été archivé par les animateurs du groupe.
+{else}
+ Aucun événement n'a été référencé par les animateurs du groupe.
+{/if}
</p>
{/foreach}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{if $evenements}
+<p class="descr">
+ En cliquant sur l'icône {icon name=calendar_view_day title="Événement iCal"} associée à un événement,
+ tu peux télécharger la version iCal de l'événement qui permet de l'ajouter dans ton agenda électronique.
+</p>
+{/if}
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}