{% load i18n %} {% comment %} Connect is a button, not a nested form: it posts the surrounding settings form to its own formaction, which is how it keeps everything typed but not yet saved. Disconnect is a link to a confirmation page instead — it stops issuance. {% endcomment %}
{% if provider.connection_state == "connected" %}

{% trans "Connected" %}

{% elif provider.connection_state == "expired" %}
{% blocktrans trimmed %} The connection to Moloni has expired. Invoices can't be issued until you connect again. {% endblocktrans %}
{% else %}

{% trans "Not connected" %}

{% endif %} {% if provider.connection_state %} {% trans "Disconnect" %} {% endif %} {% comment %} The address on its own line so the copy button sits right beside it (wired up by settings.js: the CSP blocks inline handlers). {% endcomment %} {{ provider.redirect_uri }}
{% blocktrans trimmed %} Register this address as the redirect URI of your Moloni developer app. Once connected, no username or password is needed. Whatever you have typed on this page is saved when you connect. {% endblocktrans %}