Now clicking on the flags is equivalent to clicking on the checkboxes.
authorStéphane Jacob <jacou@melix.net>
Tue, 5 Aug 2008 20:52:16 +0000 (22:52 +0200)
committerStéphane Jacob <jacou@melix.net>
Tue, 5 Aug 2008 20:52:16 +0000 (22:52 +0200)
templates/include/flags.radio.tpl
templates/profile/deco.tpl
templates/profile/general.tpl

index 9cf5cf0..5b881c0 100644 (file)
 {if $withtext}
 <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ?</a>
 {/if}
-<input type="radio" name="{$name}" value="public" {if $val eq 'public'}checked="checked"{/if}
+<label><input type="radio" name="{$name}" value="public" {if $val eq 'public'}checked="checked"{/if}
        {if $disabled}disabled="disabled"{/if}/>
 {icon name="flag_green" title="site public"}
-{if $withtext}<span class="texte">site public</span>{/if}
-<input type="radio" name="{$name}" value="ax" {if $val eq 'ax'}checked="checked"{/if}
+{if $withtext}<span class="texte">site public</span>{/if}</label>
+<label><input type="radio" name="{$name}" value="ax" {if $val eq 'ax'}checked="checked"{/if}
        {if $disabled}disabled="disabled"{/if}/>
 {icon name="flag_orange" title="transmis à l'AX"}
-{if $withtext}<span class="texte">transmis à l'AX</span>{/if}
-<input type="radio" name="{$name}" value="private" {if $val eq 'private' || (!$val && !$disabled)}checked="checked"{/if}
+{if $withtext}<span class="texte">transmis à l'AX</span>{/if}</label>
+<label><input type="radio" name="{$name}" value="private" {if $val eq 'private' || (!$val && !$disabled)}checked="checked"{/if}
        {if $disabled}disabled="disabled"{/if}/>
 {icon name="flag_red" title="privé"}
-{if $withtext}<span class="texte">privé</span>{/if}
+{if $withtext}<span class="texte">privé</span>{/if}</label>
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
index 368671f..84b1409 100644 (file)
@@ -29,8 +29,8 @@
   <tr>
     <td>
       <div class="flags">
-        <input type="checkbox" name="medals_pub"{if $medals_pub eq 'public'} checked="checked"{/if} />
-        {icon name="flag_green" title="site public"}
+        <label><input type="checkbox" name="medals_pub"{if $medals_pub eq 'public'} checked="checked"{/if} />
+        {icon name="flag_green" title="site public"}</label>
         <span class="texte">
           bien que publiques (JO, ...), tu peux choisir de ne pas associer ces informations à ta fiche publique
         </span>
index a106c42..0203991 100644 (file)
   <tr>
     <th colspan="2">
       <div class="flags" style="float: left">
-        <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
-        {icon name="flag_green" title="site public"}
+        <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
+        {icon name="flag_green" title="site public"}</label>
       </div>
       Trombinoscope
     </th>
   <tr>
     <td>
       <span class="flags">
-        <input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
-        {icon name="flag_green" title="site public"}
+        <label><input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
+        {icon name="flag_green" title="site public"}</label>
       </span>&nbsp;
       <span class="titre">Page web Perso</span>
     </td>
     <td>
       <div>
         <span class="flags">
-          <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
-          {icon name="flag_green" title="site public"}
+          <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
+          {icon name="flag_green" title="site public"}</label>
         </span>&nbsp;
         <span class="titre">Complément libre</span><br />
         <span class="comm">Commentaire ? ICQ ? etc...</span>