{% extends 'layout.html' %} {% load i18n %} {% load humanize %} {% block title %}{% trans "Import User" %}{% endblock %} {% block content %}

{% trans "Import User" %}

{% if invalid %}
{% trans "Not a valid JSON file" %}
{% endif %} {% if next_available %}

{% blocktrans %}Currently you are allowed to import one user every {{ user_import_hours }} hours.{% endblocktrans %}

{% blocktrans %}You will next be able to import a user file at {{ next_available }}{% endblocktrans %}

{% else %}
{% csrf_token %}
{{ import_form.archive_file }}

{% trans "Importing this file will overwrite any data you currently have saved." %}

{% trans "Deselect any data you do not wish to include in your import. Books will always be imported" %}

{% if not import_limit_reset and not import_size_limit or allowed_imports > 0 %} {% else %}

{% trans "You've reached the import limit." %}

{% endif%}
{% endif %}

{% trans "Recent Imports" %}

{% if not jobs %} {% endif %} {% for job in jobs %} {% endfor %}
{% trans "Date Created" %} {% trans "Last Updated" %} {% trans "Status" %}
{% trans "No recent imports" %}

{{ job.created_date }}

{{ job.updated_date }} {% if job.status %} {{ job.status }} {{ job.status_display }} {% elif job.complete %} {% trans "Complete" %} {% else %} {% trans "Active" %} {% endif %}
{% include 'snippets/pagination.html' with page=jobs path=request.path %}
{% endblock %}