summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-17 01:14:17 +0200
committerlpsolit%gmail.com <>2005-09-17 01:14:17 +0200
commit3e7162e6aba411f215a60b9d412fd6a9e8594e67 (patch)
treeb04e340e4464a79495a83713f3da8997d3f2938b /template/en/default
parent2f3084922bfe7cb8759fe4064c46311385fa23f0 (diff)
downloadbugzilla-3e7162e6aba411f215a60b9d412fd6a9e8594e67.tar.gz
bugzilla-3e7162e6aba411f215a60b9d412fd6a9e8594e67.tar.xz
Bug 307524: Templatise the updategroupcontrols bit of editproducts.cgi (and tidy up templatisation) - Original patch by André Batosti <batosti@async.com.br> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/admin/products/edit.html.tmpl3
-rw-r--r--template/en/default/admin/products/groupcontrol/updated.html.tmpl53
2 files changed, 55 insertions, 1 deletions
diff --git a/template/en/default/admin/products/edit.html.tmpl b/template/en/default/admin/products/edit.html.tmpl
index da58e6722..effd2b0bb 100644
--- a/template/en/default/admin/products/edit.html.tmpl
+++ b/template/en/default/admin/products/edit.html.tmpl
@@ -96,7 +96,8 @@ versions:</a>
<tr>
<th align="right" valign="top">
<a href="editproducts.cgi?action=editgroupcontrols&product=
- [%- product.name FILTER url_quote %]">
+ [%- product.name FILTER url_quote %]&classification=
+ [%- classification FILTER url_quote %]">
Edit Group Access Controls:
</a>
</th>
diff --git a/template/en/default/admin/products/groupcontrol/updated.html.tmpl b/template/en/default/admin/products/groupcontrol/updated.html.tmpl
new file mode 100644
index 000000000..71ae0d7eb
--- /dev/null
+++ b/template/en/default/admin/products/groupcontrol/updated.html.tmpl
@@ -0,0 +1,53 @@
+[%# 1.0@bugzilla.org %]
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Bug Tracking System.
+ #
+ # Contributor(s): André Batosti <batosti@async.com.br>
+ #
+ #%]
+
+[%# INTERFACE:
+ # removed_na: array of hashes; groups not applicable for the product.
+ # added_mandatory: array of hashes; groups mandatory for the product.
+ # classification: string; product classification name.
+ # product: string; name of the product.
+ #%]
+
+[% title = BLOCK %]
+ Update group access controls for [% product FILTER html %]
+[% END %]
+
+[% PROCESS global/header.html.tmpl
+ title = title
+%]
+<p>
+[% IF removed_na.size > 0 %]
+ [% FOREACH g = removed_na %]
+ Removing [% terms.bugs %] from group '[% g.name FILTER html %]' which
+ no longer applies to this product<p>
+ [% g.bug_count FILTER html %] [%+ terms.bugs %] removed<p>
+ [% END %]
+[% END %]
+
+[% IF added_mandatory.size > 0 %]
+ [% FOREACH g = added_mandatory %]
+ Adding [% terms.bugs %] to group '[% g.name FILTER html %]' which is
+ mandatory for this product<p>
+ [% g.bug_count FILTER html %] [%+ terms.bugs %] added<p>
+ [% END %]
+[% END %]
+
+Group control updates done<p>
+
+[% PROCESS admin/products/footer.html.tmpl name = product %]
+
+[% PROCESS global/footer.html.tmpl %]