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 %}
|
2020-02-27 12:28:42 +00:00
|
|
|
|
Upload a letter
|
2019-09-06 10:39:23 +01:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
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-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 %}
|
2020-05-29 17:11:01 +01:00
|
|
|
|
<p class="govuk-body">{{ error.detail | safe }}</p>
|
2019-10-15 15:56:06 +01:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
{{ page_header(
|
2020-02-27 12:28:42 +00:00
|
|
|
|
'Upload a letter',
|
2019-09-06 10:39:23 +01:00
|
|
|
|
back_link=url_for('main.uploads', service_id=current_service.id)
|
|
|
|
|
|
) }}
|
2020-05-29 17:11:01 +01:00
|
|
|
|
<p class="govuk-body">Upload a single letter as a PDF and we’ll print, pack and post it for you.</p>
|
|
|
|
|
|
<p class="govuk-body">You can use this feature if you send a lot of one-off letters or if our reusable letter templates do not meet your needs.</p>
|
2019-10-15 15:56:06 +01:00
|
|
|
|
{% endif %}
|
2019-09-06 10:39:23 +01:00
|
|
|
|
|
2020-05-29 17:11:01 +01:00
|
|
|
|
<p class="govuk-body">
|
2019-09-06 10:39:23 +01:00
|
|
|
|
{{ file_upload(
|
|
|
|
|
|
form.file,
|
2020-12-17 10:47:52 +00:00
|
|
|
|
allowed_file_extensions=['pdf'],
|
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>
|
2020-02-19 08:38:08 +00:00
|
|
|
|
|
2020-12-11 11:24:58 +00:00
|
|
|
|
<p class="govuk-body">Your file must meet our <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.letter_specification') }}">letter specification</a>.</p>
|
2019-09-06 10:39:23 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|