{% load helpers %}
{% if not termination and perms.circuits.add_circuittermination %} Add {% endif %} {% if termination and perms.circuits.change_circuittermination %} Edit Swap {% endif %} {% if termination and perms.circuits.delete_circuittermination %} Delete {% endif %}
Termination {{ side }}
{% 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 %}
Site {% if termination.site.region %} {{ termination.site.region|linkify }} / {% endif %} {{ termination.site|linkify }}
Termination {% if termination.mark_connected %} Marked as connected {% elif termination.cable %} {{ termination.cable }} 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 %}
Trace {% if perms.dcim.change_cable %} Edit {% endif %} {% if perms.dcim.delete_cable %} Disconnect {% endif %}
{% elif perms.dcim.add_cable %} {% endif %}
Provider Network {{ termination.provider_network.provider|linkify }} / {{ termination.provider_network|linkify }}
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 %}
Cross-Connect {{ termination.xconnect_id|placeholder }}
Patch Panel/Port {{ termination.pp_info|placeholder }}
Description {{ termination.description|placeholder }}
Tags {% for tag in termination.tags.all %} {% tag tag %} {% empty %} {{ ''|placeholder }} {% endfor %}
{{ group_name|default:"Custom Fields" }}
{{ field }} {% customfield_value field value %}
{% else %} None {% endif %}