diff options
author | lpsolit%gmail.com <> | 2005-09-07 08:53:58 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-07 08:53:58 +0200 |
commit | e679c1864efe76002b2b202dfbaa42acbba516a0 (patch) | |
tree | f83e6884254e172c060cb1daf6002c4325e39900 /template/en/default/admin/components/list.html.tmpl | |
parent | 3223b9f1872063b0c1ba864880449e40c68d590d (diff) | |
download | bugzilla-e679c1864efe76002b2b202dfbaa42acbba516a0.tar.gz bugzilla-e679c1864efe76002b2b202dfbaa42acbba516a0.tar.xz |
Bug 301743: Replace old code from editcomponents.cgi by methods and routines from Component.pm and Product.pm - Patch by Tiago R. Mello <timello@gmail.com> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/admin/components/list.html.tmpl')
-rw-r--r-- | template/en/default/admin/components/list.html.tmpl | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/template/en/default/admin/components/list.html.tmpl b/template/en/default/admin/components/list.html.tmpl index c321219fc..71444936d 100644 --- a/template/en/default/admin/components/list.html.tmpl +++ b/template/en/default/admin/components/list.html.tmpl @@ -20,16 +20,8 @@ #%] [%# INTERFACE: - # components: array of hashes having the properties: - # - name: string; The name of the component. - # - description: string; The description of the component. - # - initialowner: string; The default assignee of the component. - # - initialqacontact: string; The qa_contact of the component. - # - bug_count: number; The number of bugs in the component - # (if showbugcounts defined). - # + # components: array of component objects # showbugcounts: if defined, then bug counts should be included in the table - # # product: string; the name of the product we are editing components for #%] @@ -96,10 +88,31 @@ contentlink => delete_contentlink }) %] +[%# Overrides the initialowner and the initialqacontact with right values %] +[% overrides.initialowner = [] %] +[% overrides.initialqacontact = [] %] + +[% FOREACH component = components %] + [% overrides.initialowner.push({ + match_value => component.name + match_field => 'name' + override_content => 1 + content => component.default_assignee.login + }) + %] + [% overrides.initialqacontact.push({ + match_value => component.name + match_field => 'name' + override_content => 1 + content => component.default_qa_contact.login + }) + %] +[% END %] + [% PROCESS admin/table.html.tmpl columns = columns data = components - footer = footer_row + overrides = overrides %] <p><a href="editcomponents.cgi?action=add&product=[% product FILTER url_quote %]">Add</a> |