Commit 69570c93 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 460297: Parameters in editparams.cgi need an ID - Patch by Fré©ric Buclin…

Bug 460297: Parameters in editparams.cgi need an ID - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent dd45919d
...@@ -31,13 +31,14 @@ ...@@ -31,13 +31,14 @@
<p> <p>
[% IF param.type == "t" %] [% IF param.type == "t" %]
<input type="text" size="80" name="[% param.name FILTER html %]" <input type="text" size="80" name="[% param.name FILTER html %]"
value="[% Param(param.name) FILTER html %]"> id="[% param.name FILTER html %]" value="[% Param(param.name) FILTER html %]">
[% ELSIF param.type == "p" %] [% ELSIF param.type == "p" %]
<input type="password" size="80" name="[% param.name FILTER html %]" <input type="password" size="80" name="[% param.name FILTER html %]"
value="[% Param(param.name) FILTER html %]" autocomplete="off"> id="[% param.name FILTER html %]" value="[% Param(param.name) FILTER html %]"
autocomplete="off">
[% ELSIF param.type == "l" %] [% ELSIF param.type == "l" %]
<textarea name="[% param.name FILTER html %]" rows="10" cols="80"> <textarea name="[% param.name FILTER html %]" id="[% param.name FILTER html %]"
[% Param(param.name) FILTER html %]</textarea> rows="10" cols="80">[% Param(param.name) FILTER html %]</textarea>
[% ELSIF param.type == "b" %] [% ELSIF param.type == "b" %]
<input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-on" <input type="radio" name="[% param.name FILTER html %]" id="[% param.name FILTER html %]-on"
value=1 [% "checked=\"checked\"" IF Param(param.name) %]> value=1 [% "checked=\"checked\"" IF Param(param.name) %]>
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
[% boxSize = param.choices.size IF param.choices.size < 5 %] [% boxSize = param.choices.size IF param.choices.size < 5 %]
<select multiple="multiple" size="[% boxSize FILTER html %]" <select multiple="multiple" size="[% boxSize FILTER html %]"
name="[% param.name FILTER html %]"> name="[% param.name FILTER html %]" id="[% param.name FILTER html %]">
[% 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 %]>
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
// --> // -->
</script> </script>
[% ELSIF param.type == "s" %] [% ELSIF param.type == "s" %]
<select name="[% param.name FILTER html %]"> <select name="[% param.name FILTER html %]" id="[% param.name FILTER html %]">
[% FOREACH item = param.choices %] [% FOREACH item = param.choices %]
<option value="[% item FILTER html %]" <option value="[% item FILTER html %]"
[% " selected=\"selected\"" IF item == Param(param.name) %]> [% " selected=\"selected\"" IF item == Param(param.name) %]>
......
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