Adds labels around checkbox and radio inputs.
authorStéphane Jacob <jacou@melix.net>
Sat, 27 Sep 2008 15:48:51 +0000 (17:48 +0200)
committerStéphane Jacob <jacou@melix.net>
Sat, 27 Sep 2008 15:48:51 +0000 (17:48 +0200)
21 files changed:
templates/admin/utilisateurs.tpl
templates/banana/index.tpl
templates/carnet/notifs.tpl
templates/core/password_prompt_logged.tpl
templates/emails/alias.tpl
templates/emails/index.tpl
templates/emails/send.tpl
templates/events/form.tpl
templates/lists/create.tpl
templates/lists/delete.tpl
templates/lists/options.tpl
templates/lists/soptions.tpl
templates/marketing/public.tpl
templates/register/success.tpl
templates/xnetevents/edit.tpl
templates/xnetevents/subscribe.tpl
templates/xnetgrp/announce-edit.tpl
templates/xnetgrp/edit.tpl
templates/xnetgrp/mail.tpl
templates/xnetgrp/membres-new-search.tpl
templates/xnetlists/sync.tpl

index ff2e34f..34eea3f 100644 (file)
@@ -178,8 +178,8 @@ function ban_read()
         Sexe
       </td>
       <td>
-        femme <input type="radio" name="sexeN" {if $mr.sexe}checked="checked"{/if} value='1'/>
-        <input type="radio" name="sexeN" {if !$mr.sexe}checked="checked"{/if} value='0'/> homme
+        <label>femme <input type="radio" name="sexeN" {if $mr.sexe}checked="checked"{/if} value='1'/></label>
+        <label><input type="radio" name="sexeN" {if !$mr.sexe}checked="checked"{/if} value='0'/> homme</label>
       </td>
     </tr>
     <tr class="pair">
@@ -233,8 +233,8 @@ function ban_read()
         Surveillance
       </td>
       <td>
-        <input type="checkbox" name="watchN" {if $mr.watch}checked="checked"{/if} />
-        Surveiller l'activité de ce compte<br />
+        <label><input type="checkbox" name="watchN" {if $mr.watch}checked="checked"{/if} />
+        Surveiller l'activité de ce compte</label><br />
         <span class="smaller">Cette option permet d'avoir des logs complets de l'activité
         du compte via le logger, et d'être alerté lors des connexions de l'utilisateur.</span>
       </td>
index af32d67..7ea449f 100644 (file)
     <tr class="pair">
       <td class="titre">Affichage des fils de discussion</td>
       <td>
-        <input type="radio" name="bananadisplay" value="0"
-               {if !$disp}checked="checked"{/if} /> Afficher tous les messages <br />
-        <input type="radio" name="bananadisplay" value="1"
-               {if $disp}checked="checked"{/if} /> Afficher seulement les fils de discussion contenant des messages non lus
+        <label><input type="radio" name="bananadisplay" value="0"
+               {if !$disp}checked="checked"{/if} /> Afficher tous les messages</label><br />
+        <label><input type="radio" name="bananadisplay" value="1" {if $disp}checked="checked"{/if} />
+        Afficher seulement les fils de discussion contenant des messages non lus</label>
       </td>
     </tr>
     <tr class="pair">
     <tr class="pair">
       <td class="titre">Mise à jour des messages non lus</td>
       <td>
-        <input type="radio" name="bananaupdate" value="1"
-               {if $maj}checked="checked"{/if} /> Automatique<br />
-        <input type="radio" name="bananaupdate" value="0"
-               {if !$maj}checked="checked"{/if} /> Manuelle
+        <label><input type="radio" name="bananaupdate" value="1"
+               {if $maj}checked="checked"{/if} /> Automatique</label><br />
+        <label><input type="radio" name="bananaupdate" value="0"
+               {if !$maj}checked="checked"{/if} /> Manuelle</label>
       </td>
     </tr>
     <tr class="pair">
index 8ffb32c..59b40f9 100644 (file)
@@ -30,8 +30,8 @@ S'il n'y a rien à te signaler l'email ne t'est pas envoyé.</p>
   {xsrf_token_field}
   <fieldset>
     <legend>Email</legend>
