Ship the contact lists feature

This reveals the links that we were only showing to platform admin users
so that everyone can discover the new feature.
This commit is contained in:
Chris Hill-Scott
2020-03-16 14:57:36 +00:00
parent fc58547be3
commit 3dfa401de1
4 changed files with 34 additions and 41 deletions

View File

@@ -33,7 +33,7 @@
<div class="govuk-grid-column-full">
{% if link_to_upload %}
<a class="govuk-link govuk-link--no-visited-state govuk-!-margin-right-3" href="{{ url_for('.send_messages', service_id=current_service.id, template_id=template.id) }}">Upload a list of {{ recipient_count_label(999, template.template_type) }}</a>
{% if current_user.platform_admin and current_service.contact_lists %}
{% if current_service.contact_lists %}
<a class="govuk-link govuk-link--no-visited-state govuk-!-margin-right-3" href="{{ url_for('.choose_from_contact_list', service_id=current_service.id, template_id=template.id) }}">Use a saved list</a>
{% endif %}
{% endif %}