From c6433b10999a9bfe1f26bea4deaba11db3251fc0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 21 Sep 2006 04:57:57 +0000 Subject: Bug 38922: Default (Initial) CC list for each component Patch By Max Kanat-Alexander r=LpSolit, a=myk --- .../en/default/admin/components/create.html.tmpl | 19 +++++++++++++++++++ template/en/default/admin/components/edit.html.tmpl | 19 +++++++++++++++++++ .../en/default/admin/components/updated.html.tmpl | 20 ++++++++++++++++++-- 3 files changed, 56 insertions(+), 2 deletions(-) (limited to 'template/en/default/admin/components') diff --git a/template/en/default/admin/components/create.html.tmpl b/template/en/default/admin/components/create.html.tmpl index 83c28ab85..013ee861e 100644 --- a/template/en/default/admin/components/create.html.tmpl +++ b/template/en/default/admin/components/create.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley + # Akamai Technologies #%] [%# INTERFACE: @@ -76,6 +77,24 @@ [% END %] + + + + + + [% INCLUDE global/userselect.html.tmpl + name => "initialcc" + id => "initialcc" + value => "" + size => 64 + multiple => 5 + %] +
+ [% IF !Param("usemenuforusers") %] + Enter user names for the CC in a comma-separated list. + [% END %] + +
diff --git a/template/en/default/admin/components/edit.html.tmpl b/template/en/default/admin/components/edit.html.tmpl index 9392cfd69..6ee3a69fe 100644 --- a/template/en/default/admin/components/edit.html.tmpl +++ b/template/en/default/admin/components/edit.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley + # Akamai Technologies #%] [%# INTERFACE: @@ -81,6 +82,24 @@ [% END %] + + + + + + [% INCLUDE global/userselect.html.tmpl + name => "initialcc" + id => "initialcc" + value => initial_cc_names + size => 64 + multiple => 5 + %] +
+ [% IF !Param("usemenuforusers") %] + Enter user names for the CC in a comma-separated list. + [% END %] + + [% terms.Bugs %]: diff --git a/template/en/default/admin/components/updated.html.tmpl b/template/en/default/admin/components/updated.html.tmpl index 43214f979..a6f2c8b9d 100644 --- a/template/en/default/admin/components/updated.html.tmpl +++ b/template/en/default/admin/components/updated.html.tmpl @@ -17,6 +17,8 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley + # Akamai Technologies + # Max Kanat-Alexander #%] [%# INTERFACE: @@ -32,10 +34,15 @@ # # updated_initialqacontact: the default qa contact updated # + # updated_initialcc: the default initial cc list + # # comp: object; Bugzilla::Component object representing the component # user updated. # product: object; Bugzilla::Product object representing the product to # which the component belongs. + # + # initial_cc_names: a comma-separated list of the login names of + # the Initial CC, if it was updated. #%] [% title = BLOCK %]Updating Component '[% comp.name FILTER html %]' of Product @@ -72,11 +79,20 @@

Updated Component name to: '[% comp.name FILTER html %]'.

[% END %] +[% IF updated_initialcc %] + [% IF initial_cc_names %] +

Updated Default CC list to: + '[% initial_cc_names FILTER html %]'.

+ [% ELSE %] +

Removed the Default CC list.

+ [% END %] +[% END %] + [% UNLESS updated_description || updated_initialowner || - updated_initialqacontact || updated_name %] + updated_initialqacontact || updated_name || + updated_initialcc %]

Nothing changed for component '[% comp.name FILTER html %]'. [% END %] - [% PROCESS admin/components/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b