Make it possible to preview a broadcast template

At the moment this won’t look like much, but it will let us do an
end-to-end run of adding a broadcast template.

At the moment all you can do with a broadcast template is edit it, so
there’s no ‘Send’ link on the page.
This commit is contained in:
Chris Hill-Scott
2020-07-01 17:43:30 +01:00
parent 154d4bdb85
commit 724e8d1838
6 changed files with 73 additions and 4 deletions

View File

@@ -28,6 +28,14 @@
</a>
</div>
{% endif %}
{% elif template.template_type == 'broadcast' %}
{% if current_user.has_permissions('manage_templates') %}
<div class="govuk-grid-column-full">
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="govuk-link govuk-link--no-visited-state pill-separate-item">
Edit
</a>
</div>
{% endif %}
{% else %}
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
<div class="govuk-grid-column-one-half">