-    <input type='checkbox' name='mail' onclick="this.form.submit();" {if $watch->watch_mail}checked="checked"{/if} />
-    Recevoir un email hebdomadaire des événements que je n'ai pas déjà vus sur le site.<br />
+    <label><input type='checkbox' name='mail' onclick="this.form.submit();" {if $watch->watch_mail}checked="checked"{/if} />
+    Recevoir un email hebdomadaire des événements que je n'ai pas déjà vus sur le site.</label><br />
     <input type='hidden' name='flags_mail' value='valider' />
   </fieldset>
 </form>
@@ -41,8 +41,8 @@ S'il n'y a rien à te signaler l'email ne t'est pas envoyé.</p>
   <fieldset>
     <legend>Événements à surveiller</legend>
     {foreach from=$watch->cats() item=s key=i}
-    <input type='checkbox' name='sub[{$i}]' {if $watch->subs($i)}checked="checked"{/if} />
-    {$s.short} {if $s.type eq near}<sup>o</sup>{elseif $s.type eq often}<sup>*</sup>{/if}<br />
+    <label><input type='checkbox' name='sub[{$i}]' {if $watch->subs($i)}checked="checked"{/if} />
+    {$s.short} {if $s.type eq near}<sup>o</sup>{elseif $s.type eq often}<sup>*</sup>{/if}</label><br />
     {/foreach}
     <span class='smaller'><sup>*</sup>: ne concerne pas les promos (événements très fréquents).</span><br />
     <span class='smaller'><sup>o</sup>: ne concerne que les promos entre {$smarty.session.promo-1} et {$promo_sortie-2} que tu surveilles.</span>
@@ -60,7 +60,8 @@ S'il n'y a rien à te signaler l'email ne t'est pas envoyé.</p>
   {xsrf_token_field}
   <fieldset>
     <legend>Contacts</legend>
-    <input type='checkbox' name='contacts' onclick="this.form.submit();" {if $watch->watch_contacts}checked="checked"{/if} /> Surveiller mes contacts<br />
+    <label><input type='checkbox' name='contacts' onclick="this.form.submit();" {if
+    $watch->watch_contacts}checked="checked"{/if} /> Surveiller mes contacts</label><br />
     <input type='hidden' name='flags_contacts' value='valider' />
   </fieldset>
 </form>
index b37aab8..fde48ea 100644 (file)
@@ -60,7 +60,8 @@
     <tr>
       <td {popup caption='Connexion permanente' width='300' text='Décoche cette case pour que le site oublie ce navigateur.<br />
         Il est conseillé de décocher la case si cette machine n\'est pas <b>strictement</b> personnelle'} colspan="2">
-        <input type="checkbox" name="remember" checked="checked" /> Garder l'accès aux services après déconnexion.
+        <label><input type="checkbox" name="remember" checked="checked" />
+        Garder l'accès aux services après déconnexion.</label>
       </td>
     </tr>
   </table>
index f063252..ec7ed66 100644 (file)
           <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
             <tr>
               <td class="orange">
-                <input type="checkbox" name="public" {if $mail_public}checked="checked"{/if}/>
+                <input type="checkbox" name="public" {if $mail_public}checked="checked"{/if} id="pub_add"/>
               </td>
               <td class="texte">
-                adresse publique (apparaît sur ta fiche).
+                <label for="pub_add">adresse publique (apparaît sur ta fiche).
               </td>
              </tr>
           </table>
index 964974f..3e76f33 100644 (file)
@@ -39,8 +39,9 @@
       Tes adresses polytechniciennes sont&nbsp;:<br /><br />
         <div>
           {iterate from=$aliases item=a}
