2016-03-01 11:23:03 -05:00
|
|
|
{% extends '_base.html' %}
|
2016-06-24 11:23:45 -04:00
|
|
|
{% load static from staticfiles %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% load helpers %}
|
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block title %}{{ provider }}{% endblock %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8 col-md-9">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'circuits:provider_list' %}">Providers</a></li>
|
|
|
|
<li>{{ provider }}</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-md-3">
|
|
|
|
<form action="{% url 'circuits:provider_list' %}" method="get">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-primary">
|
|
|
|
<span class="fa fa-search" aria-hidden="true"></span>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2018-06-14 16:15:14 -04:00
|
|
|
<div class="pull-right">
|
|
|
|
{% if show_graphs %}
|
|
|
|
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#graphs_modal" data-obj="{{ provider.name }}" data-url="{% url 'circuits-api:provider-graphs' pk=provider.pk %}" title="Show graphs">
|
|
|
|
<i class="fa fa-signal" aria-hidden="true"></i>
|
|
|
|
Graphs
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.circuits.change_provider %}
|
|
|
|
<a href="{% url 'circuits:provider_edit' slug=provider.slug %}" class="btn btn-warning">
|
|
|
|
<span class="fa fa-pencil" aria-hidden="true"></span>
|
|
|
|
Edit this provider
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.circuits.delete_provider %}
|
|
|
|
<a href="{% url 'circuits:provider_delete' slug=provider.slug %}" class="btn btn-danger">
|
|
|
|
<span class="fa fa-trash" aria-hidden="true"></span>
|
|
|
|
Delete this provider
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2016-07-29 12:51:23 -04:00
|
|
|
</div>
|
2018-06-14 16:15:14 -04:00
|
|
|
<h1>{{ provider }}</h1>
|
|
|
|
{% include 'inc/created_updated.html' with obj=provider %}
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
|
|
|
<a href="{{ provider.get_absolute_url }}">Provider</a>
|
|
|
|
</li>
|
|
|
|
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
|
|
|
<a href="{% url 'circuits:provider_changelog' slug=provider.slug %}">Changelog</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="row">
|
2017-02-16 15:13:35 -05:00
|
|
|
<div class="col-md-4">
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-06-22 10:57:32 -04:00
|
|
|
<strong>Provider</strong>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2016-12-14 17:09:33 -05:00
|
|
|
<table class="table table-hover panel-body attr-table">
|
2016-03-01 11:23:03 -05:00
|
|
|
<tr>
|
|
|
|
<td>ASN</td>
|
2016-07-29 15:31:35 -04:00
|
|
|
<td>
|
|
|
|
{% if provider.asn %}
|
|
|
|
{{ provider.asn }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">N/A</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Account</td>
|
2016-07-29 15:31:35 -04:00
|
|
|
<td>
|
|
|
|
{% if provider.account %}
|
|
|
|
{{ provider.account }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">N/A</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Customer Portal</td>
|
|
|
|
<td>
|
2016-07-29 15:31:35 -04:00
|
|
|
{% if provider.portal_url %}
|
|
|
|
<a href="{{ provider.portal_url }}">{{ provider.portal_url }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">N/A</span>
|
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>NOC Contact</td>
|
2016-07-29 15:31:35 -04:00
|
|
|
<td>
|
|
|
|
{% if provider.noc_contact %}
|
|
|
|
{{ provider.noc_contact|linebreaksbr }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">N/A</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Admin Contact</td>
|
2016-07-29 15:31:35 -04:00
|
|
|
<td>
|
|
|
|
{% if provider.admin_contact %}
|
|
|
|
{{ provider.admin_contact|linebreaksbr }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">N/A</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
2017-02-16 15:13:35 -05:00
|
|
|
<tr>
|
|
|
|
<td>Circuits</td>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'circuits:circuit_list' %}?provider={{ provider.slug }}">{{ provider.circuits.count }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-03-01 11:23:03 -05:00
|
|
|
</table>
|
|
|
|
</div>
|
2018-07-20 19:56:04 -04:00
|
|
|
{% include 'inc/custom_fields_panel.html' with obj=provider %}
|
2018-07-10 10:48:33 -04:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=provider.tags.all url='circuits:provider_list' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Comments</strong>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2016-07-29 15:31:35 -04:00
|
|
|
{% if provider.comments %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{{ provider.comments|gfm }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-16 15:13:35 -05:00
|
|
|
<div class="col-md-8">
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Circuits</strong>
|
|
|
|
</div>
|
|
|
|
<table class="table table-hover panel-body">
|
2017-02-16 15:13:35 -05:00
|
|
|
<tr>
|
|
|
|
<th>Circuit ID</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Tenant</th>
|
|
|
|
<th>A Side</th>
|
|
|
|
<th>Z Side</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% for c in circuits %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'circuits:circuit' pk=c.pk %}">{{ c.cid }}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2016-12-14 13:47:22 -05:00
|
|
|
<a href="{% url 'circuits:circuit_list' %}?type={{ c.type.slug }}">{{ c.type }}</a>
|
2016-03-01 11:23:03 -05:00
|
|
|
</td>
|
2017-02-16 15:13:35 -05:00
|
|
|
<td>
|
|
|
|
{% if c.tenant %}
|
2017-03-03 10:47:16 -05:00
|
|
|
<a href="{% url 'tenancy:tenant' slug=c.tenant.slug %}">{{ c.tenant }}</a>
|
2017-02-16 15:13:35 -05:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if c.termination_a %}
|
|
|
|
<a href="{% url 'dcim:site' slug=c.termination_a.site.slug %}">{{ c.termination_a.site }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if c.termination_z %}
|
|
|
|
<a href="{% url 'dcim:site' slug=c.termination_z.site.slug %}">{{ c.termination_z.site }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if c.description %}
|
|
|
|
{{ c.description }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
{% empty %}
|
|
|
|
<tr>
|
2017-05-26 10:08:03 -04:00
|
|
|
<td colspan="6" class="text-muted">None</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2016-12-14 13:47:22 -05:00
|
|
|
{% if perms.circuits.add_circuit %}
|
|
|
|
<div class="panel-footer text-right">
|
|
|
|
<a href="{% url 'circuits:circuit_add' %}?provider={{ provider.pk }}" class="btn btn-xs btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add circuit
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-29 16:45:20 -04:00
|
|
|
{% include 'inc/modal.html' with modal_name='graphs' %}
|
2016-06-24 11:23:45 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block javascript %}
|
2017-03-30 15:40:00 -04:00
|
|
|
<script src="{% static 'js/graphs.js' %}?v{{ settings.VERSION }}"></script>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endblock %}
|