modulebay.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% load i18n %}
  5. {% block breadcrumbs %}
  6. {{ block.super }}
  7. <li class="breadcrumb-item">
  8. <a href="{% url 'dcim:device_modulebays' pk=object.device.pk %}">{{ object.device }}</a>
  9. </li>
  10. {% endblock %}
  11. {% block content %}
  12. <div class="row">
  13. <div class="col col-12 col-md-6">
  14. <div class="card">
  15. <h2 class="card-header">{% trans "Module Bay" %}</h2>
  16. <table class="table table-hover attr-table">
  17. <tr>
  18. <th scope="row">{% trans "Device" %}</th>
  19. <td>
  20. <a href="{% url 'dcim:device_modulebays' pk=object.device.pk %}">{{ object.device }}</a>
  21. </td>
  22. </tr>
  23. <tr>
  24. <th scope="row">{% trans "Module" %}</th>
  25. <td>{{ object.module|linkify|placeholder }}</td>
  26. </tr>
  27. <tr>
  28. <th scope="row">{% trans "Name" %}</th>
  29. <td>{{ object.name }}</td>
  30. </tr>
  31. <tr>
  32. <th scope="row">{% trans "Label" %}</th>
  33. <td>{{ object.label|placeholder }}</td>
  34. </tr>
  35. <tr>
  36. <th scope="row">{% trans "Position" %}</th>
  37. <td>{{ object.position|placeholder }}</td>
  38. </tr>
  39. <tr>
  40. <th scope="row">{% trans "Description" %}</th>
  41. <td>{{ object.description|placeholder }}</td>
  42. </tr>
  43. </table>
  44. </div>
  45. {% include 'inc/panels/tags.html' %}
  46. {% plugin_left_page object %}
  47. </div>
  48. <div class="col col-12 col-md-6">
  49. {% include 'inc/panels/custom_fields.html' %}
  50. <div class="card">
  51. <h2 class="card-header">{% trans "Installed Module" %}</h2>
  52. {% if object.installed_module %}
  53. {% with module=object.installed_module %}
  54. <table class="table table-hover attr-table">
  55. <tr>
  56. <th scope="row">{% trans "Module" %}</th>
  57. <td>{{ module|linkify }}</td>
  58. </tr>
  59. <tr>
  60. <th scope="row">{% trans "Manufacturer" %}</th>
  61. <td>{{ module.module_type.manufacturer|linkify }}</td>
  62. </tr>
  63. <tr>
  64. <th scope="row">{% trans "Module Type" %}</th>
  65. <td>{{ module.module_type|linkify }}</td>
  66. </tr>
  67. <tr>
  68. <th scope="row">{% trans "Serial Number" %}</th>
  69. <td class="font-monospace">{{ module.serial|placeholder }}</td>
  70. </tr>
  71. <tr>
  72. <th scope="row">{% trans "Asset Tag" %}</th>
  73. <td class="font-monospace">{{ module.asset_tag|placeholder }}</td>
  74. </tr>
  75. </table>
  76. {% endwith %}
  77. {% else %}
  78. <div class="card-body text-muted">{% trans "None" %}</div>
  79. {% endif %}
  80. </div>
  81. {% plugin_right_page object %}
  82. </div>
  83. </div>
  84. <div class="row">
  85. <div class="col col-md-12">
  86. {% plugin_full_width_page object %}
  87. </div>
  88. </div>
  89. {% endblock %}