mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Merge pull request #2734 from alphagov/set-letter-branding
Set letter branding for a service
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<a href="{{ url_for('.create_email_branding') }}" class="button align-with-heading">Add new brand</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ live_search(target_selector='.email-brand', show=show_search_box, form=search_form) }}
|
||||
{{ live_search(target_selector='.email-brand', show=True, form=search_form) }}
|
||||
<nav>
|
||||
{% for brand in email_brandings %}
|
||||
<div class="email-brand">
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
|
||||
{% call settings_row(if_has_permission='letter') %}
|
||||
{{ text_field('Letter branding') }}
|
||||
{{ text_field(current_service.letter_branding) }}
|
||||
{{ optional_text_field(current_service.letter_branding.name) }}
|
||||
{{ edit_field(
|
||||
'Change',
|
||||
url_for('.request_letter_branding', service_id=current_service.id),
|
||||
@@ -309,8 +309,8 @@
|
||||
{% endcall %}
|
||||
{% call row() %}
|
||||
{{ text_field('Letter branding')}}
|
||||
{{ text_field(current_service.letter_branding) }}
|
||||
{{ edit_field('Change', url_for('.set_letter_branding', service_id=current_service.id)) }}
|
||||
{{ optional_text_field(current_service.letter_branding.name) }}
|
||||
{{ edit_field('Change', url_for('.service_set_letter_branding', service_id=current_service.id)) }}
|
||||
{% endcall %}
|
||||
{% call row() %}
|
||||
{{ text_field('Data retention')}}
|
||||
|
||||
@@ -12,7 +12,11 @@
|
||||
<div class="grid-row">
|
||||
<div class="column-three-quarters">
|
||||
<p>
|
||||
Your letters have the {{ current_service.letter_branding }} logo.
|
||||
{% if current_service.letter_branding_id %}
|
||||
Your letters have the {{ current_service.letter_branding.name }} logo.
|
||||
{% else %}
|
||||
Your letters have no logo.
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ url_for('main.feedback', ticket_type='ask-question-give-feedback', body='letter-branding') }}">Contact support</a>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
<div class="grid-row">
|
||||
<div class="column-full">
|
||||
{{ live_search(target_selector='.multiple-choice', show=show_search_box, form=search_form, label='Search branding styles by name') }}
|
||||
{{ live_search(target_selector='.multiple-choice', show=True, form=search_form, label='Search branding styles by name') }}
|
||||
{{ radios(form.branding_style) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,12 +13,14 @@
|
||||
<h1 class="heading-large">Set letter branding</h1>
|
||||
{% call form_wrapper() %}
|
||||
{{ live_search(target_selector='.multiple-choice', show=True, form=search_form, label='Search by name') }}
|
||||
{{ radios(form.dvla_org_id, hide_legend=True) }}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
back_link=url_for('.service_settings', service_id=current_service.id),
|
||||
back_link_text='Back to settings'
|
||||
) }}
|
||||
{{ radios(form.branding_style, hide_legend=True) }}
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
back_link=url_for('.service_settings', service_id=current_service.id),
|
||||
back_link_text='Back to settings'
|
||||
) }}
|
||||
</div>
|
||||
{% endcall %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user