2018-06-05 10:37:41 +01:00
{% extends "withnav_template.html" %}
2019-04-29 11:44:05 +01:00
{% from "components/page-header.html" import page_header %}
2018-06-05 10:37:41 +01:00
{% from "components/page-footer.html" import page_footer %}
2019-02-25 16:23:28 +00:00
{% from "components/radios.html" import radio %}
{% from "components/select-input.html" import select_wrapper %}
2018-09-19 12:39:36 +01:00
{% from "components/form.html" import form_wrapper %}
2021-07-30 18:23:12 +01:00
{% from "components/back-link/macro.njk" import govukBackLink %}
2018-06-05 10:37:41 +01:00
{% block service_page_title %}
2020-02-25 11:27:43 +00:00
Send files by email
2018-06-05 10:37:41 +01:00
{% endblock %}
2021-07-30 18:23:12 +01:00
{% block backLink %}
{{ govukBackLink({ "href": url_for('main.service_settings', service_id=current_service.id) }) }}
{% endblock %}
2018-06-05 10:37:41 +01:00
{% 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" >
2021-07-30 18:23:12 +01:00
{{ page_header('Send files by email') }}
2020-05-29 17:11:01 +01:00
< p class = "govuk-body" >
2020-02-25 11:27:43 +00:00
This is an API-only feature.
2020-05-29 17:11:01 +01:00
< / p >
< p class = "govuk-body" >
2020-05-29 17:25:11 +01:00
To send a file by email, follow the instructions in our < a class = "govuk-link govuk-link--no-visited-state" href = {{ url_for ( ' main . documentation ' ) } } > API documentation< / a > .
2020-02-25 11:27:43 +00:00
< / p >
< h2 class = "heading-medium" > {% if contact_details %}Change contact details for{% else %}Add contact details to{% endif %} the file download page< / h2 >
2020-05-29 17:11:01 +01:00
< p class = "govuk-body" >
2020-02-25 11:27:43 +00:00
You need to include contact details for your service so your users can get in touch if there’ s a problem. For example, if the link to download the file you sent them has expired.
2018-06-05 10:37:41 +01:00
< / p >
2018-09-19 12:39:36 +01:00
{% call form_wrapper() %}
2018-08-09 11:59:05 +01:00
2019-02-25 16:23:28 +00:00
{% call select_wrapper(form.contact_details_type, hide_legend=true) %}
2018-08-09 11:59:05 +01:00
{% for option in form.contact_details_type %}
2018-08-13 12:24:52 +01:00
{% set data_target = option.data.replace('_', '-') ~ "-type" %}
{{ radio(option, data_target=data_target) }}
< div class = "panel panel-border-narrow js-hidden" id = {{data_target}} >
2020-08-07 12:21:05 +01:00
{{ form|attr(option.data)(param_extensions={"classes": "govuk-!-width-full", "label": {"text": " "}}) }}
2018-08-13 12:24:52 +01:00
< / div >
2018-08-09 11:59:05 +01:00
{% endfor %}
{% endcall %}
2019-04-29 11:44:05 +01:00
{{ page_footer('Save') }}
2018-09-19 12:39:36 +01:00
{% endcall %}
2018-06-05 10:37:41 +01:00
< / div >
< / div >
{% endblock %}