1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

106 lines
3.8 KiB
HTML
Raw Normal View History

2021-03-02 15:58:33 -05:00
{% extends 'generic/object.html' %}
{% load buttons %}
{% load helpers %}
{% load static %}
{% load plugins %}
2021-03-02 15:58:33 -05:00
{% block breadcrumbs %}
2021-07-20 12:14:01 -04:00
{{ block.super }}
<li class="breadcrumb-item"><a href="{% url 'dcim:rackreservation_list' %}?rack_id={{ object.rack.pk }}">{{ object.rack }}</a></li>
2021-04-18 00:22:52 -07:00
<li class="breadcrumb-item">Units {{ object.unit_list }}</li>
{% endblock %}
{% block content %}
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-07-21 11:20:35 -04:00
<div class="col col-12 col-xl-5">
2021-04-18 00:22:52 -07:00
<div class="card">
<h5 class="card-header">
Rack
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
{% with rack=object.rack %}
<tr>
<th scope="row">Site</th>
<td>
{% if rack.site.region %}
2022-03-22 14:51:20 -04:00
{{ rack.site.region|linkify }} /
2021-04-18 00:22:52 -07:00
{% endif %}
2022-03-22 14:51:20 -04:00
{{ rack.site|linkify }}
2021-04-18 00:22:52 -07:00
</td>
</tr>
<tr>
2021-07-21 11:20:35 -04:00
<th scope="row">Location</th>
2022-03-22 14:51:20 -04:00
<td>{{ rack.location|linkify|placeholder }}</td>
2021-04-18 00:22:52 -07:00
</tr>
<tr>
<th scope="row">Rack</th>
2022-03-22 14:51:20 -04:00
<td>{{ rack|linkify }}</td>
2021-04-18 00:22:52 -07:00
</tr>
{% endwith %}
</table>
</div>
2021-04-18 00:22:52 -07:00
</div>
<div class="card">
<h5 class="card-header">
Reservation Details
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
2021-04-18 00:22:52 -07:00
<th scope="row">Units</th>
<td>{{ object.unit_list }}</td>
</tr>
<tr>
2021-04-18 00:22:52 -07:00
<th scope="row">Tenant</th>
<td>
2021-04-18 00:22:52 -07:00
{% if object.tenant %}
{% if object.tenant.group %}
2022-03-22 14:51:20 -04:00
{{ object.tenant.group|linkify }} /
2021-04-18 00:22:52 -07:00
{% endif %}
2022-03-22 14:51:20 -04:00
{{ object.tenant|linkify }}
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
2021-04-18 00:22:52 -07:00
<th scope="row">User</th>
<td>{{ object.user }}</td>
</tr>
2021-04-18 00:22:52 -07:00
<tr>
<th scope="row">Description</th>
<td>{{ object.description }}</td>
</tr>
</table>
</div>
</div>
2021-10-19 14:21:31 -04:00
{% include 'inc/panels/custom_fields.html' %}
{% include 'inc/panels/tags.html' %}
{% plugin_left_page object %}
</div>
2021-07-21 11:20:35 -04:00
<div class="col col-12 col-xl-7">
<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">
2021-04-18 00:22:52 -07:00
<div style="margin-left: 30px">
<h4>Front</h4>
2021-04-18 00:22:52 -07:00
{% include 'dcim/inc/rack_elevation.html' with object=object.rack face='front' %}
</div>
</div>
2021-04-30 15:55:37 -07:00
<div class="col col-md-6 col-sm-6 col-xs-12 text-center">
2021-04-18 00:22:52 -07:00
<div style="margin-left: -30px">
<h4>Rear</h4>
2021-04-18 00:22:52 -07:00
{% include 'dcim/inc/rack_elevation.html' with object=object.rack face='rear' %}
</div>
</div>
</div>
{% plugin_right_page object %}
</div>
</div>
<div class="row">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
{% plugin_full_width_page object %}
</div>
</div>
{% endblock %}