]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 325448: In editparams.cgi, radio button and checkbox descriptions should be enclo...
authorlpsolit%gmail.com <>
Mon, 6 Feb 2006 17:16:16 +0000 (17:16 +0000)
committerlpsolit%gmail.com <>
Mon, 6 Feb 2006 17:16:16 +0000 (17:16 +0000)
template/en/default/admin/params/common.html.tmpl

index a13babccb72b0e8f8796852a72b124715cb9c33f..34cd1d39c5b53dbfdd3dd9913b3c6b9d8abca889 100644 (file)
         <textarea name="[% param.name FILTER html %]" rows="10" cols="80">
             [% Param(param.name) FILTER html %]</textarea>
       [% ELSIF param.type == "b" %]
-        <input type="radio" name="[% param.name FILTER html %]"
-               value=1 [% "checked=\"checked\"" IF Param(param.name) %]>On
-        <input type="radio" name="[% param.name FILTER html %]"
-               value=0 [% "checked=\"checked\"" IF !Param(param.name) %]>Off
+        <input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-on"
+               value=1 [% "checked=\"checked\"" IF Param(param.name) %]>
+        <label for="[% param.name FILTER html %]-on">On</label>
+        <input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-off"
+               value=0 [% "checked=\"checked\"" IF !Param(param.name) %]>
+        <label for="[% param.name FILTER html %]-off">Off</label>
       [% ELSIF param.type == "m" %]
         [% boxSize = 5 %]
         [% boxSize = param.choices.size IF param.choices.size < 5 %]
@@ -47,7 +49,7 @@
           [% FOREACH item = param.choices %]
             <option value="[% item FILTER html %]"
                     [% " selected=\"selected\"" IF lsearch(Param(param.name), item) != -1 %]>
-              [% item FILTER html %]                                                                
+              [% item FILTER html %]
             </option>
           [% END %]
         </select>
@@ -67,7 +69,9 @@
       [% END %]  
       </p>
       <p>
-        <input type="checkbox" name="reset-[% param.name FILTER html %]">Reset
+        <input type="checkbox" name="reset-[% param.name FILTER html %]"
+               id="reset-[% param.name FILTER html %]">
+        <label for="reset-[% param.name FILTER html %]">Reset</label>
       </p>
       <hr>
     </dd>