2021-03-02 15:58:33 -05:00
|
|
|
{% extends 'generic/object.html' %}
|
2019-12-13 15:29:55 -05:00
|
|
|
{% load buttons %}
|
2018-10-25 15:51:12 -04:00
|
|
|
{% load helpers %}
|
2021-03-02 15:58:33 -05:00
|
|
|
{% load perms %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2018-10-25 15:51:12 -04:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Cable
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
2021-03-13 11:16:29 -07:00
|
|
|
<th scope="row">Type</th>
|
2021-03-13 02:19:42 -07:00
|
|
|
<td>{{ object.get_type_display|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-13 11:16:29 -07:00
|
|
|
<th scope="row">Status</th>
|
2022-02-11 14:25:13 -05:00
|
|
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
2021-03-13 02:19:42 -07:00
|
|
|
</tr>
|
2021-10-19 12:33:17 -04:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Tenant</th>
|
|
|
|
<td>
|
|
|
|
{% if object.tenant %}
|
|
|
|
{% if object.tenant.group %}
|
|
|
|
<a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> /
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-03-13 02:19:42 -07:00
|
|
|
<tr>
|
2021-03-13 11:16:29 -07:00
|
|
|
<th scope="row">Label</th>
|
2021-03-13 02:19:42 -07:00
|
|
|
<td>{{ object.label|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-13 11:16:29 -07:00
|
|
|
<th scope="row">Color</th>
|
2021-03-13 02:19:42 -07:00
|
|
|
<td>
|
|
|
|
{% if object.color %}
|
|
|
|
<span class="color-label" style="background-color: #{{ object.color }}"> </span>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-13 11:16:29 -07:00
|
|
|
<th scope="row">Length</th>
|
2021-03-13 02:19:42 -07:00
|
|
|
<td>
|
|
|
|
{% if object.length %}
|
2021-05-10 14:14:54 -04:00
|
|
|
{{ object.length|floatformat }} {{ object.get_length_unit_display }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
2021-10-21 11:23:31 -04:00
|
|
|
{% include 'inc/panels/tags.html' %}
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_left_page object %}
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Termination A
|
|
|
|
</h5>
|
2021-03-13 11:16:29 -07:00
|
|
|
<div class="card-body">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% include 'dcim/inc/cable_termination.html' with termination=object.termination_a %}
|
2021-03-13 11:16:29 -07:00
|
|
|
</div>
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Termination B
|
|
|
|
</h5>
|
2021-03-13 11:16:29 -07:00
|
|
|
<div class="card-body">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% include 'dcim/inc/cable_termination.html' with termination=object.termination_b %}
|
2021-03-13 11:16:29 -07:00
|
|
|
</div>
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_right_page object %}
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_full_width_page object %}
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|