{% extends 'base/layout.html' %} {% load i18n %} {% load helpers %} {% block title %}{% trans "Import Monitored Endpoints" %}{% endblock %} {% block content %}

{% trans "Import Monitored Endpoints" %}

{% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if step == 'result' %}
{% trans "Import Results" %}

{% trans "Created" %}: {{ created }}   {% trans "Updated" %}: {{ updated }}

{% if outcomes %} {% for outcome in outcomes %} {% endfor %}
{% trans "URL" %} {% trans "Action" %}
{{ outcome.url }} {% if outcome.action == 'created' %} {% trans "Created" %} {% else %} {% trans "Updated" %} {% endif %}
{% endif %} {% if errors %}
{% trans "Errors" %}
    {% for err in errors %}
  • Row {{ err.row }}: {{ err.message }}
  • {% endfor %}
{% endif %}
{% trans "View Monitored Endpoints" %} {% else %}
{% trans "CSV Data" %}

{% trans "Required column:" %} url. {% trans "Optional:" %} sni, tenant, assigned_device, assigned_vm, assigned_service. {% trans "The endpoint name is derived from the SNI or hostname." %}

{% csrf_token %} {% for field in form %}
{{ field }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endfor %} {% if errors %}
{% trans "Parse errors:" %}
    {% for err in errors %}
  • Row {{ err.row }}: {{ err.message }}
  • {% endfor %}
{% endif %} {% trans "Cancel" %}
{% endif %}
{% endblock content %}