From: Guy Pyrzak Date: Thu, 8 Jul 2010 19:03:36 +0000 (+0200) Subject: Bug 142394: Tabular reports should be sortable X-Git-Tag: bugzilla-4.1.1~451 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4199ac1f128ad3d32bbc323e94ba4acc37d43abe;p=thirdparty%2Fbugzilla.git Bug 142394: Tabular reports should be sortable r=pyrzak a=LpSolit --- diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 76b80f893e..164a833bfd 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -17,6 +17,8 @@ # # Contributor(s): Gervase Markham # + # Frédéric Buclin + # Guy Pyrzak #%] [%# INTERFACE: @@ -43,6 +45,90 @@ [% tbl_field FILTER url_quote %]=[% tbl FILTER url_quote %][% END %] [% END %] + + [% IF tbl_field %]

[% tbl_disp FILTER email FILTER html %]

[% END %] @@ -67,27 +153,29 @@ [% col_idx = 0 %] [% row_idx = 0 %] [% grand_total = 0 %] - - +
+
[% IF col_field %] + - + [% FOREACH col = col_names %] [% col_totals.$col = 0 %] [% NEXT IF col == "" %] [% col_idx = 1 - col_idx %] - [% END %] - + [% END %] - + [% FOREACH row = row_names %] [% row_total = 0 %] @@ -122,32 +210,32 @@ [% END %] - - - [% row_idx = 1 - row_idx %] - - [% FOREACH col = col_names %] - [% NEXT IF col == "" %] + + [% row_idx = 1 - row_idx %] + + [% FOREACH col = col_names %] + [% NEXT IF col == "" %] - - [% END %] - - + + [% END %] + + +
- + + [% PROCESS value_display value = col field = col_field %] - + + Total - +
- Total -
+ Total + - - [% col_totals.$col %] - - - [% grand_total %] - -
+ + [% col_totals.$col %] + + + [% grand_total %] + +
- + diff --git a/template/en/default/reports/report.html.tmpl b/template/en/default/reports/report.html.tmpl index 4f7ee49b61..0c15c94896 100644 --- a/template/en/default/reports/report.html.tmpl +++ b/template/en/default/reports/report.html.tmpl @@ -74,9 +74,10 @@ .t2 { background-color: #dfefff } /* light blue */ .t3 { background-color: #dddddd } /* grey */ .t4 { background-color: #c3d3ed } /* darker blue */ - .ttotal { background-color: #cfffdf } /* light green */ + .ttotal, .ttotal td { background-color: #cfffdf } /* light green */ " header_addl_info = time + yui = ['datatable'] %] [% IF debug %]