diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-03-06 16:04:11 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2014-03-10 15:28:19 +0000 |
commit | 2825102c58448e15dc5323396d93f84f1bd3eb6b (patch) | |
tree | 2922ec545eb5f013fb69c45d07c8e39ff2f5155d /templates/web/default | |
parent | f6340aba0c9819756d2298c58aec6c79c877ee70 (diff) |
Export reports as CSV on /dashboard
Provide a button to download the details and text of reports
at the second "Look up" button on /dashboard.
Provides acknowledged, fixed, closed dates by parsing updates.
Fixes #692 (and mysociety/FixMyStreet-Commercial#399)
Email is not shown, and name honours anonymous flag: as /dashboard
is accessible to people who are from_body (who still do not see
anon-users name and email in the FMS web app.)
A basic test is provided as per Zurich's similar report.
Diffstat (limited to 'templates/web/default')
-rw-r--r-- | templates/web/default/dashboard/index.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/web/default/dashboard/index.html b/templates/web/default/dashboard/index.html index f5a3cfba3..b3e1e8426 100644 --- a/templates/web/default/dashboard/index.html +++ b/templates/web/default/dashboard/index.html @@ -146,6 +146,7 @@ [% END %] </select> <input type="submit" value="Look up"> +<a class="export_as_csv" href="[% c.req.uri_with({ export => 1 }) %]">Export as CSV</a> <table width="100%" id="reports"> <tr> |