From 8cb6f0fa771a8c3c2374c8b2fcb7d4f2e5048ed5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 14 Jun 2007 21:35:54 +0000 Subject: Bug 101179: Fully implement support for customised bug statuses and workflow (final checkin!) - Patch by Frédéric Buclin r=gerv a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/admin/fieldvalues/create.html.tmpl | 19 +++++++++++++++++++ .../en/default/admin/fieldvalues/created.html.tmpl | 5 +++++ template/en/default/admin/fieldvalues/edit.html.tmpl | 7 ++++++- template/en/default/global/user-error.html.tmpl | 6 ++++++ 4 files changed, 36 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/admin/fieldvalues/create.html.tmpl b/template/en/default/admin/fieldvalues/create.html.tmpl index 9a0ac993e..61ca62ebf 100644 --- a/template/en/default/admin/fieldvalues/create.html.tmpl +++ b/template/en/default/admin/fieldvalues/create.html.tmpl @@ -12,6 +12,7 @@ # The Original Code is the Bugzilla Bug Tracking System. # # Contributor(s): Max Kanat-Alexander + # Frédéric Buclin #%] [%# INTERFACE: @@ -41,6 +42,24 @@ + [% IF field.name == "bug_status" %] + + + + +
+ + + + + +   + + Note: The open/close attribute can only be set now, when you create + the status. It cannot be edited later. + + + [% END %] diff --git a/template/en/default/admin/fieldvalues/created.html.tmpl b/template/en/default/admin/fieldvalues/created.html.tmpl index b3d60f081..f06923677 100644 --- a/template/en/default/admin/fieldvalues/created.html.tmpl +++ b/template/en/default/admin/fieldvalues/created.html.tmpl @@ -34,6 +34,11 @@ [%- value FILTER html %]' has been added as a valid choice for the '[% field.description FILTER html %]' field.

+[% IF field.name == "bug_status" %] + You should now visit the status workflow page + to include your new [% terms.bug %] status. +[% END %] + [% PROCESS admin/fieldvalues/footer.html.tmpl %] [% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/fieldvalues/edit.html.tmpl b/template/en/default/admin/fieldvalues/edit.html.tmpl index 919ac090c..efce7b255 100644 --- a/template/en/default/admin/fieldvalues/edit.html.tmpl +++ b/template/en/default/admin/fieldvalues/edit.html.tmpl @@ -50,7 +50,12 @@ - + [% IF field.name == "bug_status" %] + + + [% IF is_open %]Open[% ELSE %]Closed[% END %] + + [% END %] diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index e21e54948..c2bbde28c 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -459,6 +459,12 @@ [% title = "Field Value Not Specified" %] No field value specified when trying to edit a field value. + [% ELSIF error == "fieldvalue_reserved_word" %] + [% title = "Reserved Word Not Allowed" %] + You cannot use the '[% value FILTER html %]' value for the + '[% field.description FILTER html %]' field. This value is used internally. + Please choose another one. + [% ELSIF error == "fieldvalue_sortkey_invalid" %] [% title = "Invalid Field Value Sortkey" %] The sortkey '[% sortkey FILTER html %]' for the '[% name FILTER html %]' -- cgit v1.2.3-24-g4f1b