summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-06 18:16:16 +0100
committerlpsolit%gmail.com <>2006-02-06 18:16:16 +0100
commit6210108a551098485b101a3e6ecb78bab2ba3b74 (patch)
tree8431c18bf778ef6ba4118d8a1bd95ec78260ee5e /template/en/default/admin
parent4c2d4f95543c038d05ff3766a8dbe2b65d49ae4e (diff)
downloadbugzilla-6210108a551098485b101a3e6ecb78bab2ba3b74.tar.gz
bugzilla-6210108a551098485b101a3e6ecb78bab2ba3b74.tar.xz
Bug 325448: In editparams.cgi, radio button and checkbox descriptions should be enclosed in <label></label> tags - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
Diffstat (limited to 'template/en/default/admin')
-rw-r--r--template/en/default/admin/params/common.html.tmpl16
1 files changed, 10 insertions, 6 deletions
diff --git a/template/en/default/admin/params/common.html.tmpl b/template/en/default/admin/params/common.html.tmpl
index a13babccb..34cd1d39c 100644
--- a/template/en/default/admin/params/common.html.tmpl
+++ b/template/en/default/admin/params/common.html.tmpl
@@ -34,10 +34,12 @@
<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>