{% extends "admin/base_site.html" %} {% load i18n static %} {% load admin_urls %} {% load pipeline %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block extrahead %} {{ block.super }} {{ media.js }} {{ wizard.form.media }} {% comment %} Django's jQuery lives in its own namespace ('django') and we don't want to mess around with it. It uses currently v1.4.2, but we want to have a newer version. Therefore, we use our own jQuery version here. {% endcomment %} {% javascript 'jquery-lib' %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}

{% csrf_token %}
{% if not_readable %}

{% if displayed_projects %} Not all projects could be read successfully. {% else %} Unfortunately, no projects were found. {% endif %} The following project could not be parsed:

    {% for infofile, error in not_readable %}
  • File: {{ infofile }}
    Error: {{ error }}
  • {% endfor %}

{% endif %} {{ wizard.form.non_field_errors }} {{ wizard.management_form }} {% for field in wizard.form %} {% if forloop.counter0 == 0 %} {% if displayed_projects %}

The list below shows all found projects that fit your configuration. Please continue with the next step without any (or all) projects selected if you want to use all projects. Alternatively, you can select a subset of projects you would like to import. If you want to add one or more tags to the imported projects, please insert them in the field below.

{{ field.errors }} {{ field.label_tag }} {{ field }}
{{ field.help_text|safe }}
{% endif %} {% if replacing_projects %}

The following projects are valid, but seem to be part of this CATMAID instance already. The imported projects will replace the existing ones:

    {% for key, p in replacing_projects %}
  • Source: {{ key }}
    Name: {{ p.name }}
  • {% endfor %}

{% endif %} {% if merged_projects %}

The following projects are valid, but seem to be part of this CATMAID instance already. The imported projects will be merged with the existing ones:

    {% for key, p in merged_projects %}
  • Source: {{ key }}
    Name: {{ p.name }}
  • {% endfor %}

{% endif %} {% if ignored_projects %}

The following projects are valid, but seem to be part of this CATMAID instance already and will be ignored and not imported:

    {% for key, p in ignored_projects %}
  • Source: {{ key }}
    Name: {{ p.name }}
  • {% endfor %}

{% endif %} {% else %} {% if displayed_projects %}
{{ field.errors }} {{ field.label_tag }} {{ field }}
{{ field.help_text|safe }}
{% endif %} {% endif %} {% endfor %}
{% if displayed_projects %}

{% if wizard.steps.prev %} {% endif %}

{% else %} {% csrf_token %}

No projects could be imported. Please return to the last step to adjust your settings and make sure the data accessible.

{% if wizard.steps.prev %}

{% endif %}
{% endif %}

{% endblock %}