{% extends "withnav_template.html" %} {% from "components/banner.html" import banner_wrapper %} {% from "components/folder-path.html" import folder_path, page_title_folder_path %} {% from "components/page-footer.html" import page_footer %} {% from "components/textbox.html" import textbox %} {% from "components/api-key.html" import api_key %} {% from "components/button/macro.njk" import govukButton %} {% block service_page_title %} {{ page_title_folder_path(current_service.get_template_path(template._template)) }} {% endblock %} {% block maincolumn_content %} {% if show_redaction_message %}
{% call banner_wrapper(type='dangerous', subhead='Are you sure you want to hide personalisation after sending?') %}
{{ govukButton({ "text": "Confirm", "classes": "govuk-button--warning govuk-!-margin-top-2" }) }}
{% endcall %}
{% else %}
{{ folder_path( folders=current_service.get_template_path(template._template), service_id=current_service.id, template_type='all', current_user=current_user ) }}
{% endif %}
{% include 'views/templates/_template.html' %}
{% if template.template_type != 'broadcast' %}
{{ api_key(template.id, name="Template ID", thing='template ID') }}
{% endif %}
{% if template._template.updated_at %}

Last edited

See previous versions
{% endif %} {% if current_user.has_permissions('manage_templates') and user_has_template_permission %} {% if not template._template.archived %} Delete this template   {% endif %} {% if template.template_type not in ('letter', 'broadcast') %} {% if not template._template.redact_personalisation %} Hide personalisation after sending {% else %}

Personalisation is hidden after sending

{% endif %} {% endif %} {% endif %}
{% endblock %}