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>
|
2021-03-13 02:19:42 -07:00
|
|
|
<td>
|
|
|
|
<span class="badge bg-{{ object.get_status_class }}">{{ object.get_status_display }}</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<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>
|
2020-11-19 13:53:37 -05:00
|
|
|
{% include 'inc/custom_fields_panel.html' %}
|
2020-11-19 11:29:18 -05:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:cable_list' %}
|
|
|
|
{% 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 %}
|