From 3e7162e6aba411f215a60b9d412fd6a9e8594e67 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 16 Sep 2005 23:14:17 +0000 Subject: Bug 307524: Templatise the updategroupcontrols bit of editproducts.cgi (and tidy up templatisation) - Original patch by André Batosti r=LpSolit a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/admin/products/edit.html.tmpl | 3 +- .../admin/products/groupcontrol/updated.html.tmpl | 53 ++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 template/en/default/admin/products/groupcontrol/updated.html.tmpl (limited to 'template') 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: + [%- product.name FILTER url_quote %]&classification= + [%- classification FILTER url_quote %]"> Edit Group Access Controls: 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 + # + #%] + +[%# 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 +%] +

+[% 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

+ [% g.bug_count FILTER html %] [%+ terms.bugs %] removed

+ [% 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

+ [% g.bug_count FILTER html %] [%+ terms.bugs %] added

+ [% END %] +[% END %] + +Group control updates done

+ +[% PROCESS admin/products/footer.html.tmpl name = product %] + +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b