Adds labels around checkbox and radio inputs.
[platal.git] / templates / xnetgrp / announce-edit.tpl
index 6337ea4..98e0092 100644 (file)
@@ -42,6 +42,7 @@ function visibilityChange(box)
 {/if}
 
 <form method="post" action="{$platal->ns}announce/{if $new}new{else}edit/{$art.id}{/if}" enctype="multipart/form-data">
+{xsrf_token_field}
 <div>
   <table class="bicol">
     <tr>
@@ -56,7 +57,7 @@ function visibilityChange(box)
       <td>
         <small>
           Le contenu est destiné à recevoir la description de ce qui est annoncé.
-          Il faut éviter d'y mettre des adresses mails ou web (surtout si l'annonce est publique),
+          Il faut éviter d'y mettre des adresses emails ou web (surtout si l'annonce est publique),
           qui devront être placées dans la section "contacts".
         </small>
       </td>
@@ -86,8 +87,8 @@ function visibilityChange(box)
       <td class="titre">Contacts&nbsp;:</td>
       <td>
         <small>
-          La section "contacts" sert à noter les informations telles que les adresses mails de contact, les sites web.
-          Elle n'est accessible qu'aux personnes authentifiées. Si l'annonce est attachée à une événement, un lien vers
+          La section "contacts" sert à noter les informations telles que les adresses emails de contact, les sites web.
+          Elle n'est accessible qu'aux personnes authentifiées. Si l'annonce est attachée à un événement, un lien vers
           la page d'inscription est automatiquement ajouté.
         </small>
       </td>
@@ -157,8 +158,8 @@ function visibilityChange(box)
     <tr>
       <td class="titre">Visibilité&nbsp;:</td>
       <td>
-        <input type="checkbox" name="public" {if $art.public}checked="checked"{/if} onchange="visibilityChange(this)" />
-        Rendre cette annonce publique.
+        <label><input type="checkbox" name="public" {if $art.public}checked="checked"{/if} onchange="visibilityChange(this)" />
+        Rendre cette annonce publique.</label>
       </td>
     </tr>
     <tr id="promo_titre" {if $art.public}style="display: none"{/if}>
@@ -178,14 +179,14 @@ function visibilityChange(box)
     </tr>
     <tr>
       <td colspan="2">
-        <input type="checkbox" name="xorg" {if $art.xorg}checked="checked"{/if} />
-        sur la page d'accueil de Polytechnique.org
+        <label><input type="checkbox" name="xorg" {if $art.xorg}checked="checked"{/if} />
+        sur la page d'accueil de Polytechnique.org</label>
       </td>
     </tr>
     <tr>
       <td colspan="2">
-        <input type="checkbox" name="nl" {if $art.nl}checked="checked"{/if} />
-        dans la Lettre Mensuelle de Polytechnique.org
+        <label><input type="checkbox" name="nl" {if $art.nl}checked="checked"{/if} />
+        dans la Lettre Mensuelle de Polytechnique.org</label>
       </td>
     </tr>
     <tr class="pair">