{% extends "base.html" %} {# One macro for both schemes: two field groups written twice would be two groups that eventually differ, and a `ServiceOption` offered for normal and not for instant is a bank that cannot be configured. #} {% macro code_slot(prefix, label, key, code) %} {% endmacro %} {% macro scheme_fields(prefix, profile) %} {{ code_slot(prefix, t('schemes.service_level'), 'service_level', profile.service_level) }} {{ code_slot(prefix, t('schemes.local_instrument'), 'local_instrument', profile.local_instrument) }} {{ code_slot(prefix, t('schemes.category_purpose'), 'category_purpose', profile.category_purpose) }} {% endmacro %} {% block title %}{{ t('connection.edit') }} {{ connection.connection_id }} — painfree{% endblock %} {% block body %}

{{ t('connection.edit') }} {{ connection.connection_id }}

{{ t('connection_edit.lede') }}

{{ t('connection_edit.host_url_warning') }} {{ t('connection_edit.host_url_warning_body') }}
{# Ticked by default, and the default is the safe one: the bank holds the payment and a person releases it, so this service alone cannot move money. Clearing it is the deliberate act, and it needs a mandate at the bank that says this subscriber signs alone. #}

{{ t('connection.request_eds_hint') }}

{# The letter is on paper, at a bank, and this decides what it says. Once INI or HIA has gone out, changing it does not change a key the bank holds -- it makes the letter somebody signed quote the wrong hash. #} {% if connection.ini_sent or connection.hia_sent %}
{{ t('connection_edit.digest_sent_title') }}

{{ t('connection_edit.digest_sent_body') }}

{% endif %}

{{ t('connection.product') }}

{{ t('schemes.heading') }}

{{ t('schemes.lede') }}

{{ t('schemes.refusal_codes_hint') }}

{{ t('schemes.normal_heading') }}

{{ t('schemes.btf_hint') }}

{{ scheme_fields('normal', connection.schemes.normal) }}

{{ t('schemes.instant_heading') }}

{{ scheme_fields('instant', connection.schemes.instant or default_instant) }}

{{ t('schemes.ceiling_hint') }}

{{ t('common.cancel') }}
{% endblock %}