{% load helpers %} {% load i18n %}
{% if not termination and perms.circuits.add_circuittermination %} {% trans "Add" %} {% endif %} {% if termination and perms.circuits.change_circuittermination %} {% trans "Edit" %} {% trans "Swap" %} {% endif %} {% if termination and perms.circuits.delete_circuittermination %} {% trans "Delete" %} {% endif %}
{% blocktrans %}Termination {{ side }}{% endblocktrans %}
{% if termination %} {% if termination.site %} {% else %} {% endif %} {% for group_name, fields in termination.get_custom_fields_by_group.items %} {% for field, value in fields.items %} {% endfor %} {% endfor %}
{% trans "Site" %} {% if termination.site.region %} {{ termination.site.region|linkify }} / {% endif %} {{ termination.site|linkify }}
{% trans "Termination" %} {% if termination.mark_connected %} {% trans "Marked as connected" %} {% elif termination.cable %} {{ termination.cable }} {% trans "to" %} {% for peer in termination.link_peers %} {% if peer.device %} {{ peer.device|linkify }}
{% elif peer.circuit %} {{ peer.circuit|linkify }}
{% endif %} {{ peer|linkify }}{% if not forloop.last %},{% endif %} {% endfor %}
{% trans "Trace" %} {% if perms.dcim.change_cable %} {% trans "Edit" %} {% endif %} {% if perms.dcim.delete_cable %} {% trans "Disconnect" %} {% endif %}
{% elif perms.dcim.add_cable %} {% endif %}
{% trans "Provider Network" %} {{ termination.provider_network.provider|linkify }} / {{ termination.provider_network|linkify }}
{% trans "Speed" %} {% if termination.port_speed and termination.upstream_speed %} {{ termination.port_speed|humanize_speed }}   {{ termination.upstream_speed|humanize_speed }} {% elif termination.port_speed %} {{ termination.port_speed|humanize_speed }} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Cross-Connect" %} {{ termination.xconnect_id|placeholder }}
{% trans "Patch Panel/Port" %} {{ termination.pp_info|placeholder }}
{% trans "Description" %} {{ termination.description|placeholder }}
{% trans "Tags" %} {% for tag in termination.tags.all %} {% tag tag %} {% empty %} {{ ''|placeholder }} {% endfor %}
{{ group_name|default:"Custom Fields" }}
{{ field }} {% if field.description %} {% endif %} {% customfield_value field value %}
{% else %} {% trans "None" %} {% endif %}