Commit 2ca9968d authored by Reed Loden's avatar Reed Loden

Bug 578253 - Add autocomplete support to the requester and requestee fields on request.cgi

parent 88e8e01b
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
# Contributor(s): Byron Jones <bugzilla@glob.com.au> # Contributor(s): Byron Jones <bugzilla@glob.com.au>
# Frédéric Buclin <LpSolit@gmail.com> # Frédéric Buclin <LpSolit@gmail.com>
# Guy Pyrzak <guy.pyrzak@gmail.com> # Guy Pyrzak <guy.pyrzak@gmail.com>
# Reed Loden <reed@reedloden.com>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
...@@ -23,9 +24,11 @@ ...@@ -23,9 +24,11 @@
# disabled: optional; if true, the field is disabled # disabled: optional; if true, the field is disabled
# accesskey: optional, input only; accesskey attribute value # accesskey: optional, input only; accesskey attribute value
# size: optional, input only; size attribute value # size: optional, input only; size attribute value
# emptyok: optional, select only; if true, prepend menu option to start of select # emptyok: optional, select only; if true, prepend menu option for "" to start of select
# hyphenok: optional, select only; if true, prepend menu option for "-" to start of select
# multiple: optional, do multiselect box, value is size (height) of box # multiple: optional, do multiselect box, value is size (height) of box
# custom_userlist: optional, specify a limited list of users to use # custom_userlist: optional, specify a limited list of users to use
# title: optional, extra information to display as a tooltip
#%] #%]
[% IF Param("usemenuforusers") %] [% IF Param("usemenuforusers") %]
...@@ -35,10 +38,14 @@ ...@@ -35,10 +38,14 @@
[% 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 multiple %] multiple="multiple" size="[% multiple FILTER html %]" [% END %] [% IF multiple %] multiple="multiple" size="[% multiple FILTER html %]" [% END %]
[% IF title %] title="[% title FILTER html %]" [% END %]
> >
[% IF emptyok %] [% IF emptyok %]
<option value=""></option> <option value=""></option>
[% END %] [% END %]
[% IF hyphenok %]
<option value="-">-</option>
[% END %]
[% UNLESS custom_userlist %] [% UNLESS custom_userlist %]
[% custom_userlist = user.get_userlist %] [% custom_userlist = user.get_userlist %]
...@@ -79,6 +86,7 @@ ...@@ -79,6 +86,7 @@
[% 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 %]
[% IF title %] title="[% title FILTER html %]" [% END %]
[% IF size %] size="[% size FILTER html %]" [% END %] [% IF size %] size="[% size FILTER html %]" [% END %]
[% IF id %] id="[% id FILTER html %]" [% END %] [% IF id %] id="[% id FILTER html %]" [% END %]
> >
...@@ -95,5 +103,3 @@ ...@@ -95,5 +103,3 @@
</script> </script>
[% END %] [% END %]
[% END %] [% END %]
...@@ -72,8 +72,16 @@ to some group are shown by default. ...@@ -72,8 +72,16 @@ to some group are shown by default.
<table id="filtering"> <table id="filtering">
<tr> <tr>
<th>Requester:</th> <th>Requester:</th>
<td><input type="text" name="requester" value="[% cgi.param('requester') FILTER html %]" size="20" <td>
title="Requester's email address"></td> [% INCLUDE global/userselect.html.tmpl
id => "requester"
name => "requester"
value => cgi.param('requester')
size => 20
emptyok => 1
title => "Requester's email address"
%]
</td>
<th>Product:</th> <th>Product:</th>
<td> <td>
<select name="product" onchange="selectProduct(this, this.form.component, null, null, 'Any');"> <select name="product" onchange="selectProduct(this, this.form.component, null, null, 'Any');">
...@@ -121,8 +129,17 @@ to some group are shown by default. ...@@ -121,8 +129,17 @@ to some group are shown by default.
</tr> </tr>
<tr> <tr>
<th>Requestee:</th> <th>Requestee:</th>
<td><input type="text" name="requestee" value="[% cgi.param('requestee') FILTER html %]" size="20" <td>
title="Requestee's email address or &quot;-&quot; (hyphen) for requests with no requestee"></td> [% INCLUDE global/userselect.html.tmpl
id => "requestee"
name => "requestee"
value => cgi.param('requestee')
size => 20
emptyok => 1
hyphenok => 1
title => "Requestee's email address or &quot;-&quot; (hyphen) for requests with no requestee"
%]
</td>
<th>Component:</th> <th>Component:</th>
<td> <td>
<select name="component"> <select name="component">
......
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