-          <input type='radio' {if $a.best}checked="checked"{/if} name='best' value='{$a.alias}' onclick='Ajax.update_html(null,"{$globals->baseurl}/emails/best/{$a.alias}?token={xsrf_token}",bestaliasUpdated)' />
-          {if $a.a_vie}(**){/if}{if $a.cent_ans}(*){/if} <strong>{$a.alias}</strong>@{#globals.mail.domain#} et @{#globals.mail.domain2#}
+          <label><input type='radio' {if $a.best}checked="checked"{/if} name='best' value='{$a.alias}' onclick='Ajax.update_html(null,"{$globals->baseurl}/emails/best/{$a.alias}?token={xsrf_token}",bestaliasUpdated)' />
+          {if $a.a_vie}(**){/if}{if $a.cent_ans}(*){/if} <strong>{$a.alias}</strong>@{#globals.mail.domain#} et
+          @{#globals.mail.domain2#}</label>
           {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if}
           <br />
           {/iterate}
index 74c5c71..a52a15e 100644 (file)
     <legend>Sujet&nbsp;:&nbsp;<input type='text' name='sujet' size='60' value="{$smarty.request.sujet}" /></legend>
     <div class="center">
       Tu peux utiliser des <a href="wiki_help" class="popup3">{icon name=information title="Syntaxe wiki"} marqueurs wiki</a> pour formatter ton texte.<br />
-      <small><input type="checkbox" name="nowiki" value="1" {if $smarty.request.nowiki}checked="checked"{/if} onchange="updateWikiView(this);" />
-      coche cette case pour envoyer l'email en texte brut, sans formattage</small>
+      <small><label><input type="checkbox" name="nowiki" value="1" {if $smarty.request.nowiki}checked="checked"{/if} onchange="updateWikiView(this);" />
+      coche cette case pour envoyer l'email en texte brut, sans formattage</label></small>
     </div>
     <div id="preview">
       <div id="preview_pv" style="display: none">
index 93c83a0..d0e183b 100644 (file)
         Importance
       </td>
       <td>
-        <input type="checkbox" name="important" {if $important}checked="checked"{/if}/> Marquer cette annonce comme très importante
+        <label><input type="checkbox" name="important" {if $important}checked="checked"{/if}/>
+        Marquer cette annonce comme très importante</label>
       </td>
     </tr>
     {/if}
index 4f4dc66..1541c76 100644 (file)
@@ -45,19 +45,19 @@ liste&nbsp;:
     </tr>
     <tr>
       <td class='titre'>C'est une liste pour&nbsp;:</td>
-      <td colspan='2'><input type='radio' name='asso' value='groupex'
-        {if $smarty.post.asso eq 'groupex' && $smarty.post}checked='checked'{/if} />un groupe X</td>
-      <td colspan='2'><input type='radio' name='asso' value=''
-        {if !$smarty.post.asso || !$smarty.post}checked='checked'{/if} />une liste de portée générale ou d'amis</td>
+      <td colspan='2'><label><input type='radio' name='asso' value='groupex'
+        {if $smarty.post.asso eq 'groupex' && $smarty.post}checked='checked'{/if} />un groupe X</label></td>
+      <td colspan='2'><label><input type='radio' name='asso' value=''
+        {if !$smarty.post.asso || !$smarty.post}checked='checked'{/if} />une liste de portée générale ou d'amis</label></td>
     </tr>
     {if $young_promo}
     <tr>
       <td></td>
-      <td colspan='2'><input type='radio' name='asso' value='binet'
-        {if $smarty.post.asso eq 'binet' && $smarty.post}checked='checked'{/if} />un binet</td>
+      <td colspan='2'><label><input type='radio' name='asso' value='binet'
+        {if $smarty.post.asso eq 'binet' && $smarty.post}checked='checked'{/if} />un binet</label></td>
       {if $very_young_promo}
-      <td colspan='2'><input type='radio' name='asso' value='alias'
-        {if $smarty.post.asso eq 'alias' && $smarty.post}checked='checked'{/if} />un alias psc, ...</td>
+      <td colspan='2'><label><input type='radio' name='asso' value='alias'
+        {if $smarty.post.asso eq 'alias' && $smarty.post}checked='checked'{/if} />un alias psc, ...</label></td>
       {else}
       <td colspan='2'></td>
       {/if}
@@ -117,10 +117,10 @@ liste&nbsp;:
     <tr>
       <td class='titre'>Propriétés&nbsp;:</td>
       <td>visibilité&nbsp;:</td>
-      <td><input type='radio' name='advertise' value='0'
-        {if $smarty.post.advertise eq 0 && $smarty.post}checked='checked'{/if} />publique</td>
-      <td><input type='radio' name='advertise' value='1'
-        {if $smarty.post.advertise neq 0 || !$smarty.post}checked='checked'{/if} />privée</td>
+      <td><label><input type='radio' name='advertise' value='0'
+        {if $smarty.post.advertise eq 0 && $smarty.post}checked='checked'{/if} />publique</label></td>
+      <td><label><input type='radio' name='advertise' value='1'
+        {if $smarty.post.advertise neq 0 || !$smarty.post}checked='checked'{/if} />privée</label></td>
       <td></td>
     </tr>
     <tr>
@@ -130,12 +130,12 @@ liste&nbsp;:
     <tr>
       <td></td>
       <td>diffusion&nbsp;:</td>
-      <td><input type='radio' name='modlevel' value='0'
-        {if !$smarty.post.modlevel}checked='checked'{/if} />libre</td>
-      <td><input type='radio' name='modlevel' value='1'
-        {if $smarty.post.modlevel eq 1}checked='checked'{/if} />restreinte</td>
-      <td><input type='radio' name='modlevel' value='2'
-        {if $smarty.post.modlevel eq 2}checked='checked'{/if} />modérée</td>
+      <td><label><input type='radio' name='modlevel' value='0'
+        {if !$smarty.post.modlevel}checked='checked'{/if} />libre</label></td>
+      <td><label><input type='radio' name='modlevel' value='1'
+        {if $smarty.post.modlevel eq 1}checked='checked'{/if} />restreinte</label></td>
+      <td><label><input type='radio' name='modlevel' value='2'
+        {if $smarty.post.modlevel eq 2}checked='checked'{/if} />modérée</label></td>
     </tr>
     <tr>
       <td></td>
@@ -145,10 +145,10 @@ liste&nbsp;:
     <tr>
       <td></td>
       <td>inscription&nbsp;:</td>
-      <td><input type='radio' name='inslevel' value='0'
-        {if $smarty.post.inslevel eq 0 && $smarty.post}checked='checked'{/if} />libre</td>
-      <td><input type='radio' name='inslevel' value='1'
-        {if $smarty.post.inslevel neq 0 || !$smarty.post}checked='checked'{/if} />modérée</td>
+      <td><label><input type='radio' name='inslevel' value='0'
+        {if $smarty.post.inslevel eq 0 && $smarty.post}checked='checked'{/if} />libre</label></td>
+      <td><label><input type='radio' name='inslevel' value='1'
+        {if $smarty.post.inslevel neq 0 || !$smarty.post}checked='checked'{/if} />modérée</label></td>
       <td></td>
     </tr>
     <tr>
index 65c25d6..30ca554 100644 (file)
@@ -52,8 +52,8 @@ Tu n'es pas administrateur de la liste, mais du site.
     </tr>
     <tr class='pair'>
       <td>
-        Si tu veux préserver les archives de la liste, décoche la case ci-contre.
-        <input type="checkbox" checked="checked" name="del_archive" />
+        <label>Si tu veux préserver les archives de la liste, décoche la case ci-contre.
+        <input type="checkbox" checked="checked" name="del_archive" /></label>
       </td>
     </tr>
     <tr class='impair'>
index efd07ac..6ffd2f0 100644 (file)
@@ -72,8 +72,8 @@ Tu n'es pas administrateur de la liste, mais du site.
           utilisateurs qui se désinscrivent. Cet email peut être désactivé.</span>
       </td>
       <td>
-        <input type='checkbox' name='send_goodbye_msg'
-        {if $options.send_goodbye_msg}checked='checked'{/if} /> activer l'email d'adieu.  <br />
+        <label><input type='checkbox' name='send_goodbye_msg'
+        {if $options.send_goodbye_msg}checked='checked'{/if} /> activer l'email d'adieu.</label><br />
         <textarea cols='40' rows='8' name='goodbye_msg'>{$options.goodbye_msg|smarty:nodefaults|utf8_encode}</textarea>
       </td>
     </tr>
@@ -93,8 +93,8 @@ Tu n'es pas administrateur de la liste, mais du site.
         <span class='smaller'>notifier les modérateurs des (dés)inscriptions d'utilisateurs sur cette liste.</span>
       </td>
       <td>
-        <input type='checkbox' name='admin_notify_mchanges'
-        {if $options.admin_notify_mchanges}checked='checked'{/if} /> notifier les modérateurs.
+        <label><input type='checkbox' name='admin_notify_mchanges'
+        {if $options.admin_notify_mchanges}checked='checked'{/if} /> notifier les modérateurs.</label>
       </td>
     </tr>
     <tr class='impair'>
@@ -104,15 +104,15 @@ Tu n'es pas administrateur de la liste, mais du site.
         ou modéré dans tous les cas ?</span>
       </td>
       <td>
-        <input type='radio' name='moderate' value='0'
+        <label><input type='radio' name='moderate' value='0'
         {if !$options.generic_nonmember_action && !$options.default_member_moderation}
-        checked='checked'{/if} />libre<br />
-        <input type='radio' name='moderate' value='1'
+        checked='checked'{/if} />libre</label><br />
+        <label><input type='radio' name='moderate' value='1'
         {if $options.generic_nonmember_action && !$options.default_member_moderation}
-        checked='checked'{/if} />modérée pour les extérieurs<br />
-        <input type='radio' name='moderate' value='2'
+        checked='checked'{/if} />modérée pour les extérieurs</label><br />
+        <label><input type='radio' name='moderate' value='2'
         {if $options.generic_nonmember_action && $options.default_member_moderation}
-        checked='checked'{/if} />modérée
+        checked='checked'{/if} />modérée</label>
       </td>
     </tr>
     <tr class='impair'>
@@ -121,8 +121,8 @@ Tu n'es pas administrateur de la liste, mais du site.
         <span class='smaller'>détermine si les inscriptions à la liste sont modérées ou non.</span>
       </td>
       <td>
-        <input type='checkbox' name='subscribe_policy'
-        {if $options.subscribe_policy eq 2}checked='checked'{/if} /> inscription modérée.
+        <label><input type='checkbox' name='subscribe_policy'
+        {if $options.subscribe_policy eq 2}checked='checked'{/if} /> inscription modérée.</label>
       </td>
     </tr>
     <tr class='impair'>
index f2896af..68c51a6 100644 (file)
@@ -57,8 +57,8 @@
           (les listes d'admin doivent être décochées).</span>
       </td>
       <td>
-        <input type='checkbox' name='advertised' {if $options.advertised}checked='checked'{/if} />
-        publique
+        <label><input type='checkbox' name='advertised' {if $options.advertised}checked='checked'{/if} />
+        publique</label>
       </td>
     </tr>
     <tr class='pair'>
@@ -67,8 +67,8 @@
         <span class='smaller'>liste archivée ?</span>
       </td>
       <td>
-        <input type='checkbox' name='archive' {if $options.archive}checked='checked'{/if} />
-        liste archivée
+        <label><input type='checkbox' name='archive' {if $options.archive}checked='checked'{/if} />
+        liste archivée</label>
       </td>
     </tr>
     <tr class='impair'>
index a9a3e98..d96c448 100644 (file)
@@ -88,8 +88,8 @@ peut sans aucun doute l'aider à se décider !
     <tr class="impair">
       <td>Nous lui écrirons&nbsp;:</td>
       <td>
-        <input type="radio" name="origine" value="user" checked="checked" /> en ton nom<br />
-        <input type="radio" name="origine" value="staff" /> au nom de l'équipe Polytechnique.org
+        <label><input type="radio" name="origine" value="user" checked="checked" /> en ton nom</label><br />
+        <label><input type="radio" name="origine" value="staff" /> au nom de l'équipe Polytechnique.org</label>
       </td>
     </tr>
   </table>
index c682af9..1747f01 100644 (file)
@@ -117,7 +117,7 @@ il te faudra contacter l'équipe support.
       au fur et à mesure que tu les modifies.
       (Les données transmises seront <strong>uniquement</strong> celles que tu as décidé de transmettre).
     </dd>
-    <dt><input type='checkbox' value='1' checked="checked" name='register_from_ax_question' /> depuis l'AX</dt>
+    <dt><label><input type='checkbox' value='1' checked="checked" name='register_from_ax_question' /> depuis l'AX</label></dt>
     <dd>
     nous mettons à jour ta fiche depuis les données de l'annuaire de l'AX si tu le souhaites. <br/>
     (si tu ne le souhaites pas, décoche la case ci-dessus)
@@ -129,20 +129,20 @@ il te faudra contacter l'équipe support.
   </p>
 
   <dl>
-    <dt><input type='checkbox' value='1' checked="checked" name='add_to_nl' /> lettre mensuelle*</dt>
+    <dt><label><input type='checkbox' value='1' checked="checked" name='add_to_nl' /> lettre mensuelle*</label></dt>
     <dd>
       de recevoir chaque mois la lettre mensuelle de Polytechnique.org contenant les activités et nouvelles de la communauté des X.
     </dd>
-    <dt><input type="checkbox" value="1" checked="checked" name="add_to_ax" /> envois de l'AX*</dt>
+    <dt><label><input type="checkbox" value="1" checked="checked" name="add_to_ax" /> envois de l'AX*</label></dt>
     <dd>
       de recevoir les informations importantes de l'AX.
     </dd>
-    <dt><input type='checkbox' value='1' checked="checked" name='add_to_promo' /> ta promo*</dt>
+    <dt><label><input type='checkbox' value='1' checked="checked" name='add_to_promo' /> ta promo*</label></dt>
     <dd>
       de recevoir les informations plus spécifiques de ta promotion pour pouvoir participer plus facilement aux événements
       qu'elle organise. Nous t'inscrivons donc dans le groupe de la promotion {$smarty.session.promo}.
     </dd>
-    <dt><input type='checkbox' value='1' checked="checked" name='imap' />imap</dt>
+    <dt><label><input type='checkbox' value='1' checked="checked" name='imap' />imap</label></dt>
     <dd>
       d'avoir un accès de secours aux 30 derniers jours d'emails reçus sur ton adresse Polytechnique.org.
     </dd>
@@ -155,7 +155,7 @@ il te faudra contacter l'équipe support.
 
   <dl>
     {foreach from=$lists key=list item=details}
-    <dt><input type='checkbox' value='1' checked="checked" name="sub_ml[{$list}]" /> {$list}*&nbsp;: {$details.desc}</dt>
+    <dt><label><input type='checkbox' value='1' checked="checked" name="sub_ml[{$list}]" /> {$list}*&nbsp;: {$details.desc}</label></dt>
     {if $details.info}
     <dd>
       {$details.info|nl2br}
index 5bef784..8dcc8f1 100644 (file)
@@ -128,18 +128,22 @@ function deadlineChange(box)
       </td>
       <td>
         Montrer la liste des inscrits aux membres&nbsp;:
-        <input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} /> oui
-        <input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/> non
+        <label><input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} />
+        oui</label>
+        <label><input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/>
+        non</label>
 
         <br />
         Autoriser les non-membres&nbsp;:
-        <input type="radio" name="accept_nonmembre" value="1" {if $evt.accept_nonmembre}checked="checked"{/if} /> oui
-        <input type="radio" name="accept_nonmembre" value="0" {if !$evt.accept_nonmembre}checked="checked"{/if}/> non
+        <label><input type="radio" name="accept_nonmembre" value="1" {if $evt.accept_nonmembre}checked="checked"{/if} />
+        oui</label>
+        <label><input type="radio" name="accept_nonmembre" value="0" {if !$evt.accept_nonmembre}checked="checked"{/if}/>
+        non</label>
 
         <br />
         Autoriser les invités&nbsp;:
-        <input type="radio" name="noinvite" value="0" {if !$evt.noinvite}checked="checked"{/if} /> oui
-        <input type="radio" name="noinvite" value="1" {if $evt.noinvite}checked="checked"{/if}/> non
+        <label><input type="radio" name="noinvite" value="0" {if !$evt.noinvite}checked="checked"{/if} /> oui</label>
+        <label><input type="radio" name="noinvite" value="1" {if $evt.noinvite}checked="checked"{/if}/> non</label>
       </td>
     </tr>
     <tr>
index 5faab37..7c19e95 100644 (file)
     <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}
index b33b215..98e0092 100644 (file)
@@ -158,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}>
@@ -179,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">
index ae9d761..ce41fd6 100644 (file)
 
     <tr>
       <td class="titre center" colspan="2">
