{% 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') }}

{{ 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 %}