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 %}
2023-08-30 11:07:38 -04:00
{% from "components/components/back-link/macro.njk" import usaBackLink %}
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 %}
2023-08-30 11:07:38 -04:00
{{ usaBackLink({ "href": url_for('main.service_settings', service_id=current_service.id) }) }}
2021-07-30 18:23:12 +01:00
{% endblock %}
2018-06-05 10:37:41 +01:00
{% block maincolumn_content %}
2023-08-23 16:18:25 -04:00
< div class = "grid-row" >
< div class = "grid-col-10" >
2021-07-30 18:23:12 +01:00
{{ page_header('Send files by email') }}
2023-06-06 15:28:24 -04:00
< p >
2020-02-25 11:27:43 +00:00
This is an API-only feature.
2020-05-29 17:11:01 +01:00
< / p >
2023-06-06 15:28:24 -04:00
< p >
2023-08-08 16:19:17 -04:00
To send a file by email, follow the instructions in our < a class = "usa-link" href = {{ url_for ( ' main . documentation ' ) } } > API documentation< / a > .
2020-02-25 11:27:43 +00:00
< / p >
2023-06-06 15:28:24 -04:00
< h2 class = "font-body-lg" > {% if contact_details %}Change contact details for{% else %}Add contact details to{% endif %} the file download page< / h2 >
< p >
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}} >
2023-08-17 15:13:26 -04:00
{{ form|attr(option.data)(param_extensions={"classes": "", "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 %}