-        <input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
-        groupe agréé par l'AX
+        <label><input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
+        groupe agréé par l'AX</label>
       </td>
     </tr>
 
     </tr>
     <tr>
       <td class="titre center" colspan="2">
-        <input type="checkbox" value="1" name="notif_unsub" {if $asso.notif_unsub}checked="checked"{/if} />
-        prévenir les animateurs lors de la désinscription d'un membre
+        <label><input type="checkbox" value="1" name="notif_unsub" {if $asso.notif_unsub}checked="checked"{/if} />
+        prévenir les animateurs lors de la désinscription d'un membre</label>
       </td>
     </tr>
   </table>
index afeed7c..4b74cec 100644 (file)
@@ -70,12 +70,12 @@ masculin ou féminin, par son prénom, ou son nom.
         <em>annuaire</em>
       </td>
       <td>
-        <input type="checkbox" name="membres[X]" value="1"  {if $smarty.request.membres.X}checked="checked"{/if} />
-        <em>écrire à tous les X de l'annuaire du groupe</em><br />
-        <input type="checkbox" name="membres[ext]" value="1"  {if $smarty.request.membres.ext}checked="checked"{/if} />
-        <em>écrire à tous les extérieurs de l'annuaire du groupe</em><br />
-        <input type="checkbox" name="membres[groupe]" value="1"  {if $smarty.request.membres.groupe}checked="checked"{/if} />
-        <em>écrire à toutes les personnes morales de l'annuaire du groupe</em>
+        <label><input type="checkbox" name="membres[X]" value="1"  {if $smarty.request.membres.X}checked="checked"{/if} />
+        <em>écrire à tous les X de l'annuaire du groupe</em></label><br />
+        <label><input type="checkbox" name="membres[ext]" value="1"  {if $smarty.request.membres.ext}checked="checked"{/if} />
+        <em>écrire à tous les extérieurs de l'annuaire du groupe</em></label><br />
+        <label><input type="checkbox" name="membres[groupe]" value="1"  {if $smarty.request.membres.groupe}checked="checked"{/if} />
+        <em>écrire à toutes les personnes morales de l'annuaire du groupe</label></em>
         <a href="{$platal->ns}annuaire" class='popup'>(voir annuaire)</a><br />
       </td>
     </tr>
