summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-25 07:48:05 +0100
committermkanat%kerio.com <>2005-02-25 07:48:05 +0100
commitb8a8680e9d5ed7de541ab9f4e0275fa79a9a6d30 (patch)
tree3a169ef8d68f2a6b0f86bc731d00b1b06a4c8d53 /template/en/default/global
parente92cc4c9b115dfae6e352660c053e142634a3ef4 (diff)
downloadbugzilla-b8a8680e9d5ed7de541ab9f4e0275fa79a9a6d30.tar.gz
bugzilla-b8a8680e9d5ed7de541ab9f4e0275fa79a9a6d30.tar.xz
Bug 281876: New Admin Interface to manage old Enum fields (Field Values)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=justdave
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/useful-links.html.tmpl14
-rw-r--r--template/en/default/global/user-error.html.tmpl43
2 files changed, 48 insertions, 9 deletions
diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl
index b9a69a9e9..eb8c7e24c 100644
--- a/template/en/default/global/useful-links.html.tmpl
+++ b/template/en/default/global/useful-links.html.tmpl
@@ -78,19 +78,15 @@
IF user.groups.tweakparams %]
[% ' | <a href="editusers.cgi">Users</a>' IF user.groups.editusers
|| user.can_bless %]
- [% IF Param('useclassification') %]
- [% IF user.groups.editclassifications %]
+ [% IF Param('useclassification') && user.groups.editclassifications %]
[% ' | <a href="editclassifications.cgi">Classifications</a>' %]
- [% END %]
- [% IF user.groups.editcomponents %]
- [% ' | <a href="editproducts.cgi">Products</a>' %]
- [% END %]
- [% ELSE %]
- [% ' | <a href="editproducts.cgi">Products</a>'
+ [% END %]
+ [% ' | <a href="editproducts.cgi">Products</a>'
IF user.groups.editcomponents %]
- [% END %]
[% ' | <a href="editflagtypes.cgi">Flags</a>'
IF user.groups.editcomponents %]
+ [% ' | <a href="editvalues.cgi">Field Values</a>'
+ IF user.groups.editcomponents %]
[% ' | <a href="editgroups.cgi">Groups</a>'
IF user.groups.creategroups %]
[% ' | <a href="editkeywords.cgi">Keywords</a>'
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 55c796924..47dcaca10 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -321,6 +321,49 @@
Sorry; you do not have the permissions necessary to enter [% terms.abug %]
against the [% product FILTER html %] product.
+ [% ELSIF error == "fieldname_invalid" %]
+ [% title = "Specified Field Does Not Exist" %]
+ The field '[% field FILTER html %]' does not exist or
+ cannot be edited with this interface.
+
+ [% ELSIF error == "fieldname_not_specified" %]
+ [% title = "Field Name Not Specified" %]
+ No field name specified when trying to edit field values.
+
+ [% ELSIF error == "fieldvalue_already_exists" %]
+ [% title = "Field Value Already Exists" %]
+ The value '[% value FILTER html %]' already exists for the
+ '[%- field FILTER html %]' field.
+
+ [% ELSIF error == "fieldvalue_doesnt_exist" %]
+ [% title = "Specified Field Value Does Not Exist" %]
+ The value '[% value FILTER html %]' does not exist for
+ the '[% field FILTER html %]' field.
+
+ [% ELSIF error == "fieldvalue_name_too_long" %]
+ [% title = "Field Value Is Too Long" %]
+ The value of a field is limited to 60 characters.
+ '[% value FILTER html %]' is too long ([% value.length %] characters).
+
+ [% ELSIF error == "fieldvalue_not_specified" %]
+ [% title = "Field Value Not Specified" %]
+ No field value specified when trying to edit a field value.
+
+ [% ELSIF error == "fieldvalue_sortkey_invalid" %]
+ [% title = "Invalid Field Value Sortkey" %]
+ The sortkey '[% sortkey FILTER html %]' for the '[% name FILTER html %]'
+ field is not a valid (positive) number.
+
+ [% ELSIF error == "fieldvalue_still_has_bugs" %]
+ [% title = "You Cannot Delete This Field Value" %]
+ You cannot delete the value '[% value FILTER html %]' from the
+ '[% field FILTER html%]' field, because there are still
+ [% count FILTER html %] [% terms.bugs %] using it.
+
+ [% ELSIF error == "fieldvalue_undefined" %]
+ [% title = "Undefined Value Not Allowed" %]
+ You must specify a value.
+
[% ELSIF error == "file_not_specified" %]
[% title = "No File Specified" %]
You did not specify a file to attach.