rackreservation.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {% extends 'generic/object.html' %}
  2. {% load buttons %}
  3. {% load helpers %}
  4. {% load static %}
  5. {% load plugins %}
  6. {% load i18n %}
  7. {% load mptt %}
  8. {% block breadcrumbs %}
  9. {{ block.super }}
  10. <li class="breadcrumb-item"><a href="{% url 'dcim:rackreservation_list' %}?rack_id={{ object.rack.pk }}">{{ object.rack }}</a></li>
  11. <li class="breadcrumb-item">{% trans "Units" %} {{ object.unit_list }}</li>
  12. {% endblock %}
  13. {% block content %}
  14. <div class="row mb-3">
  15. <div class="col col-12 col-xl-5">
  16. <div class="card">
  17. <h2 class="card-header">{% trans "Rack" %}</h2>
  18. <table class="table table-hover attr-table">
  19. <tr>
  20. <th scope="row">{% trans "Region" %}</th>
  21. <td>
  22. {% nested_tree object.rack.site.region %}
  23. </td>
  24. </tr>
  25. <tr>
  26. <th scope="row">{% trans "Site" %}</th>
  27. <td>{{ object.rack.site|linkify }}</td>
  28. </tr>
  29. <tr>
  30. <th scope="row">{% trans "Location" %}</th>
  31. <td>{{ object.rack.location|linkify|placeholder }}</td>
  32. </tr>
  33. <tr>
  34. <th scope="row">{% trans "Rack" %}</th>
  35. <td>{{ object.rack|linkify }}</td>
  36. </tr>
  37. </table>
  38. </div>
  39. <div class="card">
  40. <h2 class="card-header">{% trans "Reservation Details" %}</h2>
  41. <table class="table table-hover attr-table">
  42. <tr>
  43. <th scope="row">{% trans "Units" %}</th>
  44. <td>{{ object.unit_list }}</td>
  45. </tr>
  46. <tr>
  47. <th scope="row">{% trans "Tenant" %}</th>
  48. <td>
  49. {% if object.tenant.group %}
  50. {{ object.tenant.group|linkify }} /
  51. {% endif %}
  52. {{ object.tenant|linkify|placeholder }}
  53. </td>
  54. </tr>
  55. <tr>
  56. <th scope="row">{% trans "User" %}</th>
  57. <td>{{ object.user }}</td>
  58. </tr>
  59. <tr>
  60. <th scope="row">{% trans "Description" %}</th>
  61. <td>{{ object.description }}</td>
  62. </tr>
  63. </table>
  64. </div>
  65. {% include 'inc/panels/custom_fields.html' %}
  66. {% include 'inc/panels/tags.html' %}
  67. {% include 'inc/panels/comments.html' %}
  68. {% plugin_left_page object %}
  69. </div>
  70. <div class="col col-12 col-xl-7">
  71. <div class="row" style="margin-bottom: 20px">
  72. <div class="col col-md-6 col-sm-6 col-xs-12 text-center">
  73. <div style="margin-left: 30px">
  74. <h2 class="h4">{% trans "Front" %}</h2>
  75. {% include 'dcim/inc/rack_elevation.html' with object=object.rack face='front' %}
  76. </div>
  77. </div>
  78. <div class="col col-md-6 col-sm-6 col-xs-12 text-center">
  79. <div style="margin-left: -30px">
  80. <h2 class="h4">{% trans "Rear" %}</h2>
  81. {% include 'dcim/inc/rack_elevation.html' with object=object.rack face='rear' %}
  82. </div>
  83. </div>
  84. </div>
  85. {% plugin_right_page object %}
  86. </div>
  87. </div>
  88. <div class="row">
  89. <div class="col col-md-12">
  90. {% plugin_full_width_page object %}
  91. </div>
  92. </div>
  93. {% endblock %}