mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
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:
@@ -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>
|
||||
 
|
||||
{% 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>
|
||||
|
||||
Reference in New Issue
Block a user