2021-03-02 15:58:33 -05:00
|
|
|
{% extends 'generic/object.html' %}
|
2020-03-13 13:53:44 -04:00
|
|
|
{% load buttons %}
|
|
|
|
{% load custom_links %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load static %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2020-03-13 13:53:44 -04:00
|
|
|
|
2021-03-02 15:58:33 -05:00
|
|
|
{% block breadcrumbs %}
|
2021-04-18 00:22:52 -07:00
|
|
|
<li class="breadcrumb-item"><a href="{% url 'dcim:rackreservation_list' %}">Rack Reservations</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ object.rack.get_absolute_url }}">{{ object.rack }}</a></li>
|
|
|
|
<li class="breadcrumb-item">Units {{ object.unit_list }}</li>
|
2020-03-13 13:53:44 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="row mb-3">
|
2020-03-13 13:53:44 -04:00
|
|
|
<div class="col-md-6">
|
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 %}
|
|
|
|
<a href="{{ rack.site.region.get_absolute_url }}">{{ rack.site.region }}</a> /
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ rack.site.get_absolute_url }}">{{ rack.site }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Group</th>
|
|
|
|
<td>
|
|
|
|
{% if rack.group %}
|
|
|
|
<a href="{{ rack.group.get_absolute_url }}">{{ rack.group }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Rack</th>
|
|
|
|
<td>
|
|
|
|
<a href="{{ rack.get_absolute_url }}">{{ rack }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endwith %}
|
|
|
|
</table>
|
2020-03-13 13:53:44 -04:00
|
|
|
</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">
|
2020-03-13 13:53:44 -04:00
|
|
|
<tr>
|
2021-04-18 00:22:52 -07:00
|
|
|
<th scope="row">Units</th>
|
|
|
|
<td>{{ object.unit_list }}</td>
|
2020-03-13 13:53:44 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-04-18 00:22:52 -07:00
|
|
|
<th scope="row">Tenant</th>
|
2020-03-13 13:53:44 -04:00
|
|
|
<td>
|
2021-04-18 00:22:52 -07:00
|
|
|
{% if object.tenant %}
|
|
|
|
{% if object.tenant.group %}
|
|
|
|
<a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> /
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
|
2020-03-13 13:53:44 -04:00
|
|
|
{% 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>
|
2020-03-13 13:53:44 -04:00
|
|
|
</tr>
|
2021-04-18 00:22:52 -07:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2020-03-13 13:53:44 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-19 13:53:37 -05:00
|
|
|
{% include 'inc/custom_fields_panel.html' %}
|
2020-11-19 11:29:18 -05:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:rackreservation_list' %}
|
|
|
|
{% plugin_left_page object %}
|
2020-03-13 13:53:44 -04:00
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2021-01-26 09:57:33 -05:00
|
|
|
<div class="row" style="margin-bottom: 20px">
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="col-md-6 col-sm-6 col-xs-12 text-center">
|
|
|
|
<div style="margin-left: 30px">
|
2021-01-26 09:57:33 -05:00
|
|
|
<h4>Front</h4>
|
2021-04-18 00:22:52 -07:00
|
|
|
{% include 'dcim/inc/rack_elevation.html' with object=object.rack face='front' %}
|
2020-03-13 13:53:44 -04:00
|
|
|
</div>
|
2021-01-26 09:57:33 -05:00
|
|
|
</div>
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="col-md-6 col-sm-6 col-xs-12 text-center">
|
|
|
|
<div style="margin-left: -30px">
|
2021-01-26 09:57:33 -05:00
|
|
|
<h4>Rear</h4>
|
2021-04-18 00:22:52 -07:00
|
|
|
{% include 'dcim/inc/rack_elevation.html' with object=object.rack face='rear' %}
|
2020-03-13 13:53:44 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-26 09:57:33 -05:00
|
|
|
</div>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_right_page object %}
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% plugin_full_width_page object %}
|
2020-03-13 13:53:44 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|