summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/products/footer.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/products/footer.html.tmpl')
-rw-r--r--template/en/default/admin/products/footer.html.tmpl86
1 files changed, 86 insertions, 0 deletions
diff --git a/template/en/default/admin/products/footer.html.tmpl b/template/en/default/admin/products/footer.html.tmpl
new file mode 100644
index 000000000..0276437f3
--- /dev/null
+++ b/template/en/default/admin/products/footer.html.tmpl
@@ -0,0 +1,86 @@
+[%# 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): Gavin Shelley <bugzilla@chimpychompy.org>
+ #%]
+
+[%# INTERFACE:
+ # name: string; the name of the product
+ #
+ # classification: string; If classifications are enabled, then this is
+ # the currently selected classification
+ #
+ # no_XXX_link: boolean; if defined, then don't show the corresponding
+ # link. Supported parameters are:
+ #
+ # no_edit_product_link
+ # no_edit_other_products_link
+ # no_add_product_link
+ #%]
+
+[% IF classification %]
+ [% classification_url_part = BLOCK %]&amp;classification=
+ [%- classification FILTER url_quote %]
+ [% END %]
+ [% classification_text = BLOCK %]
+ of classification '[% classification FILTER html %]'
+ [% END %]
+[% END %]
+
+<p>
+
+<hr>
+
+[% UNLESS no_add_product_link %]
+ <a title="Add a product"
+ href="editproducts.cgi?action=add">Add</a> a product
+
+
+ [%# Strictly speaking, we should not have to check for a
+ classification if they are enabled, but I'm just being paranoid %]
+ [% IF Param('useclassification') && classification %]
+ (<a title="Add a product to classification '
+ [%- classification FILTER html %]'"
+ href="editproducts.cgi?action=add
+ [%- classification_url_part %]">to
+ classification '[% classification FILTER html %]'</a>)
+ [% END %].
+[% END %]
+
+[% IF name && !no_edit_product_link %]
+ Edit product <a
+ title="Edit Product '[% name FILTER html %]'
+ [% classification_text %]"
+ href="editproducts.cgi?action=edit&amp;product=
+ [%- name FILTER url_quote %][% classification_url_part %]">
+ '[% name FILTER html %]'</a>FRED
+[% END %]
+
+
+[% UNLESS no_edit_other_products_link %]
+ Edit other products [% classification_text %]<a
+ href="editproducts.cgi?product=
+ [%- name FILTER url_quote %]
+ [%- classification_url_part %]">'
+ [%- classification FILTER html %]'</a>
+
+[% END %]
+
+[% IF Param('useclassification') && classification %]
+ Edit classification <a href="editclassifications.cgi?action=edit
+ [%- classification_url_part %]">'
+ [%- classification FILTER html %]'</a>.
+
+[% END %]
+
+</p>