1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

161 lines
5.8 KiB
HTML
Raw Normal View History

2016-03-01 11:23:03 -05:00
{% extends '_base.html' %}
{% load static from staticfiles %}
2016-03-01 11:23:03 -05:00
{% load helpers %}
{% block title %}{{ provider }}{% endblock %}
{% block content %}
<div class="row">
<div class="col-sm-8 col-md-9">
2016-03-01 11:23:03 -05:00
<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>
<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 %}
2016-03-01 11:23:03 -05:00
{% 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>
2016-03-01 11:23:03 -05:00
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>
2016-03-01 11:23:03 -05:00
Delete this provider
</a>
{% endif %}
</div>
<h1>{{ provider }}</h1>
{% include 'inc/created_updated.html' with obj=provider %}
2016-03-01 11:23:03 -05:00
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Provider</strong>
2016-03-01 11:23:03 -05:00
</div>
<table class="table table-hover panel-body">
<tr>
<td>ASN</td>
<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>
<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>
{% 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>
<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>
<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>
</table>
</div>
{% with provider.get_custom_fields as custom_fields %}
2016-08-15 15:24:23 -04:00
{% include 'inc/custom_fields_panel.html' %}
{% endwith %}
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">
{% 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>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Circuits</strong>
</div>
<table class="table table-hover panel-body">
{% for c in circuits %}
<tr>
<td>
<a href="{% url 'circuits:circuit' pk=c.pk %}">{{ c.cid }}</a>
</td>
<td>
<a href="{% url 'dcim:site' slug=c.site.slug %}">{{ c.site }}</a>
</td>
<td>
{% if c.interface %}
<a href="{% url 'dcim:device' pk=c.interface.device.pk %}">{{ c.interface.device }}</a>
{% endif %}
</td>
2016-06-20 15:58:18 -04:00
<td>{{ c.port_speed_human }}</td>
2016-03-01 11:23:03 -05:00
</tr>
{% empty %}
<tr>
<td class="text-muted">None</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
{% include 'inc/graphs_modal.html' %}
{% endblock %}
{% block javascript %}
<script src="{% static 'js/graphs.js' %}"></script>
2016-03-01 11:23:03 -05:00
{% endblock %}