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 ++++++++++++++++ .../en/default/admin/components/edit.html.tmpl | 19 ++++++++++++++++ .../en/default/admin/components/updated.html.tmpl | 20 +++++++++++++++-- template/en/default/bug/create/create.html.tmpl | 26 +++++++++++++++++++++- template/en/default/bug/knob.html.tmpl | 4 ++-- 5 files changed, 83 insertions(+), 5 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 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 %] diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 26e95523b..eb3aea2e4 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -20,6 +20,8 @@ # Ville Skyttä # Shane H. W. Travis # Marc Schumann + # Akamai Technologies + # Max Kanat-Alexander #%] [% PROCESS "global/field-descs.none.tmpl" %] @@ -28,7 +30,6 @@ title = "Enter $terms.Bug: $product.name" style_urls = [ 'skins/standard/create_attachment.css' ] javascript_urls = [ "js/attachment.js" ] - onload="set_assign_to();" %] + + +   diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl index 36712911e..00ffcb053 100644 --- a/template/en/default/bug/knob.html.tmpl +++ b/template/en/default/bug/knob.html.tmpl @@ -104,8 +104,8 @@
[% IF bug.isunconfirmed && bug.user.canconfirm %] -- cgit v1.2.3-24-g4f1b