From 845aacfb3652a18ef12828628e68180591f6baf6 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 24 Aug 2007 02:31:19 +0000 Subject: Bug 373440: Make "check" into a generic function in Bugzilla::Object Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/global/user-error.html.tmpl | 32 +++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'template') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index b5b7bf098..5cebb8166 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -902,10 +902,6 @@ The name of a milestone is limited to 20 characters. '[% name FILTER html %]' is too long ([% name.length %] characters). - [% ELSIF error == "milestone_not_specified" %] - [% title = "No Milestone Specified" %] - No milestone specified when trying to edit milestones. - [% ELSIF error == "milestone_not_valid" %] [% title = "Specified Milestone Does Not Exist" %] The milestone '[% milestone FILTER html %]' for product @@ -1139,6 +1135,24 @@ in the [% field_descs.$field FILTER html %] field is less than the minimum allowable value of '[% min_num FILTER html %]'. + [% ELSIF error == "object_name_not_specified" %] + [% type = BLOCK %][% PROCESS object_name %][% END %] + [% title = BLOCK %][% type FILTER ucfirst FILTER html %] Not + Specified[% END %] + You must select/enter a [% type FILTER html %]. + + [% ELSIF error == "object_does_not_exist" %] + [% type = BLOCK %][% PROCESS object_name %][% END %] + [% title = BLOCK %]Invalid [% type FILTER ucfirst FILTER html %][% END %] + There is no [% type FILTER html %] named '[% name FILTER html %]' + [% IF product.defined %] + in the '[% product.name FILTER html %]' product + [% END %]. + [% IF class == "Bugzilla::User" %] + Either you mis-typed the name or that user has not yet registered + for a [% terms.Bugzilla %] account. + [% END %] + [% ELSIF error == "old_password_incorrect" %] [% title = "Incorrect Old Password" %] You did not enter your old password correctly. @@ -1611,3 +1625,13 @@ [% END %] [% PROCESS global/footer.html.tmpl %] + +[% BLOCK object_name %] + [% IF class == "Bugzilla::User" %] + user + [% ELSIF class == "Bugzilla::Version" %] + version + [% ELSIF class == "Bugzilla::Milestone" %] + milestone + [% END %] +[% END %] -- cgit v1.2.3-24-g4f1b