{% extends 'generic/object.html' %} {% load buttons %} {% load custom_links %} {% load helpers %} {% load i18n %} {% load plugins %} {% load render_table from django_tables2 %} {% load object_type %} {% block content %}
{% trans "Addresses" %}
{% if object.assigned_object %} {% get_related_object_type object.assigned_object as obj_type %} {% endif %} {% if object.dns_name %} {% endif %} {% if object.description %} {% endif %} {% if object.tenant %} {% endif %}
{% trans "Name" %} {{ object.name }}
{% trans "Identifier" %} {{ object.identifier }}
{{ obj_type }} {{ object.assigned_object|linkify|placeholder }}
{% trans "DNS Name" %} {{ object.dns_name }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }}
{% trans "Parent Source Policies" %} {% for item in object.address_lists.all %} {% for child in item.securityzonepolicy_source_address.all %} {{ child|linkify|placeholder }}
{% endfor %} {% endfor %}
{% trans "Parent Destination Policies" %} {% for item in object.address_lists.all %} {% for child in item.securityzonepolicy_destination_address.all %} {{ child|linkify|placeholder }}
{% endfor %} {% endfor %}
{% trans "Parent Address Sets" %} {% for item in object.addressset_addresses.all %} {{ item|linkify|placeholder }}
{% endfor %}
{% if zone_assignments_table.rows|length == 1 %}

{% trans "Security Zone Assignment" %}

{% else %}

{% trans "Security Zone Assignments" %}

{% endif %}
{% render_table zone_assignments_table 'inc/table.html' %}
{% if device_assignments_table.rows|length == 1 %}

{% trans "Device Assignment" %}

{% else %}

{% trans "Device Assignments" %}

{% endif %}
{% render_table device_assignments_table 'inc/table.html' %}
{% if virtual_device_assignments_table.rows|length == 1 %}

{% trans "Virtual Device Context Assignment" %}

{% else %}

{% trans "Virtual Device Context Assignments" %}

{% endif %}
{% render_table virtual_device_assignments_table 'inc/table.html' %}
{% if virtual_machine_assignments_table.rows|length == 1 %}

{% trans "Virtual Machine Assignment" %}

{% else %}

{% trans "Virtual Machine Assignments" %}

{% endif %}
{% render_table virtual_machine_assignments_table 'inc/table.html' %}
{% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}
{% include 'inc/panels/comments.html' %} {% include 'inc/panels/tags.html' %} {% plugin_right_page object %}
{% plugin_full_width_page object %}
{% endblock %}