2019-01-31 16:56:35 +00:00
|
|
|
{% extends "views/platform-admin/_base_template.html" %}
|
|
|
|
|
{% from "components/file-upload.html" import file_upload %}
|
2019-04-29 11:44:05 +01:00
|
|
|
{% from "components/page-header.html" import page_header %}
|
2019-01-31 16:56:35 +00:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
|
{% from "components/textbox.html" import textbox %}
|
|
|
|
|
{% from "components/form.html" import form_wrapper %}
|
|
|
|
|
|
|
|
|
|
{% block per_page_title %}
|
2019-02-11 15:31:12 +00:00
|
|
|
{{ '{} letter branding'.format('Update' if is_update else 'Create')}}
|
2019-01-31 16:56:35 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
|
|
2019-04-29 11:44:05 +01:00
|
|
|
{{ page_header(
|
|
|
|
|
'{} letter branding'.format('Update' if is_update else 'Add'),
|
|
|
|
|
back_link=url_for('main.letter_branding')
|
|
|
|
|
) }}
|
2020-02-19 11:57:15 +00:00
|
|
|
<div class="govuk-grid-row">
|
2020-02-20 16:55:56 +00:00
|
|
|
<div class="govuk-grid-column-three-quarters">
|
2019-01-31 16:56:35 +00:00
|
|
|
{% if logo %}
|
|
|
|
|
<div id="logo-img">
|
|
|
|
|
<img src="https://{{ cdn_url }}/{{ logo }}"/>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2020-05-29 17:11:01 +01:00
|
|
|
<p class="govuk-body">
|
2019-02-15 14:57:37 +00:00
|
|
|
Logos should be SVG files, cropped to artwork bounds and with all fonts outlined.
|
|
|
|
|
</p>
|
2019-02-11 15:31:12 +00:00
|
|
|
{{ file_upload(file_upload_form.file, button_text='{} logo'.format('Update' if is_update else 'Upload')) }}
|
2019-01-31 16:56:35 +00:00
|
|
|
{% call form_wrapper() %}
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div style='margin-top:15px;'>{{textbox(letter_branding_details_form.name)}}</div>
|
|
|
|
|
{{ page_footer(
|
|
|
|
|
'Save',
|
|
|
|
|
button_name='operation',
|
2019-04-29 11:44:05 +01:00
|
|
|
button_value='branding-details'
|
2019-01-31 16:56:35 +00:00
|
|
|
) }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endcall %}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|