{% extends 'generic/object.html' %} {% load helpers %} {% load i18n %} {% load render_table from django_tables2 %} {% block content %}

{% trans "Application" %}

{% trans "Name" %} {{ object.name }}
{% trans "Processes" %} {% for process in object.processes.all %} {{ process|linkify }} ({{ process.domain.site }}){% if not forloop.last %}
{% endif %} {% empty %} {{ ''|placeholder }} {% endfor %}
{% trans "Establishments" %} {% for site in object.site_list %} {{ site|linkify }}{% if not forloop.last %}, {% endif %} {% empty %} {{ ''|placeholder }} {% endfor %}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Criticality" %} {{ object.get_criticality_display }}
{% trans "Vendor" %} {{ object.editor|placeholder }}
{% trans "Contact person" %} {{ object.referent|placeholder }}
{% trans "Hosting" %} {{ object.hosting|placeholder }}
{% trans "Multi-site" %} {% checkmark object.is_multi_site %}
{% trans "Monitoring" %} {% if object.monitoring_url %} {{ object.monitoring_url }} {% else %} {{ ''|placeholder }} {% endif %}

{% trans "Active interfaces" %}

{% with interfaces=object.active_interfaces %} {% if interfaces %} {% for label in interfaces %} {{ label }} {% endfor %} {% else %} {% trans "No active interface" %} {% endif %} {% endwith %}

{% trans "Authentication (PROC-09A)" %}

{% trans "Primary authentication mode" %} {% if object.authentication_primary %} {{ object.get_authentication_primary_display }} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Available authentication modes" %} {% with modes=object.get_authentication_modes_display %} {% if modes %} {% for label in modes %} {{ label }} {% endfor %} {% else %} {% trans "No authentication mode mapped" %} {% endif %} {% endwith %}
{% trans "Authentication mapping maintained" %} {% checkmark object.authentication_maintained %}
{% trans "Authentication notes" %} {{ object.authentication_notes|placeholder }}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %}

{% trans "Virtual machines" %}

{% with vms=object.virtual_machines.all %} {% if vms %} {% for vm in vms %} {% endfor %}
{% trans "Name" %}{% trans "Primary IP" %}{% trans "Cluster" %}
{{ vm|linkify }} {{ vm.primary_ip4.address.ip|default:'—' }} {{ vm.cluster|linkify|placeholder }}
{% else %}
{% trans "No associated virtual machine" %}
{% endif %} {% endwith %}

{% trans "Devices" %}

{% with devices=object.devices.all %} {% if devices %} {% for device in devices %} {% endfor %}
{% trans "Name" %}{% trans "Primary IP" %}{% trans "Site" %}
{{ device|linkify }} {{ device.primary_ip4.address.ip|default:'—' }} {{ device.site|linkify|placeholder }}
{% else %}
{% trans "No associated device" %}
{% endif %} {% endwith %}

{% trans "Outbound flows" %}

{% render_table outbound_table %}

{% trans "Inbound flows" %}

{% render_table inbound_table %}
{% endblock %}