{% extends "cosinnus/wagtail/wagtailadmin/custom_admin_base.html" %} {% load gravatar static compress i18n cosinnus_tags %} {% block titletag %}{% trans "Import Projects and Groups or Users" %}{% endblock %} {% block branding_welcome %}{% trans "Import Projects and Groups" %}{% endblock %} {% block sections %}


{% csrf_token %}

{% trans "CSV Import Results" %}

{% trans "The import has finished. Here are the results:" %}

{% if import_results.read_errors %}

{% trans "Read errors:" %} {{ import_results.read_errors }}

{% trans "These rows in your CSV file had errors or an incorrect number of columns and were IGNORED:" %} {{ import_results.read_errors }}

{% if import_results.bad_rows %}

{% for bad_row in import_results.bad_rows %} {{ bad_row }}
{% endfor %}

{% endif %} {% endif %} {% if import_results.successes %}

{% trans "Saved items:" %} {{ import_results.saved_groups }} / {{ import_results.total_groups }}

{% for msg in import_results.successes %} {{ msg|safe|urlize|url_target_blank }}
{% endfor %}

{% endif %} {% if import_results.attentions %}

{% trans "Important messages:" %}

{% for msg in import_results.attentions %} {{ msg|safe|urlize|url_target_blank }}
{% endfor %}

{% endif %} {% if import_results.errors %}

{% trans "Errors:" %}

{% for msg in import_results.errors %} {{ msg|safe|urlize|url_target_blank }}
{% endfor %}

{% endif %} {% if import_results.infos %}

{% trans "Info messages:" %}

{% for msg in import_results.infos %} {{ msg|safe|urlize|url_target_blank }}
{% endfor %}

{% endif %}
{% endblock %}