Files
notifications-admin/app/templates/views/service-settings/branding/email-branding-options.html
Chris Hill-Scott b8d7966eb1 Add macro for letter branding previews
This extends the same thing we’ve done for email branding previews in
the previous commit to cover letter branding as well.
2022-03-01 14:31:38 +00:00

63 lines
1.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "withnav_template.html" %}
{% from "components/radios.html" import radio %}
{% from "components/select-input.html" import select_wrapper %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-header.html" import page_header %}
{% 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 email_branding_preview %}
{% block service_page_title %}
Change email branding
{% endblock %}
{% block backLink %}
{{ govukBackLink({
"href": url_for('.service_settings', service_id=current_service.id)
}) }}
{% endblock %}
{% block maincolumn_content %}
{{ page_header('Change email branding') }}
<p class="govuk-body">
Your emails currently have {{ branding_name }} branding.
</p>
{{ email_branding_preview(
current_service.email_branding_id if current_service.email_branding else '__NONE__'
) }}
{% if current_service.needs_to_change_email_branding %}
<p class="govuk-body">
You should be using your own branding instead.
</p>
{% endif %}
{% if form.something_else_is_only_option %}
{% call form_wrapper() %}
{{ textbox(
form.something_else,
hint='Include links to your brand guidelines or examples of how to use your branding.',
width='1-1',
) }}
<p class="form-group">
Well email you when your branding is ready, or if we need any more information.
</p>
{{ page_footer('Request new branding') }}
{% endcall %}
{% else %}
{% call form_wrapper() %}
{% call select_wrapper(form.options) %}
{% for option in form.options %}
{{ radio(option) }}
{% endfor %}
{% endcall %}
{{ page_footer('Continue') }}
{% endcall %}
{% endif %}
{% endblock %}