2020-04-10 10:21:02 -04:00
|
|
|
{% extends 'base.html' %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% load buttons %}
|
2018-11-02 14:42:15 -04:00
|
|
|
{% load static %}
|
2019-04-15 21:38:04 -04:00
|
|
|
{% load custom_links %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% load helpers %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2016-03-01 11:23:03 -05:00
|
|
|
|
2020-11-19 12:24:52 -05:00
|
|
|
{% block title %}{{ object }}{% endblock %}
|
2018-06-14 16:15:14 -04:00
|
|
|
|
|
|
|
{% block header %}
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="row noprint">
|
2018-06-14 16:15:14 -04:00
|
|
|
<div class="col-sm-8 col-md-9">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'circuits:provider_list' %}">Providers</a></li>
|
2020-11-19 12:24:52 -05:00
|
|
|
<li>{{ object }}</li>
|
2018-06-14 16:15:14 -04:00
|
|
|
</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">
|
2020-11-06 14:33:20 -05:00
|
|
|
<span class="mdi mdi-magnify" aria-hidden="true"></span>
|
2018-06-14 16:15:14 -04:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="pull-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_buttons object %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% if perms.circuits.add_provider %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% clone_button object %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% endif %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% if perms.circuits.change_provider %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% edit_button object %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.circuits.delete_provider %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% delete_button object %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endif %}
|
2016-07-29 12:51:23 -04:00
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
<h1>{{ object }}</h1>
|
2020-11-19 13:44:34 -05:00
|
|
|
{% include 'inc/created_updated.html' %}
|
2019-04-15 21:38:04 -04:00
|
|
|
<div class="pull-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% custom_links object %}
|
2019-04-15 21:38:04 -04:00
|
|
|
</div>
|
2018-06-14 16:15:14 -04:00
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{{ object.get_absolute_url }}">Provider</a>
|
2018-06-14 16:15:14 -04:00
|
|
|
</li>
|
2019-04-12 09:29:36 -04:00
|
|
|
{% if perms.extras.view_objectchange %}
|
|
|
|
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{% url 'circuits:provider_changelog' slug=object.slug %}">Change Log</a>
|
2019-04-12 09:29:36 -04:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2018-06-14 16:15:14 -04:00
|
|
|
</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>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td>{{ object.asn|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Account</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td>{{ object.account|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Customer Portal</td>
|
|
|
|
<td>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% if object.portal_url %}
|
|
|
|
<a href="{{ object.portal_url }}">{{ object.portal_url }}</a>
|
2016-07-29 15:31:35 -04:00
|
|
|
{% else %}
|
2018-11-05 13:00:46 -05:00
|
|
|
<span class="text-muted">—</span>
|
2016-07-29 15:31:35 -04:00
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>NOC Contact</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td class="rendered-markdown">{{ object.noc_contact|render_markdown|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Admin Contact</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td class="rendered-markdown">{{ object.admin_contact|render_markdown|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
2017-02-16 15:13:35 -05:00
|
|
|
<tr>
|
|
|
|
<td>Circuits</td>
|
|
|
|
<td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{% url 'circuits:circuit_list' %}?provider={{ object.slug }}">{{ circuits_table.rows|length }}</a>
|
2017-02-16 15:13:35 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-03-01 11:23:03 -05:00
|
|
|
</table>
|
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% include 'inc/custom_fields_panel.html' with obj=object %}
|
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:object_list' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Comments</strong>
|
|
|
|
</div>
|
2018-11-13 11:02:48 -05:00
|
|
|
<div class="panel-body rendered-markdown">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% if object.comments %}
|
|
|
|
{{ object.comments|render_markdown }}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_left_page object %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</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>
|
2020-01-09 20:10:51 +00:00
|
|
|
{% include 'inc/table.html' with table=circuits_table %}
|
2016-12-14 13:47:22 -05:00
|
|
|
{% if perms.circuits.add_circuit %}
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="panel-footer text-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{% url 'circuits:circuit_add' %}?provider={{ object.pk }}" class="btn btn-xs btn-primary">
|
2020-11-06 14:49:14 -05:00
|
|
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add circuit
|
2016-12-14 13:47:22 -05:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2020-01-09 20:10:51 +00:00
|
|
|
{% include 'inc/paginator.html' with paginator=circuits_table.paginator page=circuits_table.page %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_right_page object %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_full_width_page object %}
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-24 11:23:45 -04:00
|
|
|
{% endblock %}
|