|
1 |
| -{% extends 'generic/object.html' %} |
| 1 | +{% extends 'dcim/rack/base.html' %} |
2 | 2 | {% load buttons %}
|
3 | 3 | {% load helpers %}
|
4 | 4 | {% load static %}
|
5 | 5 | {% load plugins %}
|
6 | 6 |
|
7 |
| -{% block title %}Rack {{ object }}{% endblock %} |
8 |
| - |
9 |
| -{% block breadcrumbs %} |
10 |
| - {{ block.super }} |
11 |
| - <li class="breadcrumb-item"><a href="{% url 'dcim:rack_list' %}?site_id={{ object.site.pk }}">{{ object.site }}</a></li> |
12 |
| - {% if object.location %} |
13 |
| - {% for location in object.location.get_ancestors %} |
14 |
| - <li class="breadcrumb-item"><a href="{% url 'dcim:rack_list' %}?location_id={{ location.pk }}">{{ location }}</a></li> |
15 |
| - {% endfor %} |
16 |
| - <li class="breadcrumb-item"><a href="{% url 'dcim:rack_list' %}?location_id={{ object.location.pk }}">{{ object.location }}</a></li> |
17 |
| - {% endif %} |
18 |
| -{% endblock %} |
19 |
| - |
20 |
| -{% block extra_controls %} |
21 |
| - <a {% if prev_rack %}href="{% url 'dcim:rack' pk=prev_rack.pk %}{% endif %}" class="btn btn-sm btn-primary{% if not prev_rack %} disabled{% endif %}"> |
22 |
| - <i class="mdi mdi-chevron-left" aria-hidden="true"></i> Previous |
23 |
| - </a> |
24 |
| - <a {% if next_rack %}href="{% url 'dcim:rack' pk=next_rack.pk %}{% endif %}" class="btn btn-sm btn-primary{% if not next_rack %} disabled{% endif %}"> |
25 |
| - <i class="mdi mdi-chevron-right" aria-hidden="true"></i> Next |
26 |
| - </a> |
27 |
| -{% endblock %} |
28 |
| - |
29 | 7 | {% block content %}
|
30 | 8 | <div class="row">
|
31 | 9 | <div class="col col-12 col-xl-5">
|
@@ -187,55 +165,6 @@ <h5 class="card-header">Dimensions</h5>
|
187 | 165 | {% include 'inc/panels/tags.html' %}
|
188 | 166 | {% include 'inc/panels/comments.html' %}
|
189 | 167 | {% include 'inc/panels/image_attachments.html' %}
|
190 |
| - <div class="card"> |
191 |
| - <h5 class="card-header"> |
192 |
| - Reservations |
193 |
| - </h5> |
194 |
| - <div class="card-body"> |
195 |
| - {% if reservations %} |
196 |
| - <table class="table table-hover"> |
197 |
| - <tr> |
198 |
| - <th>Units</th> |
199 |
| - <th>Tenant</th> |
200 |
| - <th>Description</th> |
201 |
| - <th></th> |
202 |
| - </tr> |
203 |
| - {% for resv in reservations %} |
204 |
| - <tr> |
205 |
| - <td>{{ resv|linkify:"unit_list" }}</td> |
206 |
| - <td>{{ resv.tenant|linkify|placeholder }}</td> |
207 |
| - <td> |
208 |
| - {{ resv.description }}<br /> |
209 |
| - <small>{{ resv.user }} · {{ resv.created|annotated_date }}</small> |
210 |
| - </td> |
211 |
| - <td class="text-end noprint"> |
212 |
| - {% if perms.dcim.change_rackreservation %} |
213 |
| - <a href="{% url 'dcim:rackreservation_edit' pk=resv.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-warning btn-sm" title="Edit Reservation"> |
214 |
| - <i class="mdi mdi-pencil" aria-hidden="true"></i> |
215 |
| - </a> |
216 |
| - {% endif %} |
217 |
| - {% if perms.dcim.delete_rackreservation %} |
218 |
| - <a href="{% url 'dcim:rackreservation_delete' pk=resv.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-danger btn-sm" title="Delete Reservation"> |
219 |
| - <i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> |
220 |
| - </a> |
221 |
| - {% endif %} |
222 |
| - </td> |
223 |
| - </tr> |
224 |
| - {% endfor %} |
225 |
| - </table> |
226 |
| - {% else %} |
227 |
| - <div class="text-muted">None</div> |
228 |
| - {% endif %} |
229 |
| - </div> |
230 |
| - {% if perms.dcim.add_rackreservation %} |
231 |
| - <div class="card-footer text-end noprint"> |
232 |
| - <a href="{% url 'dcim:rackreservation_add' %}?rack={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-sm"> |
233 |
| - <i class="mdi mdi-plus-thick" aria-hidden="true"></i> |
234 |
| - Add a Reservation |
235 |
| - </a> |
236 |
| - </div> |
237 |
| - {% endif %} |
238 |
| - </div> |
239 | 168 | {% plugin_left_page object %}
|
240 | 169 | </div>
|
241 | 170 | <div class="col col-12 col-xl-7">
|
|
0 commit comments