summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-12 22:50:41 +0200
committerlpsolit%gmail.com <>2005-09-12 22:50:41 +0200
commit0d06b64ddb02bbfcc38c9ed88c400beb88e8b556 (patch)
treec732b6890d127a54f14509ecba57513e957ff770 /template
parent53fe5d4d04525d7ef944f1ce60a323a5b767d769 (diff)
downloadbugzilla-0d06b64ddb02bbfcc38c9ed88c400beb88e8b556.tar.gz
bugzilla-0d06b64ddb02bbfcc38c9ed88c400beb88e8b556.tar.xz
Bug 306757: Templatize the 'new' section of editproducts.cgi - Patch by Gabriel Sales de Oliveira <gabriel@async.com.br> r=LpSolit a=justdave
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/products/created.html.tmpl31
-rw-r--r--template/en/default/global/user-error.html.tmpl13
2 files changed, 44 insertions, 0 deletions
diff --git a/template/en/default/admin/products/created.html.tmpl b/template/en/default/admin/products/created.html.tmpl
new file mode 100644
index 000000000..e4229f8a2
--- /dev/null
+++ b/template/en/default/admin/products/created.html.tmpl
@@ -0,0 +1,31 @@
+[%# 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): Gabriel S. Oliveira <gabriel@async.com.br>
+ #%]
+
+[% PROCESS global/header.html.tmpl
+ title = 'New Product Created'
+%]
+<br>
+<div style='border: 1px red solid; padding: 1ex;'>
+ <b>You will need to
+ <a href="editcomponents.cgi?action=add&product=[% product FILTER url_quote %]">
+ add at least one component
+ </a> before you can enter [% terms.bugs %] against this product
+ </b>
+</div>
+
+[% PROCESS "admin/products/footer.html.tmpl" name = product %]
+
+[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index be6108e81..b77e58d16 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -976,6 +976,11 @@
[% ELSIF error == "prod_name_already_in_use" %]
[% title = "Product name already in use" %]
The product name '[% product FILTER html %]' is already in use.
+
+ [% ELSIF error == "prod_name_diff_in_case" %]
+ [% title = "Product name differs only in case" %]
+ The product name '[% product FILTER html %]' differs from existing
+ product '[% existing_product FILTER html %]' only in case.
[% ELSIF error == "prod_must_define_defaultmilestone" %]
[% title = "Must define new default milestone" %]
@@ -990,6 +995,10 @@
create the milestone '[% defaultmilestone FILTER html %]'</a> before
it can be made the default milestone for product '[% product FILTER html %]'.
+ [% ELSIF error == "product_blank_name" %]
+ [% title = "Blank Product Name Not Allowed" %]
+ You must enter a name for the new product.
+
[% ELSIF error == "product_disabled" %]
[% title = BLOCK %]Product closed for [% terms.Bugs %] Entry[% END %]
Sorry, entering [% terms.bugs %] into the
@@ -1006,6 +1015,10 @@
You must reassign those [% terms.bugs %] to another product before you
can delete this one.
+ [% ELSIF error == "product_must_have_version" %]
+ [% title = "Product needs version" %]
+ You must enter a version for product '[% product FILTER html %]'.
+
[% ELSIF error == "product_not_specified" %]
[% title = "No Product Specified" %]
No product specified when trying to edit components, milestones, versions