Add an endpoint to download a contact list

In case you need to download it, modify it, and re-upload it when you
don’t have access to the existing list.
This commit is contained in:
Chris Hill-Scott
2020-03-15 19:13:07 +00:00
parent ec2f36d054
commit b598af1eca
5 changed files with 66 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
</p>
<p class="govuk-body">
<a class="govuk-link govuk-link--no-visited-state heading-small" download href="{{ url_for('main.download_contact_list', service_id=current_service.id, contact_list_id=contact_list.id) }}">Download this list</a>&emsp;
{{ contact_list.recipients|length|format_thousands }}
{{ recipient_count_label(contact_list.recipients|length, contact_list.recipients.template_type) }}
</p>