Commit 6210108a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 325448: In editparams.cgi, radio button and checkbox descriptions should be…

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
parent 4c2d4f95
...@@ -34,10 +34,12 @@ ...@@ -34,10 +34,12 @@
<textarea name="[% param.name FILTER html %]" rows="10" cols="80"> <textarea name="[% param.name FILTER html %]" rows="10" cols="80">
[% Param(param.name) FILTER html %]</textarea> [% Param(param.name) FILTER html %]</textarea>
[% ELSIF param.type == "b" %] [% ELSIF param.type == "b" %]
<input type="radio" name="[% param.name FILTER html %]" <input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-on"
value=1 [% "checked=\"checked\"" IF Param(param.name) %]>On value=1 [% "checked=\"checked\"" IF Param(param.name) %]>
<input type="radio" name="[% param.name FILTER html %]" <label for="[% param.name FILTER html %]-on">On</label>
value=0 [% "checked=\"checked\"" IF !Param(param.name) %]>Off <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" %] [% ELSIF param.type == "m" %]
[% boxSize = 5 %] [% boxSize = 5 %]
[% boxSize = param.choices.size IF param.choices.size < 5 %] [% boxSize = param.choices.size IF param.choices.size < 5 %]
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
[% FOREACH item = param.choices %] [% FOREACH item = param.choices %]
<option value="[% item FILTER html %]" <option value="[% item FILTER html %]"
[% " selected=\"selected\"" IF lsearch(Param(param.name), item) != -1 %]> [% " selected=\"selected\"" IF lsearch(Param(param.name), item) != -1 %]>
[% item FILTER html %] [% item FILTER html %]
</option> </option>
[% END %] [% END %]
</select> </select>
...@@ -67,7 +69,9 @@ ...@@ -67,7 +69,9 @@
[% END %] [% END %]
</p> </p>
<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> </p>
<hr> <hr>
</dd> </dd>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment