From: gerv%gerv.net <> Date: Mon, 15 Sep 2003 06:00:08 +0000 (+0000) Subject: Bug 218569 - Clean up reporting UI. Patch by gerv; r=jouni, a=justdave. X-Git-Tag: bugzilla-2.17.5~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5852e76888924d197ae0a2322ce27b506c46b900;p=thirdparty%2Fbugzilla.git Bug 218569 - Clean up reporting UI. Patch by gerv; r=jouni, a=justdave. --- diff --git a/report.cgi b/report.cgi index 9701907424..72e69a0fda 100755 --- a/report.cgi +++ b/report.cgi @@ -287,7 +287,7 @@ if ($action eq "wrap") { $vars->{'imagebase'} = $cgi->canonicalise_query( $tbl_field, "action", "ctype", "format", "width", "height"); $vars->{'switchbase'} = $cgi->canonicalise_query( - "action", "ctype", "format", "width", "height"); + "query_format", "action", "ctype", "format", "width", "height"); $vars->{'data'} = \%data; } elsif ($action eq "plot") { diff --git a/template/en/default/reports/report.html.tmpl b/template/en/default/reports/report.html.tmpl index 19d8c722fa..535a8c5035 100644 --- a/template/en/default/reports/report.html.tmpl +++ b/template/en/default/reports/report.html.tmpl @@ -165,8 +165,8 @@ Edit this report [% ELSE %] - + Edit this report [% END %] diff --git a/template/en/default/search/search-report-graph.html.tmpl b/template/en/default/search/search-report-graph.html.tmpl index 7793f30126..d5f4a14dca 100644 --- a/template/en/default/search/search-report-graph.html.tmpl +++ b/template/en/default/search/search-report-graph.html.tmpl @@ -27,19 +27,34 @@ [% PROCESS global/variables.none.tmpl %] [% PROCESS global/header.html.tmpl - title = "Generate Report" - onload = "selectProduct(document.forms['reportform']);" + title = "Generate Graphical Report" + onload = "selectProduct(document.forms['reportform']);chartTypeChanged()" %] [% PROCESS "search/search-report-select.html.tmpl" %]

- Produce a pictorial graph of [% terms.bug %] counts by choosing one or more fields as - your axes, and then refining your set of [% terms.bugs %] using the rest of the form. - If you choose a third axis, it will be represented by multiple tables of data. - Note: vertical axis settings will be ignored for pie charts. + Choose one or more fields as your axes, and then refine your set of + [% terms.bugs %] using the rest of the form.

+ + [% button_name = "Generate Report" %]
@@ -48,6 +63,7 @@ Vertical Axis:
+ [% PROCESS select name = 'y_axis_field' %]

Plot Data Sets:
@@ -56,8 +72,7 @@ Individually
- Added - + Summed @@ -80,6 +95,7 @@ [% FOREACH chart_format = chart_formats %] [% chart_format.description FILTER html %]
[% END %] diff --git a/template/en/default/search/search-report-table.html.tmpl b/template/en/default/search/search-report-table.html.tmpl index b850f93c87..713ea88f91 100644 --- a/template/en/default/search/search-report-table.html.tmpl +++ b/template/en/default/search/search-report-table.html.tmpl @@ -27,16 +27,15 @@ [% PROCESS global/variables.none.tmpl %] [% PROCESS global/header.html.tmpl - title = "Generate Report" + title = "Generate Tabular Report" onload = "selectProduct(document.forms['reportform']);" %] [% PROCESS "search/search-report-select.html.tmpl" %]

- Produce a table of [% terms.bug %] counts by choosing one or more fields as your axes, - and then refining your set of [% terms.bugs %] using the rest of the form. - If you choose a third axis, it will be represented by multiple tables of data. + Choose one or more fields as your axes, and then refine your set of + [% terms.bugs %] using the rest of the form.

[% button_name = "Generate Report" %] @@ -51,12 +50,6 @@ Horizontal Axis: [% PROCESS select name = 'x_axis_field' %] - -
   - Format:
- HTML
- CSV -