{% extends 'generic/object.html' %} {% load static %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% load perms %} {% load ipfabric_netbox_helpers %} {% load i18n %} {% block extra_controls %} {% if perms.ipfabric_netbox.start_sync %} {% if object.ready_for_sync %}
{% csrf_token %}
{% else %} {% endif %} {% endif %} {% endblock extra_controls %} {% block content %}
{% trans "Ingestion Information" %}
{% trans "Name" %} {{ object.name }}
{% trans "Source" %} {{ object.snapshot_data.source.name }}
{% trans "Snapshot" %} {{ object.snapshot_data.name}}
{% trans "Status" %} {% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Last synced" %} {{ object.last_synced|placeholder }}
{% trans "Latest ingestion" %}
{% include 'ipfabric_netbox/partials/sync_last_ingestion.html' %}
{% trans "Schedule" %}
{% if scheduled_job %}{{ object.scheduled }}{% else %} {{ object.scheduled | placeholder }} {% endif %}
{% trans "Interval" %}
{{ object.interval }}
{% trans "User" %}
{{ object.user }}
{% include 'inc/panels/tags.html' %} {% plugin_left_page object %}
{% trans "Parameters" %}
{% for name, field in object.parameters.items %} {% empty %} {% endfor %}
{{ name }} {% if name == "groups" %} {{"["}} {% for group_id in object.parameters|get_key:name %} {% with group=group_id|resolve_object:"ipfabric_netbox.IPFabricTransformMapGroup" %} {{ group }}{% if not forloop.last %}, {% endif %} {% endwith %} {% empty %} {% trans "No groups assigned" %} {% endfor %} {{"]"}} {% else %} {{ object.parameters|get_key:name|placeholder }} {% endif %}
{% trans "No parameters defined" %}
{% include 'extras/inc/configcontext_data.html' with title="Parameters" data=object.parameters format=format copyid="parameters"%}
{% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
{% endblock %}