Hide template ID and redaction for broadcast templates

We’re not going to have an API for sending broadcasts at the moment, so
you don’t need the template ID for anything.

Broadcast also won’t contain personal information, or tokenised links,
etc, so there’s no need to redact them after sending.

Removing this things means the interface is less cluttered.
This commit is contained in:
Chris Hill-Scott
2020-07-08 15:49:32 +01:00
parent 33ab9171e2
commit 60f9ea5f9c
2 changed files with 40 additions and 4 deletions

View File

@@ -46,9 +46,11 @@
{% include 'views/templates/_template.html' %}
</div>
<div class="bottom-gutter-1-2">
{{ api_key(template.id, name="Template ID", thing='template ID') }}
</div>
{% if template.template_type != 'broadcast' %}
<div class="bottom-gutter-1-2">
{{ api_key(template.id, name="Template ID", thing='template ID') }}
</div>
{% endif %}
<div class="bottom-gutter-1-2">
{% if template._template.updated_at %}
@@ -71,7 +73,7 @@
</span>
&emsp;
{% endif %}
{% if template.template_type != 'letter' %}
{% if template.template_type not in ('letter', 'broadcast') %}
{% if not template._template.redact_personalisation %}
<span class="page-footer-delete-link page-footer-delete-link-without-button">
<a class="govuk-link govuk-link--destructive" href="{{ url_for('.confirm_redact_template', service_id=current_service.id, template_id=template.id) }}">Hide personalisation after sending</a>