From c1a8053e98fa659ffda19fae799423c1762dbd10 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 16 Jan 2005 21:36:02 +0000 Subject: Patch for bug 103636: Support specifying a date on which a bug is expected to be resolved; patch by Alexandre Michetti Manduca , r=jouni, a=myk. --- template/en/default/bug/create/create.html.tmpl | 7 +++++++ template/en/default/bug/edit.html.tmpl | 7 +++++++ template/en/default/bug/show-multiple.html.tmpl | 2 ++ template/en/default/filterexceptions.pl | 2 ++ template/en/default/global/field-descs.none.tmpl | 1 + template/en/default/global/user-error.html.tmpl | 3 +++ template/en/default/search/form.html.tmpl | 19 +++++++++++++++++++ 7 files changed, 41 insertions(+) (limited to 'template') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 0bc5c516c..e3551627b 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -218,6 +218,13 @@ function set_assign_to() { + + Deadline: + + + (YYYY-MM-DD) + +   diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 3a9fed0c7..0ba3638d8 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -380,6 +380,9 @@ Gain + + Deadline + @@ -410,6 +413,10 @@ [% PROCESS formattimeunit time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %] + + + [% END %] diff --git a/template/en/default/bug/show-multiple.html.tmpl b/template/en/default/bug/show-multiple.html.tmpl index a6c5fccea..a57445084 100644 --- a/template/en/default/bug/show-multiple.html.tmpl +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -170,6 +170,8 @@ [% PROCESS formattimeunit time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %]   + Deadline:  + [% bug.deadline %] [% END %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index b954c9176..3d5ba8fb1 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -337,6 +337,7 @@ ], 'bug/edit.html.tmpl' => [ + 'bug.deadline', 'bug.remaining_time', 'bug.delta_ts', 'bug.bug_id', @@ -366,6 +367,7 @@ 'bug/show-multiple.html.tmpl' => [ 'bug.bug_id', + 'bug.deadline', ], 'bug/show.xml.tmpl' => [ diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index e49db6b5b..a1a22d7e8 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -38,6 +38,7 @@ "component_id" => "Component ID", "component" => "Component", "creation_ts" => "$terms.Bug Creation time", + "deadline" => "Deadline", "delta_ts" => "Last Changed time", "dependson" => "Depends on", "dup_id" => "Duplicate", diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 6b922d0c2..7c6b40201 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -410,6 +410,9 @@ [% ELSIF error == "illegal_date" %] [% title = "Illegal Date" %] '[% date FILTER html %]' is not a legal date. + [% IF format %] + Please use the format '[% format FILTER html %]'. + [% END %] [% ELSIF error == "illegal_email_address" %] [% title = "Invalid Email Address" %] diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index a3e0d68f5..35a85710d 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -304,6 +304,25 @@ function doOnSelectProduct(selectmode) { [% END %] + + [%# Deadline %] + [% IF UserInGroup(Param("timetrackinggroup")) %] + + + Deadline: + + + from  +   + to  + + + + (YYYY-MM-DD) + + + [% END %] +
-- cgit v1.2.3-24-g4f1b