From 59ed17e8610c3d1b40e4f47a936a34e9c3f2cde8 Mon Sep 17 00:00:00 2001 From: Guy Pyrzak Date: Sun, 21 Feb 2010 16:00:53 -0800 Subject: Bug 490923: Autocomplete assignee, qa contact, and cc on the client side r=LpSolit, a=mkanat --- .../en/default/admin/components/create.html.tmpl | 2 ++ .../en/default/admin/components/edit.html.tmpl | 2 ++ template/en/default/bug/create/create.html.tmpl | 9 ++++-- template/en/default/bug/field.html.tmpl | 3 +- template/en/default/bug/show-header.html.tmpl | 7 +++-- template/en/default/global/header.html.tmpl | 2 +- template/en/default/global/userselect.html.tmpl | 34 ++++++++++++++++------ template/en/default/list/list.html.tmpl | 6 ++-- 8 files changed, 46 insertions(+), 19 deletions(-) (limited to 'template/en') diff --git a/template/en/default/admin/components/create.html.tmpl b/template/en/default/admin/components/create.html.tmpl index 86411adad..0b1fd6f57 100644 --- a/template/en/default/admin/components/create.html.tmpl +++ b/template/en/default/admin/components/create.html.tmpl @@ -26,6 +26,8 @@ [% title = BLOCK %]Add component to the [% product.name FILTER html %] product[% END %] [% PROCESS global/header.html.tmpl + style_urls = [ 'skins/standard/yui/autocomplete.css'] + javascript_urls = [ "js/yui/bz_autocomplete_bundle.js", "js/field.js"] title = title %] diff --git a/template/en/default/admin/components/edit.html.tmpl b/template/en/default/admin/components/edit.html.tmpl index 9ddb8ca3e..267bfc5c3 100644 --- a/template/en/default/admin/components/edit.html.tmpl +++ b/template/en/default/admin/components/edit.html.tmpl @@ -33,6 +33,8 @@ [% END %] [% PROCESS global/header.html.tmpl title = title + style_urls = [ 'skins/standard/yui/autocomplete.css'] + javascript_urls = [ "js/yui/bz_autocomplete_bundle.js", "js/field.js"] %]
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index dce1da762..d82587672 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -30,9 +30,11 @@ [% PROCESS global/header.html.tmpl title = title - style_urls = [ 'skins/standard/create_attachment.css', + style_urls = [ 'skins/standard/yui/autocomplete.css', + 'skins/standard/create_attachment.css', 'skins/standard/yui/calendar.css' ] - javascript_urls = [ "js/attachment.js", "js/util.js", "js/yui/calendar.js", + javascript_urls = [ "js/yui/bz_autocomplete_bundle.js", + "js/attachment.js", "js/util.js", "js/yui/calendar.js", "js/field.js", "js/TUI.js" ] onload = 'set_assign_to();' %] @@ -384,6 +386,7 @@ TUI_hide_default('expert_fields'); Assign To: [% INCLUDE global/userselect.html.tmpl + id => "assigned_to" name => "assigned_to" value => assigned_to disabled => assigned_to_disabled @@ -400,6 +403,7 @@ TUI_hide_default('expert_fields'); QA Contact: [% INCLUDE global/userselect.html.tmpl + id => "qa_contact" name => "qa_contact" value => qa_contact disabled => qa_contact_disabled @@ -416,6 +420,7 @@ TUI_hide_default('expert_fields'); CC: [% INCLUDE global/userselect.html.tmpl + id => "cc" name => "cc" value => cc disabled => cc_disabled diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 482f88219..2f1ad35ca 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -87,8 +87,7 @@ Calendar -
+
+ [% END %] [% END %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 1e9a9e998..15fc44949 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -46,8 +46,10 @@ title = title style = style atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" - javascript_urls = [ "js/util.js", "js/field.js", "js/yui/calendar.js" ] - style_urls = [ "skins/standard/buglist.css", "skins/standard/yui/calendar.css" ] + javascript_urls = [ "js/yui/bz_autocomplete_bundle.js", "js/util.js", + "js/field.js", "js/yui/calendar.js" ] + style_urls = [ "skins/standard/yui/autocomplete.css", + "skins/standard/buglist.css", "skins/standard/yui/calendar.css" ] doc_section = "query.html#list" %] -- cgit v1.2.3-24-g4f1b