2020-06-25 11:00:25 -04:00
|
|
|
{% extends 'dcim/device_component.html' %}
|
|
|
|
{% load helpers %}
|
2020-06-25 13:27:01 -04:00
|
|
|
{% load plugins %}
|
2020-06-25 11:00:25 -04:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-03-17 13:00:20 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Device Bay
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Device</th>
|
|
|
|
<td>
|
|
|
|
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Name</th>
|
|
|
|
<td>{{ object.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Label</th>
|
|
|
|
<td>{{ object.label|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2020-06-25 11:00:25 -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' %}
|
2021-03-17 13:00:20 -07:00
|
|
|
{% plugin_left_page object %}
|
2020-06-25 11:00:25 -04:00
|
|
|
</div>
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-03-17 13:00:20 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Installed Device
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% if object.installed_device %}
|
|
|
|
{% with device=object.installed_device %}
|
2021-03-17 13:00:20 -07:00
|
|
|
<table class="table table-hover attr-table">
|
2020-06-25 11:00:25 -04:00
|
|
|
<tr>
|
2021-03-17 13:00:20 -07:00
|
|
|
<th scope="row">Device</th>
|
2020-06-25 11:00:25 -04:00
|
|
|
<td>
|
|
|
|
<a href="{{ device.get_absolute_url }}">{{ device }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-17 13:00:20 -07:00
|
|
|
<th scope="row">Device Type</th>
|
2020-06-25 11:00:25 -04:00
|
|
|
<td>{{ device.device_type }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% endwith %}
|
|
|
|
{% else %}
|
2021-03-17 13:00:20 -07:00
|
|
|
<div class="text-muted">
|
2020-06-25 11:00:25 -04:00
|
|
|
None
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-03-17 13:00:20 -07:00
|
|
|
</div>
|
2020-06-25 11:00:25 -04:00
|
|
|
</div>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_right_page object %}
|
2020-06-25 13:27:01 -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 %}
|
2020-06-25 11:00:25 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|