modulebay.html 2.3 KB

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