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 %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2023-11-30 02:50:59 +05:30
|
|
|
{% load mptt %}
|
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">
|
2024-01-17 16:25:42 -05:00
|
|
|
<h5 class="card-header">{% trans "Rack" %}</h5>
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Region" %}</th>
|
|
|
|
<td>
|
|
|
|
{% nested_tree object.site.region %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Site" %}</th>
|
|
|
|
<td>{{ object.site|linkify }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Location" %}</th>
|
|
|
|
<td>{% nested_tree object.location %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Facility ID" %}</th>
|
|
|
|
<td>{{ object.facility_id|placeholder }}</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 "Status" %}</th>
|
|
|
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Role" %}</th>
|
|
|
|
<td>{{ object.role|linkify|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Serial Number" %}</th>
|
|
|
|
<td class="font-monospace">{{ object.serial|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Asset Tag" %}</th>
|
|
|
|
<td class="font-monospace">{{ object.asset_tag|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Space Utilization" %}</th>
|
|
|
|
<td>{% utilization_graph object.get_utilization %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Power Utilization" %}</th>
|
|
|
|
<td>{% utilization_graph object.get_power_utilization %}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2017-10-09 15:01:57 -04:00
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Dimensions" %}</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Type" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.type %}
|
|
|
|
{{ object.get_type_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Width" %}</th>
|
|
|
|
<td>{{ object.get_width_display }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Height" %}</th>
|
|
|
|
<td>{{ object.u_height }}U ({% if object.desc_units %}{% trans "descending" %}{% else %}{% trans "ascending" %}{% endif %})</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Starting Unit" %}</th>
|
|
|
|
<td>
|
|
|
|
{{ object.starting_unit }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Outer Width" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.outer_width %}
|
|
|
|
{{ object.outer_width }} {{ object.get_outer_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Outer Depth" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.outer_depth %}
|
|
|
|
{{ object.outer_depth }} {{ object.get_outer_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Mounting Depth" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.mounting_depth %}
|
|
|
|
{{ object.mounting_depth }} {% trans "Millimeters" %}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Rack Weight" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.weight %}
|
|
|
|
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Maximum Weight" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.max_weight %}
|
|
|
|
{{ object.max_weight }} {{ object.get_weight_unit_display }}
|
|
|
|
{% else %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Total Weight" %}</th>
|
|
|
|
<td>
|
|
|
|
{{ object.total_weight|floatformat }} {% trans "Kilograms" %}
|
|
|
|
({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %})
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
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">
|
2024-03-04 15:55:01 -05:00
|
|
|
<select class="btn btn-outline-secondary no-ts rack-view">
|
2023-07-29 03:30:25 +07:00
|
|
|
<option value="images-and-labels" selected="selected">{% trans "Images and Labels" %}</option>
|
|
|
|
<option value="images-only">{% trans "Images only" %}</option>
|
|
|
|
<option value="labels-only">{% trans "Labels only" %}</option>
|
2021-10-07 12:41:24 -04:00
|
|
|
</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">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h4>{% trans "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">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h4>{% trans "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 %}
|