{% extends 'base.html' %} {% comment %} 3.0 TODO: This file is not used in Nautobot any more as it's replaced by the 'system_jobs/import_objects.html' template. Leaving it here for now in case apps are making use of it. {% endcomment %} {% load helpers %} {% load form_helpers %} {% block extra_styles %} {% endblock %} {% block content %} {% block tabs %}{% endblock %}

{% block title %}{{ obj_type|bettertitle }} Bulk Import{% endblock %}

{% if form.non_field_errors %}
Errors
{{ form.non_field_errors }}
{% endif %}
{% csrf_token %} {% render_field form.csv_data %}
{% if return_url %} Cancel {% endif %}
{% csrf_token %} {% render_field form.csv_file %}
{% if return_url %} Cancel {% endif %}

{% if fields %}
CSV Field Options
{% for field in fields %} {% endfor %}
Field Required Description
{{ field.name }} {{ field.required | render_boolean }} {% if field.choices %} {% endif %} {% if field.help_text %} {{ field.help_text }}
{% elif field.label %} {{ field.label }}
{% endif %} {% if field.format %} Format: {{ field.format }} {% endif %}

Required fields must be specified for all objects.

Related objects may be referenced by their UUID and/or by their natural key unique field combinations. e.g `location__name`, `location__parent__name`. You can find this information in the "Advanced" tab of any object's detail view.

{% endif %}
{% endblock %}