2019-09-06 10:39:23 +01:00
{% extends "withnav_template.html" %}
2019-10-15 15:56:06 +01:00
{% from "components/banner.html" import banner_wrapper %}
2019-09-06 10:39:23 +01:00
{% from "components/file-upload.html" import file_upload %}
{% from "components/page-header.html" import page_header %}
{% block service_page_title %}
Upload a letter
{% endblock %}
{% block maincolumn_content %}
< div class = "grid-row" >
< div class = "column-five-sixths" >
2019-10-15 15:56:06 +01:00
{% if error %}
{% call banner_wrapper(type='dangerous') %}
< h1 class = "banner-title" > {{ error.title }}< / h1 >
{% if error.detail %}
< p > {{ error.detail | safe }}< / p >
{% endif %}
{% endcall %}
{% else %}
{{ page_header(
2019-09-06 10:39:23 +01:00
'Upload a letter',
back_link=url_for('main.uploads', service_id=current_service.id)
) }}
2019-10-15 15:56:06 +01:00
{% endif %}
2019-09-06 10:39:23 +01:00
< p >
{{ file_upload(
form.file,
2019-10-15 15:56:06 +01:00
action=url_for('main.upload_letter', service_id=current_service.id),
button_text='Upload your file again' if error else 'Choose file',
show_errors=False
2019-09-06 10:39:23 +01:00
)}}
< / p >
< p > You can upload a single letter as a PDF.< / p >
2020-01-15 10:56:14 +00:00
< p > Your file must meet our < a href = "{{ url_for('.letter_spec') }}" > letter specification< / a > .< / p >
2019-12-10 13:06:44 +00:00
< p > To help you set up your letter you can download a < a href = "https://docs.notifications.service.gov.uk/documentation/images/notify-pdf-letter-word-template-v1.0.docx" > Word document template< / a > .< / p >
2019-09-06 10:39:23 +01:00
< / div >
< / div >
{% endblock %}