{% if import_ko %}
Ligne{{ import_ko | pluralize }} nécessitant correction{{ import_ko | pluralize }}
{% for field in basic_fields %}
{% if forloop.first %}
{{ field | title }}
|
{% else %}
{{ model | verbose_fieldname:field | title }}
|
{% endif %}
{% endfor %}
{% with field="courriels" %}
{{ field | title }}
|
{% endwith %}
{% for field in extended_fields %}
{{ field | title }}
|
{% endfor %}
{% for index, pouvoir, exception in import_ko %}
{% for field in basic_fields %}
{% 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 %}
|
{% endfor %}
{% with field="courriels_list" %}
{{ 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 %}
|
{% endwith %}
{% for field in extended_fields %}
{{ pouvoir | get_champ_perso:field | default_if_none:'-' | truncatechars:100 }}
|
{% endfor %}
{% endfor %}
{% endif %}
{% if import_warn %}
Ligne{{ import_warn | pluralize }} nécessitant attention
{% for field in basic_fields %}
{% if forloop.first %}
{{ field | title }}
|
Avertissements
|
{% else %}
{{ model | verbose_fieldname:field | title }}
|
{% endif %}
{% endfor %}
{% with field="courriels" %}
{{ field | title }}
|
{% endwith %}
{% for field in extended_fields %}
{{ field | title }}
|
{% endfor %}
{% for index, pouvoir, warning in import_warn %}
{% for field in basic_fields %}
{% if forloop.first %}
{{ index | add:2 }}
|
{{ warning }}
{% else %}
{{ pouvoir | getattr:field | default_if_none:'-' | truncatechars:100 }}
{% endif %}
|
{% endfor %}
{% with field="courriels_list" %}
{{ pouvoir.courriels_list|join:", " | default_if_none:'-' | truncatechars:100 }}
|
{% endwith %}
{% for field in extended_fields %}
{{ pouvoir | get_champ_perso:field | default_if_none:'-' | truncatechars:100 }}
|
{% endfor %}
{% endfor %}
{% endif %}
{% if import_ok %}
Ligne{{ import_ok | pluralize }} importable{{ import_ok | pluralize }}
{% for field in basic_fields %}
{% if forloop.first %}
{{ field | title }}
|
{% else %}
{{ model | verbose_fieldname:field | default_if_none:'-' | title }}
|
{% endif %}
{% endfor %}
{% with field="courriels" %}
{{ field | title }}
|
{% endwith %}
{% for field in extended_fields %}
{{ field | title }}
|
{% endfor %}
{% for index, pouvoir, _ in import_ok %}
{% for field in basic_fields %}
{% if forloop.first %}
{{ index | add:2 }}
{% else %}
{{ pouvoir | getattr:field | default_if_none:'-' }}
{% endif %}
|
{% endfor %}
{% with field="courriels_list" %}
{{ pouvoir.courriels_list|join:", " | default_if_none:'-' | truncatechars:100 }}
|
{% endwith %}
{% for field in extended_fields %}
{{ pouvoir | get_champ_perso:field | default_if_none:'-' | truncatechars:100 }}
|
{% endfor %}
{% endfor %}
{% endif %}