2020-04-10 10:21:02 -04:00
|
|
|
{% extends 'base.html' %}
|
2019-12-13 15:29:55 -05:00
|
|
|
{% load buttons %}
|
2019-04-15 21:38:04 -04:00
|
|
|
{% load custom_links %}
|
2018-10-25 15:51:12 -04:00
|
|
|
{% load helpers %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2018-10-25 15:51:12 -04:00
|
|
|
|
|
|
|
{% block header %}
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="row noprint">
|
2018-10-25 15:51:12 -04:00
|
|
|
<div class="col-md-12">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'dcim:cable_list' %}">Cables</a></li>
|
2020-11-19 11:29:18 -05:00
|
|
|
<li>{{ object }}</li>
|
2018-10-25 15:51:12 -04:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="pull-right noprint">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_buttons object %}
|
2018-10-25 15:51:12 -04:00
|
|
|
{% if perms.dcim.change_cable %}
|
2020-11-19 11:29:18 -05:00
|
|
|
{% edit_button object %}
|
2018-10-25 15:51:12 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.dcim.delete_cable %}
|
2020-11-19 11:29:18 -05:00
|
|
|
{% delete_button object %}
|
2018-10-25 15:51:12 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-11-19 11:29:18 -05:00
|
|
|
<h1>{% block title %}Cable {{ object }}{% endblock %}</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 11:29:18 -05:00
|
|
|
{% custom_links object %}
|
2019-04-15 21:38:04 -04:00
|
|
|
</div>
|
2018-11-01 10:04:43 -04:00
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
2020-11-19 11:29:18 -05:00
|
|
|
<a href="{{ object.get_absolute_url }}">Cable</a>
|
2018-11-01 10:04:43 -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 11:29:18 -05:00
|
|
|
<a href="{% url 'dcim:cable_changelog' pk=object.pk %}">Change Log</a>
|
2019-04-12 09:29:36 -04:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2018-11-01 10:04:43 -04:00
|
|
|
</ul>
|
2018-10-25 15:51:12 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Cable</strong>
|
|
|
|
</div>
|
|
|
|
<table class="table table-hover panel-body attr-table">
|
|
|
|
<tr>
|
|
|
|
<td>Type</td>
|
2020-11-19 11:29:18 -05:00
|
|
|
<td>{{ object.get_type_display|placeholder }}</td>
|
2018-10-25 15:51:12 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Status</td>
|
2020-07-28 12:54:21 -04:00
|
|
|
<td>
|
2020-11-19 11:29:18 -05:00
|
|
|
<span class="label label-{{ object.get_status_class }}">{{ object.get_status_display }}</span>
|
2020-07-28 12:54:21 -04:00
|
|
|
</td>
|
2018-10-25 15:51:12 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Label</td>
|
2020-11-19 11:29:18 -05:00
|
|
|
<td>{{ object.label|placeholder }}</td>
|
2018-10-25 15:51:12 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Color</td>
|
|
|
|
<td>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% if object.color %}
|
|
|
|
<span class="label color-block" style="background-color: #{{ object.color }}"> </span>
|
2018-11-01 14:32:43 -04:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
2018-10-26 10:28:25 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Length</td>
|
|
|
|
<td>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% if object.length %}
|
|
|
|
{{ object.length }} {{ object.get_length_unit_display }}
|
2018-10-26 10:28:25 -04:00
|
|
|
{% else %}
|
2018-11-05 13:00:46 -05:00
|
|
|
<span class="text-muted">—</span>
|
2018-10-26 10:28:25 -04:00
|
|
|
{% endif %}
|
2018-10-25 15:51:12 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</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>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Termination A</strong>
|
|
|
|
</div>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% include 'dcim/inc/cable_termination.html' with termination=object.termination_a %}
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Termination B</strong>
|
|
|
|
</div>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% include 'dcim/inc/cable_termination.html' with termination=object.termination_b %}
|
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">
|
|
|
|
<div class="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 %}
|