Updates education and adapts AX data to merge them into Xorg data (Closes #891).
[platal.git] / templates / xnetevents / subscribe.tpl
index e0c9e5d..7c19e95 100644 (file)
@@ -61,6 +61,7 @@
 {/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} &euro;)</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}