use new letter branding instead of dvla organisation id

new code is copied stylistically from the email branding patterns.
Instead of `service.dvla_organisation`, there's now
`service.letter_branding` and `service.letter_branding_id`. However,
unlike email branding we're not currently showing a preview of the
logo. That can come later when we work out how we want to do it.
This commit is contained in:
Leo Hemsted
2019-02-01 16:34:54 +00:00
parent 0e20ca44a3
commit a1caf77b0e
7 changed files with 49 additions and 19 deletions

View File

@@ -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)) }}
{{ 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')}}

View File

@@ -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 %}