From: Reed Loden Date: Tue, 13 Jul 2010 03:22:07 +0000 (-0500) Subject: Bug 578253 - Add autocomplete support to the requester and requestee fields on reques... X-Git-Tag: bugzilla-3.7.3~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c9317c7a70e1b0b7031208a3f5abd0c26b823e5;p=thirdparty%2Fbugzilla.git Bug 578253 - Add autocomplete support to the requester and requestee fields on request.cgi [r=mkanat a=mkanat] https://bugzilla.mozilla.org/show_bug.cgi?id=578254 --- diff --git a/template/en/default/global/userselect.html.tmpl b/template/en/default/global/userselect.html.tmpl index 2a2d2cd52d..5924e07239 100644 --- a/template/en/default/global/userselect.html.tmpl +++ b/template/en/default/global/userselect.html.tmpl @@ -13,6 +13,7 @@ # Contributor(s): Byron Jones # Frédéric Buclin # Guy Pyrzak + # Reed Loden #%] [%# INTERFACE: @@ -23,9 +24,11 @@ # disabled: optional; if true, the field is disabled # accesskey: optional, input only; accesskey 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 # custom_userlist: optional, specify a limited list of users to use + # title: optional, extra information to display as a tooltip #%] [% IF Param("usemenuforusers") %] @@ -35,10 +38,14 @@ [% IF disabled %] disabled="[% disabled FILTER html %]" [% END %] [% IF accesskey %] accesskey="[% accesskey FILTER html %]" [% END %] [% IF multiple %] multiple="multiple" size="[% multiple FILTER html %]" [% END %] + [% IF title %] title="[% title FILTER html %]" [% END %] > [% IF emptyok %] [% END %] + [% IF hyphenok %] + + [% END %] [% UNLESS custom_userlist %] [% custom_userlist = user.get_userlist %] @@ -79,6 +86,7 @@ [% IF onchange %] onchange="[% onchange FILTER html %]" [% END %] [% IF disabled %] disabled="[% disabled 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 id %] id="[% id FILTER html %]" [% END %] > @@ -95,5 +103,3 @@ [% END %] [% END %] - - diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 8a36ab554f..e2838c8631 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -72,8 +72,16 @@ to some group are shown by default. - + - +
Requester: + [% INCLUDE global/userselect.html.tmpl + id => "requester" + name => "requester" + value => cgi.param('requester') + size => 20 + emptyok => 1 + title => "Requester's email address" + %] + Product:
Requestee: + [% 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 "-" (hyphen) for requests with no requestee" + %] + Component: