Added returned-letter-summary page.

This page displays a list of available reports, a report is a set of returned lettters that have been reported on the same day.
Each line of the page is a link that can download the report.

I'm not sure the format of the csv is right. The data might be confusing especially if the service has a mix of precompiled templates and jobs.
Units tests are still to come.
This commit is contained in:
Rebecca Law
2019-12-18 11:53:46 +00:00
parent e2d979f199
commit 729281532d
4 changed files with 37 additions and 6 deletions

View File

@@ -22,7 +22,7 @@
field_headings_visible=False
) %}
{% call field() %}
<a href="{{url_for('.returned_letters_report', service_id=current_service.id, reported_date=item.reported_at)}}">
<a href="{{url_for('.returned_letters_report', service_id=current_service.id, reported_at=item.reported_at)}}">
Returned letters reported on {{ item.reported_at | format_datetime_short}} ({{ item.returned_letter_count}} letters)
</a>
{% endcall %}