diff --git a/app/templates/components/branding-preview.html b/app/templates/components/branding-preview.html index f29a1361e..d6a55782d 100644 --- a/app/templates/components/branding-preview.html +++ b/app/templates/components/branding-preview.html @@ -1,3 +1,11 @@ -{% macro branding_preview(branding_style) %} - +{% macro branding_preview(branding_style, endpoint) %} + +{% endmacro %} + +{% macro email_branding_preview(branding_style) %} + {{ branding_preview(branding_style, 'main.email_template') }} +{% endmacro %} + +{% macro letter_branding_preview(branding_style) %} + {{ branding_preview(branding_style, 'main.letter_template') }} {% endmacro %} diff --git a/app/templates/views/organisations/organisation/settings/preview-email-branding.html b/app/templates/views/organisations/organisation/settings/preview-email-branding.html index 92f9185ff..6b401f711 100644 --- a/app/templates/views/organisations/organisation/settings/preview-email-branding.html +++ b/app/templates/views/organisations/organisation/settings/preview-email-branding.html @@ -1,7 +1,7 @@ {% extends "org_template.html" %} {% from "components/form.html" import form_wrapper %} {% from "components/button/macro.njk" import govukButton %} -{% from "components/branding-preview.html" import branding_preview %} +{% from "components/branding-preview.html" import email_branding_preview %} {% block org_page_title %} Preview email branding @@ -12,7 +12,7 @@
Emails from {{ current_service.name }} will look like this.
- {{ branding_preview(nhs_branding_id) }} + {{ email_branding_preview(nhs_branding_id) }}