{% extends 'generic/_base.html' %} {% load form_helpers %} {% load helpers %} {% load i18n %} {% block title %}{% trans "Import Device Views from a Data Source" %}{% endblock %} {% block content %}

{% trans "Configure and synchronize a Data Source in NetBox first. The import reads the synchronized files; it does not fetch them." %} {% trans "Manage Data Sources" %}

{% trans "Source" %}

{% render_field form.source %} {% render_field form.prefix %}
{% if page is not None %} {# One form keeps the ticked files: page and search buttons post them back to this page. #}
{% csrf_token %} {% if 'per_page' in request.GET %}{% endif %} {% for file_id in ticked_elsewhere %}{% endfor %}

{% trans "Layout files" %}

{% for row in rows %} {% empty %} {% endfor %}
{% trans "Select" %} {% trans "Path" %} {% trans "Format" %} {% trans "Suggested device type" %} {% trans "Device view" %} {% trans "Problems" %}
{{ row.format.label }} {% if row.suggestion %} {{ row.suggestion.manufacturer }} {{ row.suggestion.model }} {% else %} {{ ''|placeholder }} {% endif %} {% if row.device_view %} {{ row.state.label }} {% else %} {{ row.state.label|placeholder }} {% endif %} {% for problem in row.problems %}
{{ problem }}
{% endfor %}
{% if form.cleaned_data.q %} {% trans "No layout files match the search." %} {% else %} {% trans "No layout files below this directory." %} {% endif %}
{% if paginator.num_pages > 1 %} {% endif %} {% blocktrans trimmed with start=page.start_index end=page.end_index total=paginator.count %} Showing {{ start }}-{{ end }} of {{ total }} {% endblocktrans %}
{% if rows %} {% endif %}
{% endif %}
{% endblock content %}