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 %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2018-10-25 15:51:12 -04:00
|
|
|
|
|
|
|
{% block content %}
|
2022-04-25 17:10:15 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Cable" %}</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Type" %}</th>
|
|
|
|
<td>{{ object.get_type_display|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Status" %}</th>
|
|
|
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Tenant" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.tenant.group %}
|
|
|
|
{{ object.tenant.group|linkify }} /
|
|
|
|
{% endif %}
|
|
|
|
{{ object.tenant|linkify|placeholder }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Label" %}</th>
|
|
|
|
<td>{{ object.label|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Color" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.color %}
|
|
|
|
<span class="color-label" style="background-color: #{{ object.color }}"> </span>
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Length" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.length is not None %}
|
|
|
|
{{ object.length|floatformat }} {{ object.get_length_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2022-04-25 17:10:15 -04:00
|
|
|
</div>
|
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
|
|
{% include 'inc/panels/tags.html' %}
|
2022-11-04 08:28:09 -04:00
|
|
|
{% include 'inc/panels/comments.html' %}
|
2022-04-25 17:10:15 -04:00
|
|
|
{% plugin_left_page object %}
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
2022-04-25 17:10:15 -04:00
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Termination" %} A</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
{% include 'dcim/inc/cable_termination.html' with terminations=object.a_terminations %}
|
2022-04-25 17:10:15 -04:00
|
|
|
</div>
|
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Termination" %} B</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
{% include 'dcim/inc/cable_termination.html' with terminations=object.b_terminations %}
|
2022-04-25 17:10:15 -04:00
|
|
|
</div>
|
|
|
|
{% plugin_right_page object %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-md-12">
|
|
|
|
{% plugin_full_width_page object %}
|
2018-10-25 15:51:12 -04:00
|
|
|
</div>
|
2022-04-25 17:10:15 -04:00
|
|
|
</div>
|
2018-10-25 15:51:12 -04:00
|
|
|
{% endblock %}
|