From 8e9520eb5dd1623948ba8e8f09ef75fd0f8ffd83 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Fri, 28 Jan 2005 03:09:39 +0000 Subject: Bug 272658 : Add user dropdowns to editcomponents.cgi Patch by GavinS r=glob a=myk --- .../en/default/admin/components/create.html.tmpl | 25 +++++++++++++++++---- .../en/default/admin/components/edit.html.tmpl | 26 +++++++++++++++++----- template/en/default/global/userselect.html.tmpl | 3 +++ 3 files changed, 44 insertions(+), 10 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/components/create.html.tmpl b/template/en/default/admin/components/create.html.tmpl index 0c6a8b335..c8838eea6 100644 --- a/template/en/default/admin/components/create.html.tmpl +++ b/template/en/default/admin/components/create.html.tmpl @@ -45,13 +45,30 @@ - Initial Owner: - + + + [% INCLUDE global/userselect.html.tmpl + name => "initialowner" + id => "initialowner" + value => "" + size => 64 + emptyok => 1 + %] + [% IF Param('useqacontact') %] - Initial QA Contact: - + + + + [% INCLUDE global/userselect.html.tmpl + name => "initialqacontact" + id => "initialqacontact" + value => "" + size => 64 + emptyok => 1 + %] + [% END %] diff --git a/template/en/default/admin/components/edit.html.tmpl b/template/en/default/admin/components/edit.html.tmpl index 0a8507917..580008008 100644 --- a/template/en/default/admin/components/edit.html.tmpl +++ b/template/en/default/admin/components/edit.html.tmpl @@ -55,16 +55,30 @@ - Initial owner: - + + + [% INCLUDE global/userselect.html.tmpl + name => "initialowner" + id => "initialowner" + value => initialowner + size => 64 + emptyok => 1 + %] + [% IF Param('useqacontact') %] - Initial QA contact: - + + + [% INCLUDE global/userselect.html.tmpl + name => "initialqacontact" + id => "initialqacontact" + value => initialqacontact + size => 64 + emptyok => 1 + %] + [% END %] diff --git a/template/en/default/global/userselect.html.tmpl b/template/en/default/global/userselect.html.tmpl index 91692fd21..24b16c9ec 100644 --- a/template/en/default/global/userselect.html.tmpl +++ b/template/en/default/global/userselect.html.tmpl @@ -18,6 +18,7 @@ # userlist: select only; array reference with list of users and identities # userlist is built by Bugzilla::User::get_userlist() # name: mandatory; field name + # id: optional; field id # value: optional; default field value/selection # onchange: optional; onchange attribute value # disabled: optional; if true, the field is disabled @@ -30,6 +31,7 @@ [% IF Param("usemenuforusers") %]