{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load static %} {% block custom_header %}{% endblock %} {% block title %}{% trans "Automatic Import" %}{% endblock %} {% block content %}

{% trans "Automatic Import" %}

{% if sandbox_mode %}
{% trans "Connected to an Enable Banking mock ASPSP. This is a test connection — no real bank data is used." %}
{% endif %}

{% trans "Fetch Transactions" %}

{% if connection and connection.state == 'active' %}
{% csrf_token %}
{% else %}

{% trans "No active bank connection." %}

{% endif %}
{% if connection and connection.state == 'active' %} {% with expires=connection.connection_expires_at %}

{% blocktrans trimmed with name=connection.aspsp_name %} Connected to {{ name }} {% endblocktrans %}

{% blocktrans trimmed with date=connection.created|date:"SHORT_DATETIME_FORMAT" %} Connected since {{ date }} {% endblocktrans %}

{% if expires %}

{% blocktrans trimmed with date=expires|date:"SHORT_DATE_FORMAT" %} Bank link expires on {{ date }}. {% endblocktrans %}

{% endif %} {% if accounts %}

{% for account in accounts %} {% if account.is_active %} {{ account.account_name }}{% if account.iban %} · {{ account.iban }}{% endif %} {% endif %} {% endfor %}

{% endif %}
{% endwith %} {% elif connection and connection.state == 'awaiting_auth' %}

{% trans "Awaiting bank authorization" %}

{% blocktrans trimmed with name=connection.aspsp_name %} Please complete bank authorization for {{ name }}. If you have not been redirected yet, click the button below. {% endblocktrans %}

{% if connection.auth_link %} {% trans "Continue to bank authorization" %} {% endif %}
{% csrf_token %}
{% else %}

{% trans "No bank connected" %}

{% url 'plugins:pretix_enablebanking:settings' organizer=request.organizer.slug as settings_url %} {% blocktrans trimmed with url=settings_url %} No bank account connected. Please go to Enable Banking settings to connect a bank account. {% endblocktrans %}
{% endif %}
{% if recent_jobs %} {% for job in recent_jobs %} {% endfor %}
{% trans "ID" %} {% trans "Created" %} {% trans "State" %} {% trans "Currency" %}
#{{ job.pk }} {{ job.created|date:"SHORT_DATETIME_FORMAT" }} {{ job.get_state_display }} {{ job.currency }}
{% else %}

{% trans "No import jobs yet." %}

{% endif %}
{% csrf_token %}

{% endblock %}