{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2008 Polytechnique.org *}
+{* Copyright (C) 2003-2009 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
</p>
<p class='descr'>
- Cet événement a lieu
- <strong>
- {if $event.fin and $event.fin neq $event.debut}
- {if $event.debut_day eq $event.fin_day}
- le {$event.debut|date_format:"%d %B %Y"} de {$event.debut|date_format:"%H:%M"} à {$event.fin|date_format:"%H:%M"}
- {else}
- du {$event.debut|date_format:"%d %B %Y à %H:%M"}<br />
- au {$event.fin|date_format:"%d %B %Y à %H:%M"}
- {/if}
- {else}
- le {$event.debut|date_format:"%d %B %Y à %H:%M"}
- {/if}
- </strong>
- et a été proposé par
+ Cet événement a lieu <strong>{$event.date}</strong> et a été proposé par
<a href='https://www.polytechnique.org/profile/{$event.alias}' class='popup2'>
{$event.prenom} {$event.nom} ({$event.promo}).
</a>
{/if}
<form action="{$platal->ns}events/sub/{$event.eid}" method="post">
+ {xsrf_token_field}
<table class="tiny" cellspacing="0" cellpadding="0">
{foreach from=$event.moments item=m}
<tr><th>{$m.titre} ({$m.montant} €)</th></tr>
<tr>
<td>
{if $event.inscr_open}
- <input type="radio" name="moment[{$m.item_id}]" value="0"
- {if !$m.nb}checked="checked"{/if}/>non
+ <label><input type="radio" name="moment[{$m.item_id}]" value="0"
+ {if !$m.nb}checked="checked"{/if}/>non</label>
{if $event.noinvite}
- <input type="radio" name="moment[{$m.item_id}]" value="1"
- {if $m.nb eq 1}checked="checked"{/if}/>oui
+ <label><input type="radio" name="moment[{$m.item_id}]" value="1"
+ {if $m.nb eq 1}checked="checked"{/if}/>oui</label>
{else}
- <input type="radio" name="moment[{$m.item_id}]" value="1"
- {if $m.nb eq 1}checked="checked"{/if}/>seul<br />
- <input type="radio" name="moment[{$m.item_id}]" value="2"
- {if $m.nb > 1}checked="checked"{/if}/>avec
+ <label><input type="radio" name="moment[{$m.item_id}]" value="1"
+ {if $m.nb eq 1}checked="checked"{/if}/>seul</label><br />
+ <label><input type="radio" name="moment[{$m.item_id}]" value="2" id="avec"
+ {if $m.nb > 1}checked="checked"{/if}/>avec</label>
<input size="2" name="personnes[{$m.item_id}]"
- value="{if $m.nb > 1}{math equation='x - 1' x=$m.nb}{else}1{/if}"/> personnes
+ value="{if $m.nb > 1}{math equation='x - 1' x=$m.nb}{else}1{/if}"/><label for="avec"> personnes</label>
{/if}
{else}
{if !$m.nb}