{% extends 'base/layout.html' %} {% load static %} {% block header %}

{{ object }}

{% if perms.phonebox_plugin.change_voicecircuit %} Edit {% endif %} {% if perms.phonebox_plugin.delete_voicecircuit %} Delete {% endif %}
{% endblock %} {% block content %}
General Information
Type {{ object.voice_circuit_type }}
Assignment {% if object.assigned_object %} {{ object.assigned_object.parent_object }} / {{ object.assigned_object }} {% else %} {% endif %}
Tenant {% if object.tenant %} {% if object.tenant.group %} {{ object.tenant.group }} / {% endif %} {{ object.tenant }} {% else %} None {% endif %}
Region {% if object.region %} {{ object.region }} {% else %} None {% endif %}
Site {% if object.forward_to %} {{ object.site }} {% else %} None {% endif %}
Provider {% if object.provider %} {{ object.provider }} {% else %} None {% endif %}
Provider Circuit ID {{ object.provider_ciruit_id }}
Description {{ object.description }}
{% include 'phonebox_plugin/tags_panel.html' with tags=object.tags.all url='plugins:phonebox_plugin:voice_circuit_list_view' %}
{% if object.voice_circuit_type == "sip_trunk" %}
SIP Trunk Details
Source {{ object.sip_source }}
Target {{ object.sip_target }}
{% endif %} {% if object.voice_circuit_type == "digital_voice_circuit" %}
Digital Voice Circuit Details
{% endif %} {% if object.voice_circuit_type == "analog_voice_circuit" %}
Analog Voice Circuit Details
{% endif %}
{% endblock content %}