Commit 8e9520eb authored by travis%sedsystems.ca's avatar travis%sedsystems.ca

Bug 272658 : Add user dropdowns to editcomponents.cgi

Patch by GavinS <bugzilla@chimpychompy.org> r=glob a=myk
parent 27e28372
...@@ -45,13 +45,30 @@ ...@@ -45,13 +45,30 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th align="right">Initial Owner:</th> <th align="right"><label for="initialowner">Initial Owner:</label></th>
<td><input size="64" maxlength="64" name="initialowner" value=""></td> <td>
[% INCLUDE global/userselect.html.tmpl
name => "initialowner"
id => "initialowner"
value => ""
size => 64
emptyok => 1
%]
</td>
</tr> </tr>
[% IF Param('useqacontact') %] [% IF Param('useqacontact') %]
<tr> <tr>
<th align="right">Initial QA Contact:</th> <th align="right">
<td><input size="64" maxlength="64" name="initialqacontact" value=""></td> <label for="initialqacontact">Initial QA Contact:</label></th>
<td>
[% INCLUDE global/userselect.html.tmpl
name => "initialqacontact"
id => "initialqacontact"
value => ""
size => 64
emptyok => 1
%]
</td>
</tr> </tr>
[% END %] [% END %]
</table> </table>
......
...@@ -55,16 +55,30 @@ ...@@ -55,16 +55,30 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td valign="top">Initial owner:</td> <td valign="top"><label for="initialowner">Initial owner:</label></td>
<td><input size="64" maxlength="64" name="initialowner" value=" <td>
[%- initialowner FILTER html %]"></td> [% INCLUDE global/userselect.html.tmpl
name => "initialowner"
id => "initialowner"
value => initialowner
size => 64
emptyok => 1
%]
</td>
[% IF Param('useqacontact') %] [% IF Param('useqacontact') %]
</tr> </tr>
<tr> <tr>
<td valign="top">Initial QA contact:</td> <td valign="top"><label for="initialqacontact">Initial QA contact:</label></td>
<td><input size="64" maxlength="64" name="initialqacontact" value=" <td>
[%- initialqacontact FILTER html %]"></td> [% INCLUDE global/userselect.html.tmpl
name => "initialqacontact"
id => "initialqacontact"
value => initialqacontact
size => 64
emptyok => 1
%]
</td>
[% END %] [% END %]
</tr> </tr>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
# userlist: select only; array reference with list of users and identities # userlist: select only; array reference with list of users and identities
# userlist is built by Bugzilla::User::get_userlist() # userlist is built by Bugzilla::User::get_userlist()
# name: mandatory; field name # name: mandatory; field name
# id: optional; field id
# value: optional; default field value/selection # value: optional; default field value/selection
# onchange: optional; onchange attribute value # onchange: optional; onchange attribute value
# disabled: optional; if true, the field is disabled # disabled: optional; if true, the field is disabled
...@@ -30,6 +31,7 @@ ...@@ -30,6 +31,7 @@
[% IF Param("usemenuforusers") %] [% IF Param("usemenuforusers") %]
<select name="[% name FILTER html %]" <select name="[% name FILTER html %]"
[% IF id %] id="[% id FILTER html %]" [% END %]
[% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %]
[% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %]
[% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %]
...@@ -54,6 +56,7 @@ ...@@ -54,6 +56,7 @@
[% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %]
[% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %]
[% IF size %] size="[% size FILTER html %]" [% END %] [% IF size %] size="[% size FILTER html %]" [% END %]
[% IF id %] id="[% id FILTER html %]" [% END %]
> >
[% END %] [% END %]
......
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