]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 460297: Parameters in editparams.cgi need an ID - Patch by Frédéric Buclin...
authorlpsolit%gmail.com <>
Thu, 16 Oct 2008 22:13:50 +0000 (22:13 +0000)
committerlpsolit%gmail.com <>
Thu, 16 Oct 2008 22:13:50 +0000 (22:13 +0000)
template/en/default/admin/params/common.html.tmpl

index 4fd79219494fb56b49e4d0412f259323e947461c..c23c2ca9a5078fe4ef9bd5bcaeb5a512e9072801 100644 (file)
       <p>
       [% IF param.type == "t" %]
         <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" %]
         <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" %]
-        <textarea name="[% param.name FILTER html %]" rows="10" cols="80">
-            [% Param(param.name) FILTER html %]</textarea>
+        <textarea name="[% param.name FILTER html %]" id="[% 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 %]" id="[% param.name FILTER html %]-on"
                value=1 [% "checked=\"checked\"" IF Param(param.name) %]>
@@ -50,7 +51,7 @@
         [% boxSize = param.choices.size IF param.choices.size < 5 %]
 
         <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 %]
             <option value="[% item FILTER html %]"
                     [% " selected=\"selected\"" IF lsearch(Param(param.name), item) != -1 %]>
         // -->
         </script>
       [% 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 %]
             <option value="[% item FILTER html %]"
                     [% " selected=\"selected\"" IF item == Param(param.name) %]>