@@ -86,8 +86,8 @@ masculin ou féminin, par son prénom, ou son nom.
         {$l.list}
       </td>
       <td>
-        <input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} />
-        {$l.addr}
+        <label><input type="checkbox" name="ml[{$l.list}]" value="1" {if $smarty.request.ml[$l.list]}checked="checked"{/if} />
+        {$l.addr}</label>
         <a href="{$platal->ns}lists/admin/{$l.list}" class="popup">(voir composition)</a>
       </td>
     </tr>
@@ -104,8 +104,9 @@ masculin ou féminin, par son prénom, ou son nom.
     </tr>
     <tr>
       <td colspan="2" class="smaller">
-        <input type="checkbox" name="wiki" value="1" checked="1" onchange="updateWikiView(this);" />
-        activer <a href="wiki_help" class="popup3">la syntaxe wiki</a> pour le formattage du message
+        <input type="checkbox" name="wiki" value="1" checked="1" onchange="updateWikiView(this);" id="wiki_syntaxe"/>
+        <label for="wiki_syntaxe">activer </label><a href="wiki_help" class="popup3">la syntaxe wiki</a>
+        <label for="wiki_syntaxe">pour le formattage du message</label>
       </td>
     </tr>
     <tr id="preview" class="pair" style="display: none">
