Don’t let people redact letter templates

It doesn’t work, so we shouldn’t show the link.
This commit is contained in:
Chris Hill-Scott
2018-06-07 11:03:03 +01:00
parent 9bba6f08a4
commit 8137f9c3a6
2 changed files with 30 additions and 6 deletions

View File

@@ -70,12 +70,14 @@
</span>
&emsp;
{% 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>