diff --git a/app/templates/components/branding-preview.html b/app/templates/components/branding-preview.html new file mode 100644 index 000000000..f29a1361e --- /dev/null +++ b/app/templates/components/branding-preview.html @@ -0,0 +1,3 @@ +{% macro branding_preview(branding_style) %} + +{% 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 4e6186831..92f9185ff 100644 --- a/app/templates/views/organisations/organisation/settings/preview-email-branding.html +++ b/app/templates/views/organisations/organisation/settings/preview-email-branding.html @@ -1,6 +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 %} {% block org_page_title %} Preview email branding @@ -11,7 +12,7 @@

Preview email branding

- + {{ branding_preview(form.branding_style.data) }} {% call form_wrapper(action=action) %}
{{ form.hidden_tag() }} diff --git a/app/templates/views/service-settings/branding/email-branding-govuk.html b/app/templates/views/service-settings/branding/email-branding-govuk.html index a1f3ada20..ea41da440 100644 --- a/app/templates/views/service-settings/branding/email-branding-govuk.html +++ b/app/templates/views/service-settings/branding/email-branding-govuk.html @@ -3,6 +3,7 @@ {% from "components/back-link/macro.njk" import govukBackLink %} {% from "components/page-footer.html" import page_footer %} {% from "components/page-header.html" import page_header %} +{% from "components/branding-preview.html" import branding_preview %} {% block service_page_title %} Check your new branding @@ -22,7 +23,7 @@ Emails from {{ current_service.name }} will look like this.

- + {{ branding_preview('__NONE__') }}

Before you continue

diff --git a/app/templates/views/service-settings/branding/email-branding-nhs.html b/app/templates/views/service-settings/branding/email-branding-nhs.html index 9bdcc84c6..91bc3d14c 100644 --- a/app/templates/views/service-settings/branding/email-branding-nhs.html +++ b/app/templates/views/service-settings/branding/email-branding-nhs.html @@ -3,6 +3,7 @@ {% from "components/back-link/macro.njk" import govukBackLink %} {% from "components/page-footer.html" import page_footer %} {% from "components/page-header.html" import page_header %} +{% from "components/branding-preview.html" import branding_preview %} {% block service_page_title %} Check your new branding @@ -21,8 +22,7 @@

Emails from {{ current_service.name }} will look like this.

- - + {{ branding_preview(nhs_branding_id) }}

Before you continue

diff --git a/app/templates/views/service-settings/branding/email-branding-options.html b/app/templates/views/service-settings/branding/email-branding-options.html index 7354e448d..a7a256c17 100644 --- a/app/templates/views/service-settings/branding/email-branding-options.html +++ b/app/templates/views/service-settings/branding/email-branding-options.html @@ -6,6 +6,7 @@ {% from "components/page-footer.html" import page_footer %} {% from "components/form.html" import form_wrapper %} {% from "components/back-link/macro.njk" import govukBackLink %} +{% from "components/branding-preview.html" import branding_preview %} {% block service_page_title %} Change email branding @@ -25,8 +26,9 @@ Your emails currently have {{ branding_name }} branding.

- {% set branding_id = current_service.email_branding_id if current_service.email_branding else '__NONE__' %} - + {{ branding_preview( + current_service.email_branding_id if current_service.email_branding else '__NONE__' + ) }} {% if current_service.needs_to_change_email_branding %}

diff --git a/app/templates/views/service-settings/preview-email-branding.html b/app/templates/views/service-settings/preview-email-branding.html index d0149947d..8633a11e4 100644 --- a/app/templates/views/service-settings/preview-email-branding.html +++ b/app/templates/views/service-settings/preview-email-branding.html @@ -1,6 +1,7 @@ {% extends "withnav_template.html" %} {% from "components/form.html" import form_wrapper %} {% from "components/button/macro.njk" import govukButton %} +{% from "components/branding-preview.html" import branding_preview %} {% block service_page_title %} Preview email branding @@ -11,7 +12,7 @@

Preview email branding

- + {{ branding_preview(form.branding_style.data) }} {% call form_wrapper(action=action) %}
{{ form.hidden_tag() }}