index f2d7cfd..2595c79 100644 (file)
@@ -33,9 +33,9 @@
     {/iterate}
   </select>
   <span id="marketing" {if $choix->total() != 1}style="display: none"{/if}><br />
-    <input type="checkbox" name="market" checked="checked"
+    <label><input type="checkbox" name="market" checked="checked"
         onchange="document.getElementById('from').style.display = (this.checked ? '' : 'none')"/>
-    Lui envoyer un marketing
+    Lui envoyer un marketing</label>
     <select name="market_from" id="from">
       <option value="user" selected="selected">de ta part.</option>
       <option value="staff">de la part de Polytechnique.org.</option>
index b7e979c..4c313f4 100644 (file)
@@ -32,9 +32,9 @@
     </tr>
     {foreach from=$not_in_list item=u}
     <tr>
-      <td>{$u.nom|strtoupper} {$u.prenom}</td>
-      <td>{$u.promo}</td>
-      <td><input type="checkbox" name="add[{$u.email}]" /></td>
+      <td><label for="add{$u.email}">{$u.nom|strtoupper} {$u.prenom}</label></td>
+      <td><label for="add{$u.email}">{$u.promo}</label></td>
+      <td><input type="checkbox" name="add[{$u.email}]" id="add{$u.email}"/></td>
     </tr>
     {/foreach}
     <tr>