Show preview of current branding

This adds a preview of the current branding to users on the page where
they can select which new branding they want. Also includes a tiny
content change to match the new content doc for this story.
This commit is contained in:
Katie Smith
2022-02-22 14:57:49 +00:00
parent 77e1c015c4
commit 4e409f7d93
2 changed files with 18 additions and 2 deletions

View File

@@ -25,9 +25,12 @@
Your emails currently have {{ branding_name }} branding.
</p>
{% set branding_id = current_service.email_branding_id if current_service.email_branding else '__NONE__' %}
<iframe src="{{ url_for('main.email_template', branding_style=branding_id) }}" class="branding-preview"></iframe>
{% if current_service.needs_to_change_email_branding %}
<p class="govuk-body">
You should be using your own branding instead. We can help you to set this up.
You should be using your own branding instead.
</p>
{% endif %}