From 4199ac1f128ad3d32bbc323e94ba4acc37d43abe Mon Sep 17 00:00:00 2001 From: Guy Pyrzak Date: Thu, 8 Jul 2010 21:03:36 +0200 Subject: Bug 142394: Tabular reports should be sortable r=pyrzak a=LpSolit --- template/en/default/reports/report-table.html.tmpl | 154 ++++++++++++++++----- template/en/default/reports/report.html.tmpl | 3 +- 2 files changed, 123 insertions(+), 34 deletions(-) (limited to 'template/en/default/reports') diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 76b80f893..164a833bf 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 4f7ee49b6..0c15c9489 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 %] -- cgit v1.2.3-24-g4f1b