2021-03-02 15:58:33 -05:00
|
|
|
{% extends 'generic/object.html' %}
|
2018-11-02 14:42:15 -04:00
|
|
|
{% load static %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% load helpers %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2021-12-13 15:36:51 -05:00
|
|
|
{% load render_table from django_tables2 %}
|
2016-03-01 11:23:03 -05:00
|
|
|
|
2021-12-15 10:34:20 -05:00
|
|
|
{% block extra_controls %}
|
|
|
|
{% if perms.circuits.add_circuit %}
|
|
|
|
<a href="{% url 'circuits:circuit_add' %}?provider={{ object.pk }}" class="btn btn-sm btn-primary">
|
|
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add circuit
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock extra_controls %}
|
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block content %}
|
2021-12-15 10:34:20 -05:00
|
|
|
<div class="row mb-3">
|
2021-07-20 15:30:49 -04:00
|
|
|
<div class="col col-md-6">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
2022-03-30 17:17:36 -04:00
|
|
|
<h5 class="card-header">Provider</h5>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
2022-03-30 17:17:36 -04:00
|
|
|
<th scope="row">ASN</th>
|
|
|
|
<td>
|
|
|
|
{% if object.asn %}
|
|
|
|
<div class="float-end text-warning">
|
|
|
|
<i class="mdi mdi-alert" title="This field will be removed in a future release. Please migrate this data to ASN objects."></i>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{{ object.asn|placeholder }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">ASNs</th>
|
|
|
|
<td>
|
|
|
|
{% for asn in object.asns.all %}
|
|
|
|
{{ asn|linkify }}{% if not forloop.last %}, {% endif %}
|
|
|
|
{% empty %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2021-03-13 02:19:42 -07:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Account</th>
|
|
|
|
<td>{{ object.account|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Customer Portal</th>
|
|
|
|
<td>
|
|
|
|
{% if object.portal_url %}
|
|
|
|
<a href="{{ object.portal_url }}">{{ object.portal_url }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">NOC Contact</th>
|
2022-02-09 16:01:58 -05:00
|
|
|
<td>{{ object.noc_contact|markdown|placeholder }}</td>
|
2021-03-13 02:19:42 -07:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Admin Contact</th>
|
2022-02-09 16:01:58 -05:00
|
|
|
<td>{{ object.admin_contact|markdown|placeholder }}</td>
|
2021-03-13 02:19:42 -07:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Circuits</th>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'circuits:circuit_list' %}?provider={{ object.slug }}">{{ circuits_table.rows|length }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-21 11:23:31 -04:00
|
|
|
{% include 'inc/panels/tags.html' %}
|
2021-04-05 13:18:19 -04:00
|
|
|
{% plugin_left_page object %}
|
|
|
|
</div>
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
|
|
{% include 'inc/panels/comments.html' %}
|
|
|
|
{% include 'inc/panels/contacts.html' %}
|
2021-04-05 13:18:19 -04:00
|
|
|
{% plugin_right_page object %}
|
2021-07-20 15:30:49 -04:00
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2021-12-15 10:34:20 -05:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-12">
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">Circuits</h5>
|
|
|
|
<div class="card-body table-responsive">
|
|
|
|
{% render_table circuits_table 'inc/table.html' %}
|
|
|
|
{% include 'inc/paginator.html' with paginator=circuits_table.paginator page=circuits_table.page %}
|
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
2021-12-15 10:34:20 -05:00
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
2016-06-24 11:23:45 -04:00
|
|
|
{% endblock %}
|