diff options
author | Julien Heyman <jheyman@portaildulibre.fr> | 2012-08-07 23:59:18 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-08-07 23:59:18 +0200 |
commit | 14d7441b73d32614aa0e086c5f69ac087b939a48 (patch) | |
tree | 281660eac457755f199b4600439e2a7973f54612 /template/en/default/reports | |
parent | eb04bb66cee35f39d546403ea4f777b43452cd4d (diff) | |
download | bugzilla-14d7441b73d32614aa0e086c5f69ac087b939a48.tar.gz bugzilla-14d7441b73d32614aa0e086c5f69ac087b939a48.tar.xz |
Bug 319598: Add support for saved tabular and graphical reports
r/a=LpSolit
Diffstat (limited to 'template/en/default/reports')
-rw-r--r-- | template/en/default/reports/report.html.tmpl | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/template/en/default/reports/report.html.tmpl b/template/en/default/reports/report.html.tmpl index 84cefbded..76049d04e 100644 --- a/template/en/default/reports/report.html.tmpl +++ b/template/en/default/reports/report.html.tmpl @@ -150,18 +150,35 @@ </tr> </table> - <p> - [% IF format == "table" %] - <a href="query.cgi?[% switchbase %]&format=report-table">Edit - this report</a> - [% ELSE %] - <a href="query.cgi?[% switchbase %]&chart_format= - [% format %]&format=report-graph&cumulate=[% cumulate %]"> - Edit this report - </a> - [% END %] - </p> - + <table> + <tr> + <td> + [% IF format == "table" %] + <a href="query.cgi?[% switchbase %]&format=report-table">Edit this report</a> + [% ELSE %] + <a href="query.cgi?[% switchbase %]&chart_format= + [%~ format %]&format=report-graph&cumulate=[% cumulate %]"> + Edit this report</a> + [% END %] + </td> + <td> </td> + <td> + [% IF saved_report_id %] + <a href="report.cgi?action=del&saved_report_id=[% saved_report_id FILTER uri %]&token= + [%~ issue_hash_token(['delete_report', saved_report_id]) FILTER uri %]">Forget this report</a> + [% ELSE %] + <form method="get" action="report.cgi"> + <input type="submit" id="remember" value="Remember report"> as + <input type="hidden" name="query" value="[% switchbase %]&format=[% format FILTER html %]&action=wrap"> + <input type="hidden" name="action" value="add"> + <input type="hidden" name="token" value="[% issue_hash_token(['save_report']) FILTER html %]"> + <input type="text" id="name" name="name" size="20" value="" maxlength="64"> + </form> + [% END %] + </td> + </tr> + </table> + </div> [% PROCESS global/footer.html.tmpl %] |