From ac8796ba2733be5e0e618148ee12488cc567d34e Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Tue, 13 Jul 2004 12:12:29 +0000 Subject: Patch for bug 190222: templatize editgroups.cgi; r=joel, a=justdave. --- template/en/default/global/code-error.html.tmpl | 15 +++++++---- template/en/default/global/user-error.html.tmpl | 33 +++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 7 deletions(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index c5233b8e8..ae47ed349 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -61,6 +61,10 @@ The ID [% page_id FILTER html %] is not a valid page identifier. + [% ELSIF error == "bad_arg" %] + Bad argument [% argument FILTER html %] sent to + [% function FILTER html %] function. + [% ELSIF error == "bug_error" %] Trying to retrieve [% terms.bug %] [%+ bug.bug_id FILTER html %] returned the error [% bug.error FILTER html %]. @@ -104,10 +108,6 @@ Attempted to add [% terms.bug %] to an inactive group, identified by the bit '[% bit FILTER html %]'. - [% ELSIF error == "bad_arg" %] - Bad argument [% argument FILTER html %] sent to - [% function FILTER html %] function. - [% ELSIF error == "invalid_attach_id_to_obsolete" %] The attachment number of one of the attachments you wanted to obsolete, [% attach_id FILTER html %], is invalid. @@ -131,7 +131,12 @@ [% ELSIF error == "invalid_dimensions" %] [% title = "Invalid Dimensions" %] The width or height specified is not a positive integer. - + + [% ELSIF error == "invalid_isactive_flag" %] + [% title = "Invalid isactive flag" %] + The active flag was improperly set. There may be + a problem with [% terms.Bugzilla %] or [% terms.abug %] in your browser. + [% ELSIF error == "invalid_series_id" %] [% title = "Invalid Series" %] The series_id [% series_id FILTER html %] is not valid. It may be that diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index e4c9863df..97987b786 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -96,6 +96,11 @@ account creation. Please contact an administrator to get a new account created. + [% ELSIF error == "auth_cant_edit_groups" %] + [% title = "Not authorized to edit groups" %] + Sorry, you aren't a member of the 'creategroups' group. And so, + you aren't allowed to edit the groups. + [% ELSIF error == "authorization_failure" %] [% title = "Authorization Failed" %] You are not allowed to [% action FILTER html %]. @@ -169,6 +174,14 @@ [% title = "Email Address Confirmation Failed" %] Email address confirmation failed. + [% ELSIF error == "empty_group_description" %] + [% title = "The group description can not be empty" %] + You must enter a description for the new group. + + [% ELSIF error == "empty_group_name" %] + [% title = "The group name can not be empty" %] + You must enter a name for the new group. + [% ELSIF error == "entry_access_denied" %] [% title = "Permission Denied" %] Sorry; you do not have the permissions necessary to enter [% terms.abug %] @@ -235,7 +248,15 @@ [% title = "Flag Type Sort Key Invalid" %] The sort key must be an integer between 0 and 32767 inclusive. It cannot be [% sortkey FILTER html %]. - + + [% ELSIF error == "group_exists" %] + [% title = "The group already exists" %] + The group [% name FILTER html %] already exists. + + [% ELSIF error == "group_not_specified" %] + [% title = "Group not specified" %] + No group was specified. + [% ELSIF error == "illegal_at_least_x_votes" %] [% title = "Your Search Makes No Sense" %] The At least ___ votes field must be a simple number. @@ -370,6 +391,10 @@ [% END %] ). + [% ELSIF error == "invalid_group_ID" %] + [% title = "Invalid group ID" %] + The group you specified doesn't exist. + [% ELSIF error == "invalid_maxrows" %] [% title = "Invalid Max Rows" %] The maximum number of rows, '[% maxrows FILTER html %]', must be @@ -378,7 +403,11 @@ [% ELSIF error == "invalid_product_name" %] [% title = "Invalid Product Name" %] The product name '[% product FILTER html %]' is invalid or does not exist. - + + [% ELSIF error == "invalid_regexp" %] + [% title = "Invalid regular expression" %] + The regular expression you entered is invalid. + [% ELSIF error == "invalid_username" %] [% title = "Invalid Username" %] The name [% name FILTER html %] is not a valid username. -- cgit v1.2.3-24-g4f1b