summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2010-11-21 14:19:10 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-11-21 14:19:10 +0100
commit47e67526f95b01e540f5cda8c4bc15a0e9dca593 (patch)
tree972dbacba398ef6139b8cdf1972c7239fc4ec05c /template/en/default
parenta7a37db9a4c21ff345a91492631b43d5feff8e39 (diff)
downloadbugzilla-47e67526f95b01e540f5cda8c4bc15a0e9dca593.tar.gz
bugzilla-47e67526f95b01e540f5cda8c4bc15a0e9dca593.tar.xz
Bug 386600: Implement auto-completion for the requestee field
r/a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/attachment/create.html.tmpl3
-rw-r--r--template/en/default/attachment/edit.html.tmpl3
-rw-r--r--template/en/default/flag/list.html.tmpl49
3 files changed, 26 insertions, 29 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index 7ca4d4bba..b60463dd3 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -34,7 +34,8 @@
header = header
subheader = subheader
style_urls = [ 'skins/standard/attachment.css' ]
- javascript_urls = [ "js/attachment.js", "js/util.js", "js/TUI.js" ]
+ yui = [ 'autocomplete' ]
+ javascript_urls = [ "js/attachment.js", 'js/field.js', "js/util.js", "js/TUI.js" ]
doc_section = "attachments.html"
%]
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index fc7977848..3630aad5e 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -37,8 +37,9 @@
header = header
subheader = subheader
doc_section = "attachments.html"
- javascript_urls = ['js/attachment.js']
+ javascript_urls = ['js/attachment.js', 'js/field.js']
style_urls = ['skins/standard/attachment.css']
+ yui = [ 'autocomplete' ]
bodyclasses = "no_javascript"
%]
diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl
index 24418e44a..5f88fc168 100644
--- a/template/en/default/flag/list.html.tmpl
+++ b/template/en/default/flag/list.html.tmpl
@@ -88,6 +88,7 @@
<td>
[% IF (type.is_active && type.is_requestable && type.is_requesteeble) || flag.requestee %]
<span style="white-space: nowrap;">
+ [% SET flag_custom_list = [] %]
[% IF Param('usemenuforusers') %]
[% flag_custom_list = flag.type.grant_list %]
[% IF !(type.is_active && type.is_requestable && type.is_requesteeble) %]
@@ -96,22 +97,16 @@
nothing else. %]
[% flag_custom_list = [flag.requestee] %]
[% END %]
- [% INCLUDE global/userselect.html.tmpl
- name => "requestee-$flag.id"
- id => "requestee-$flag.id"
- value => flag.requestee.login
- multiple => 0
- emptyok => 1
- custom_userlist => flag_custom_list
- %]
- [% ELSE %]
- (<input type="text" class="requestee" maxlength="255"
- id="requestee-[% flag.id %]"
- name="requestee-[% flag.id %]"
- [% IF flag.status == "?" && flag.requestee %]
- value="[% flag.requestee.login FILTER html %]"
- [% END %]>)
[% END %]
+ [% INCLUDE global/userselect.html.tmpl
+ name => "requestee-$flag.id"
+ id => "requestee-$flag.id"
+ value => flag.requestee.login
+ multiple => 0
+ emptyok => 1
+ classes => ["requestee"]
+ custom_userlist => flag_custom_list
+ %]
</span>
[% END %]
</td>
@@ -199,20 +194,20 @@
<td>
[% IF type.is_requestable && type.is_requesteeble %]
<span style="white-space: nowrap;">
+ [% SET grant_list = [] %]
[% IF Param('usemenuforusers') %]
- [% INCLUDE global/userselect.html.tmpl
- name => "requestee_type-$type.id"
- id => "requestee_type-$type.id"
- multiple => type.is_multiplicable * 3
- emptyok => !type.is_multiplicable
- value => ""
- custom_userlist => type.grant_list
- %]
- [% ELSE %]
- (<input type="text" class="requestee" maxlength="255"
- id="requestee_type-[% type.id %]"
- name="requestee_type-[% type.id %]">)
+ [% grant_list = type.grant_list %]
[% END %]
+ [% INCLUDE global/userselect.html.tmpl
+ name => "requestee_type-$type.id"
+ id => "requestee_type-$type.id"
+ multiple => type.is_multiplicable * 3
+ emptyok => !type.is_multiplicable
+ value => ""
+ custom_userlist => grant_list
+ classes => ["requestee"]
+ %]
+
</span>
[% END %]
</td>