{% extends "generic/object.html" %}
{% load render_table from django_tables2 %}
{% block content %}
    <div class="card">
        <h5 class="card-header">Related Segments</h5>
        {% render_table segment_mapping_table 'inc/table.html' %}
    </div>
    <div class="d-print-none mt-2">
        <div class="btn-group" role="group">
            {% comment %} {% if perms.netbox_attachments.add_netboxattachment %} {% endcomment %}
            <a href="{% url 'plugins:komora_service_path_plugin:segmentcircuitmapping_add' %}?circuit_id={{ object.pk }}&return_url={{ request.path }}"
               class="btn btn-primary">
                <i class="mdi mdi-plus-thick" aria-hidden="true"></i>
                Add Segment
            </a>
        </div>
    </div>
    <div class="d-print-none mt-2"></div>
    <div class="card">
        <h5 class="card-header">Related Service Paths</h5>
        {% render_table service_path_mapping_table 'inc/table.html' %}
    </div>
    <div class="d-print-none mt-2">
        <div class="btn-group" role="group">
            {% comment %} {% if perms.netbox_attachments.add_netboxattachment %} {% endcomment %}
            <a href="{% url 'plugins:komora_service_path_plugin:servicepathcircuitmapping_add' %}?circuit_id={{ object.pk }}&return_url={{ request.path }}"
               class="btn btn-primary">
                <i class="mdi mdi-plus-thick" aria-hidden="true"></i>
                Add Service Path
            </a>
        </div>
    </div>
    <div class="d-print-none mt-2"></div>
{% endblock content %}
