2023-01-25 20:45:30 -05:00
|
|
|
{% extends 'dcim/rack/base.html' %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% load buttons %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% load helpers %}
|
2020-02-20 13:20:58 -05:00
|
|
|
{% load static %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2016-03-01 11:23:03 -05:00
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block content %}
|
2021-07-21 11:20:35 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="col col-12 col-xl-5">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Rack
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Site</th>
|
|
|
|
<td>
|
|
|
|
{% if object.site.region %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ object.site.region|linkify }} /
|
2017-02-28 16:10:53 -05:00
|
|
|
{% endif %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ object.site|linkify }}
|
2021-03-13 02:19:42 -07:00
|
|
|
</td>
|
2021-07-21 11:20:35 -04:00
|
|
|
</tr>
|
2021-03-13 02:19:42 -07:00
|
|
|
<tr>
|
2021-07-21 11:20:35 -04:00
|
|
|
<th scope="row">Location</th>
|
2021-03-13 02:19:42 -07:00
|
|
|
<td>
|
2021-07-21 11:20:35 -04:00
|
|
|
{% if object.location %}
|
|
|
|
{% for location in object.location.get_ancestors %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ location|linkify }} /
|
2021-03-13 02:19:42 -07:00
|
|
|
{% endfor %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ object.location|linkify }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Facility ID</th>
|
|
|
|
<td>{{ object.facility_id|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Tenant</th>
|
|
|
|
<td>
|
2022-03-22 15:29:05 -04:00
|
|
|
{% if object.tenant.group %}
|
|
|
|
{{ object.tenant.group|linkify }} /
|
2021-03-13 02:19:42 -07:00
|
|
|
{% endif %}
|
2022-03-22 15:29:05 -04:00
|
|
|
{{ object.tenant|linkify|placeholder }}
|
2021-03-13 02:19:42 -07:00
|
|
|
</td>
|
2021-04-21 13:20:31 -07:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<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>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Role</th>
|
2022-03-22 14:51:20 -04:00
|
|
|
<td>{{ object.role|linkify|placeholder }}</td>
|
2021-03-13 02:19:42 -07:00
|
|
|
</tr>
|
2022-11-04 08:28:09 -04:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
2021-03-13 02:19:42 -07:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Serial Number</th>
|
2021-09-09 16:05:46 -04:00
|
|
|
<td class="font-monospace">{{ object.serial|placeholder }}</td>
|
2021-03-13 02:19:42 -07:00
|
|
|
</tr>
|
2018-11-02 09:17:51 -04:00
|
|
|
<tr>
|
2021-03-13 02:19:42 -07:00
|
|
|
<th scope="row">Asset Tag</th>
|
2021-09-09 16:05:46 -04:00
|
|
|
<td class="font-monospace">{{ object.asset_tag|placeholder }}</td>
|
2018-11-02 09:17:51 -04:00
|
|
|
</tr>
|
2021-03-13 02:19:42 -07:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Space Utilization</th>
|
|
|
|
<td>{% utilization_graph object.get_utilization %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Power Utilization</th>
|
|
|
|
<td>{% utilization_graph object.get_power_utilization %}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-10-09 15:01:57 -04:00
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
2022-09-30 13:31:04 -07:00
|
|
|
<h5 class="card-header">Dimensions</h5>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Type</th>
|
|
|
|
<td>
|
|
|
|
{% if object.type %}
|
|
|
|
{{ object.get_type_display }}
|
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Width</th>
|
|
|
|
<td>{{ object.get_width_display }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Height</th>
|
|
|
|
<td>{{ object.u_height }}U ({% if object.desc_units %}descending{% else %}ascending{% endif %})</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Outer Width</th>
|
|
|
|
<td>
|
|
|
|
{% if object.outer_width %}
|
2022-10-27 10:17:20 -04:00
|
|
|
{{ object.outer_width }} {{ object.get_outer_unit_display }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Outer Depth</th>
|
|
|
|
<td>
|
|
|
|
{% if object.outer_depth %}
|
2022-10-27 10:17:20 -04:00
|
|
|
{{ object.outer_depth }} {{ object.get_outer_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Mounting Depth</th>
|
|
|
|
<td>
|
|
|
|
{% if object.mounting_depth %}
|
|
|
|
{{ object.mounting_depth }} Millimeters
|
2021-03-13 02:19:42 -07:00
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2021-03-13 02:19:42 -07:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-09-30 13:31:04 -07:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Rack Weight</th>
|
|
|
|
<td>
|
|
|
|
{% if object.weight %}
|
|
|
|
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-09 12:45:02 -05:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Maximum Weight</th>
|
|
|
|
<td>
|
|
|
|
{% if object.max_weight %}
|
|
|
|
{{ object.max_weight }} {{ object.get_weight_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-09-30 13:31:04 -07:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Total Weight</th>
|
2022-11-15 15:30:39 -05:00
|
|
|
<td>
|
|
|
|
{{ object.total_weight|floatformat }} Kilograms
|
|
|
|
({{ object.total_weight|kg_to_pounds|floatformat }} Pounds)
|
|
|
|
</td>
|
2022-09-30 13:31:04 -07:00
|
|
|
</tr>
|
2021-03-13 02:19:42 -07:00
|
|
|
</table>
|
2017-10-09 15:01:57 -04:00
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</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-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/comments.html' %}
|
|
|
|
{% include 'inc/panels/image_attachments.html' %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_left_page object %}
|
2021-07-21 11:20:35 -04:00
|
|
|
</div>
|
|
|
|
<div class="col col-12 col-xl-7">
|
2021-10-07 12:41:24 -04:00
|
|
|
<div class="text-end mb-4">
|
|
|
|
<select class="btn btn-sm btn-outline-dark rack-view">
|
|
|
|
<option value="images-and-labels" selected="selected">Images and Labels</option>
|
|
|
|
<option value="images-only">Images only</option>
|
|
|
|
<option value="labels-only">Labels only</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2019-04-02 13:50:57 -04:00
|
|
|
<div class="row" style="margin-bottom: 20px">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6 col-sm-6 col-xs-12 text-center">
|
2020-12-16 09:26:22 -05:00
|
|
|
<div style="margin-left: 30px">
|
2020-06-30 09:26:32 -04:00
|
|
|
<h4>Front</h4>
|
2022-06-24 11:04:38 -04:00
|
|
|
{% include 'dcim/inc/rack_elevation.html' with face='front' extra_params=svg_extra %}
|
2020-12-16 09:26:22 -05:00
|
|
|
</div>
|
2019-04-02 13:50:57 -04:00
|
|
|
</div>
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6 col-sm-6 col-xs-12 text-center">
|
2020-12-16 09:26:22 -05:00
|
|
|
<div style="margin-left: 30px">
|
2020-06-30 09:26:32 -04:00
|
|
|
<h4>Rear</h4>
|
2022-06-24 11:04:38 -04:00
|
|
|
{% include 'dcim/inc/rack_elevation.html' with face='rear' extra_params=svg_extra %}
|
2020-12-16 09:26:22 -05:00
|
|
|
</div>
|
2019-04-02 13:50:57 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-25 17:27:57 -05:00
|
|
|
{% include 'inc/panels/related_objects.html' %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_right_page object %}
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
2021-07-21 11:20:35 -04:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-md-12">
|
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endblock %}
|