{% extends "admin/base_site.html" %} {% load cycle from future %} {% load i18n admin_urls %} {% block title %}{% trans "Load data" %} {{ block.super }}{% endblock %} {% block extrahead %} {{ block.super }} {{ media }} {% endblock %} {% block extrastyle %} {{ import_file_form.media }} {{ block.super }} {% endblock %} {% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %} {% block bodyclass %}change-form{% endblock %} {% block breadcrumbs %} {% if not is_popup %} {% endif %} {% endblock %} {% block content_title %}

{% trans "Load data" %}

{% endblock %} {% block content %}
{% csrf_token %}
{% if import_file_form.errors %}

{% trans "Please correct the error below." %}

{% endif %}
{% if files_available %}

{% trans "Data from your computer" %}

{% endif %} {% for field in import_file_form %}
{% if field.errors %}
    {% for error in field.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %} {{ field }} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endfor %}
{% if smuggler_fixture_dir %} {% endif %}
{% if files_available %}
{% csrf_token %}
{% comment %} # TODO: implement this error message {% if none_selected %}

{% trans "You need select at least one." %}

{% endif %} {% endcomment %}
{% endif %} {% endblock %}