diff options
author | bugreport%peshkin.net <> | 2002-10-13 13:26:02 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2002-10-13 13:26:02 +0200 |
commit | fd742d6fc8849328749866dbff2936d43abcc7d1 (patch) | |
tree | 1e4d7646a4589bcf44adceb452b38924286f7af1 /template/en/default/list | |
parent | f61593bee73b37fc12caabbb2958b6515d688420 (diff) | |
download | bugzilla-fd742d6fc8849328749866dbff2936d43abcc7d1.tar.gz bugzilla-fd742d6fc8849328749866dbff2936d43abcc7d1.tar.xz |
Bug 24789 [E|A|R] Add Estimated, Actual, Remaining Time Fields
patch by jeff.hedlund@matrixsi.com
2xr=joel,justdave
Diffstat (limited to 'template/en/default/list')
-rw-r--r-- | template/en/default/list/edit-multiple.html.tmpl | 19 | ||||
-rw-r--r-- | template/en/default/list/table.html.tmpl | 13 |
2 files changed, 31 insertions, 1 deletions
diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 4121d0292..4d769c5fa 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -116,6 +116,25 @@ </tr> + [% IF UserInGroup(Param("timetrackinggroup")) %] + <tr> + <th><label for="estimated_time">Estimated Hours:</label></th> + <td> + <input id="estimated_time" + name="estimated_time" + value="[% dontchange FILTER html %]" + size="6"> + </td> + <th><label for="remaining_time">Remaining Hours:</label></th> + <td> + <input id="remaining_time" + name="remaining_time" + value="[% dontchange FILTER html %]" + size="6"> + </td> + </tr> + [% END %] + [% IF Param("useqacontact") %] <tr> <th><label for="qa_contact">QA Contact:</label></th> diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index 6d5ee0d6c..eb1308961 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -49,11 +49,14 @@ "version" => { maxlength => 5 , title => "Vers" } , "os" => { maxlength => 4 } , "target_milestone" => { title => "TargetM" } , + "percentage_complete" => { format_value => "%d %%" } , } %] [% qorder = order FILTER url_quote IF order %] +[% PROCESS bug/time.html.tmpl %] + [%############################################################################%] [%# Table Header #%] [%############################################################################%] @@ -132,7 +135,15 @@ [% FOREACH column = displaycolumns %] <td> [% '<nobr>' IF NOT abbrev.$column.wrap %] - [%- bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%] + [% IF abbrev.$column.format_value %] + [%- bug.$column FILTER format(abbrev.$column.format_value) FILTER html -%] + [% ELSIF column == 'actual_time' || + column == 'remaining_time' || + column == 'estimated_time' %] + [% PROCESS formattimeunit time_unit=bug.$column %] + [% ELSE %] + [%- bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%] + [% END %] [%- '</nobr>' IF NOT abbrev.$column.wrap %] </td> [% END %] |