diff options
author | mkanat%bugzilla.org <> | 2007-08-24 04:31:19 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-08-24 04:31:19 +0200 |
commit | 845aacfb3652a18ef12828628e68180591f6baf6 (patch) | |
tree | 32f462212ee80be748c073f221489d4a935f1aea /template/en/default | |
parent | d721954afb4458f240d3be8e020c619c57c9c1ed (diff) | |
download | bugzilla-845aacfb3652a18ef12828628e68180591f6baf6.tar.gz bugzilla-845aacfb3652a18ef12828628e68180591f6baf6.tar.xz |
Bug 373440: Make "check" into a generic function in Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 32 |
1 files changed, 28 insertions, 4 deletions
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 <em>[% field_descs.$field FILTER html %]</em> 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 %] |