{% extends "modeladmin/create.html" %} {% load static accessors modeladmin_tags %} {% block titletag %}Importer des pouvoirs (2/2){% endblock %} {% block content %} {% include "wagtailadmin/shared/header.html" with title="Importer des pouvoirs" icon="download" subtitle=" Analyse de l'import avant validation" %}
{% if import_ko %}

Ligne{{ import_ko | pluralize }} nécessitant correction{{ import_ko | pluralize }}

{% for field in basic_fields %} {% if forloop.first %} {% else %} {% endif %} {% endfor %} {% with field="courriels" %} {% endwith %} {% for field in extended_fields %} {% endfor %} {% for index, pouvoir, exception in import_ko %} {% for field in basic_fields %} {% endfor %} {% with field="courriels_list" %} {% endwith %} {% for field in extended_fields %} {% endfor %} {% endfor %}
{{ field | title }} {{ model | verbose_fieldname:field | title }} {{ field | title }} {{ field | title }}
{% if forloop.first %} {{ index | add:2 }} {% else %} {{ pouvoir | getattr:field | default_if_none:'-' | truncatechars:100 }} {% for error in exception.error_dict|get:field %} {% for message in error.messages %}

{{ message }}

{% endfor %} {% endfor %} {% if field == 'nom' %} {% for error in exception.error_dict|get:'__all__' %} {% for message in error.messages %}

{{ message }}

{% endfor %} {% endfor %} {% endif %} {% endif %}
{{ pouvoir.courriels_list|join:", " | default_if_none:'-' | truncatechars:100 }} {% for error in exception.error_dict|get:"courriel" %} {% for message in error.messages %}

{{ message }}

{% endfor %} {% endfor %}
{{ pouvoir | get_champ_perso:field | default_if_none:'-' | truncatechars:100 }}
{% endif %} {% if import_warn %}

Ligne{{ import_warn | pluralize }} nécessitant attention

{% for field in basic_fields %} {% if forloop.first %} {% else %} {% endif %} {% endfor %} {% with field="courriels" %} {% endwith %} {% for field in extended_fields %} {% endfor %} {% for index, pouvoir, warning in import_warn %} {% for field in basic_fields %} {% endfor %} {% with field="courriels_list" %} {% endwith %} {% for field in extended_fields %} {% endfor %} {% endfor %}
{{ field | title }} Avertissements {{ model | verbose_fieldname:field | title }} {{ field | title }} {{ field | title }}
{% if forloop.first %} {{ index | add:2 }}

{{ warning }}

{% else %} {{ pouvoir | getattr:field | default_if_none:'-' | truncatechars:100 }} {% endif %}
{{ pouvoir.courriels_list|join:", " | default_if_none:'-' | truncatechars:100 }} {{ pouvoir | get_champ_perso:field | default_if_none:'-' | truncatechars:100 }}
{% endif %} {% if import_ok %}

Ligne{{ import_ok | pluralize }} importable{{ import_ok | pluralize }}

{% for field in basic_fields %} {% if forloop.first %} {% else %} {% endif %} {% endfor %} {% with field="courriels" %} {% endwith %} {% for field in extended_fields %} {% endfor %} {% for index, pouvoir, _ in import_ok %} {% for field in basic_fields %} {% endfor %} {% with field="courriels_list" %} {% endwith %} {% for field in extended_fields %} {% endfor %} {% endfor %}
{{ field | title }} {{ model | verbose_fieldname:field | default_if_none:'-' | title }} {{ field | title }} {{ field | title }}
{% if forloop.first %} {{ index | add:2 }} {% else %} {{ pouvoir | getattr:field | default_if_none:'-' }} {% endif %} {{ pouvoir.courriels_list|join:", " | default_if_none:'-' | truncatechars:100 }} {{ pouvoir | get_champ_perso:field | default_if_none:'-' | truncatechars:100 }}
{% endif %}
{% csrf_token %} {{ form }}
{% endblock %}