mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-30 11:19:44 -04:00
Merge pull request #2108 from alphagov/no-redact-letters
Don’t let people redact letter templates
This commit is contained in:
@@ -70,12 +70,14 @@
|
||||
</span>
|
||||
 
|
||||
{% endif %}
|
||||
{% if not template._template.redact_personalisation %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
||||
<a href="{{ url_for('.confirm_redact_template', service_id=current_service.id, template_id=template.id) }}">Hide personalisation after sending</a>
|
||||
</span>
|
||||
{% else %}
|
||||
<p class="hint">Personalisation is hidden after sending</p>
|
||||
{% if template.template_type != 'letter' %}
|
||||
{% if not template._template.redact_personalisation %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
||||
<a href="{{ url_for('.confirm_redact_template', service_id=current_service.id, template_id=template.id) }}">Hide personalisation after sending</a>
|
||||
</span>
|
||||
{% else %}
|
||||
<p class="hint">Personalisation is hidden after sending</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user