{% extends 'core/wizards/_base.html' %} {% load i18n bootstrap %} {% block wizard_help %}

{% blocktrans with opentag=''|safe closetag=''|safe %}See {{opentag}}the import documentation{{closetag}} for details.{% endblocktrans %}

{% endblock %} {% block wizard_action %}action="{% url 'api:document-imports' pk=object.pk %}"{% endblock %} {% block wizard_fields %} {% if import_form.current_import and import_form.current_import.ongoing %} {% trans "Import is already ongoing, please wait for it to be finished or cancel it." %} {% else %} {% if import_form.current_import.failed %}
{% trans "Resume previous import." %}
{% blocktrans with filename=import_form.current_import.filename progress=import_form.current_import.processed total=import_form.current_import.parser.total %}Previous import ({{filename}}) failed at step {{ progress }}/{{ total }}.{% endblocktrans %} {% if import_form.current_import.error_message %}
{% trans "Reason:" %} {{ import_form.current_import.error_message }} {% endif %} {% render_field import_form.resume_import %}
{% trans "Or" %}
{% endif %} {% endif %} {% endblock %} {% block wizard_submit %}{% trans "Start importing" %}{% endblock %}