2
0

devicebay.html 2.8 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">
  9. Device Bay
  10. </h5>
  11. <div class="card-body">
  12. <table class="table table-hover attr-table">
  13. <tr>
  14. <th scope="row">Device</th>
  15. <td>
  16. <a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
  17. </td>
  18. </tr>
  19. <tr>
  20. <th scope="row">Name</th>
  21. <td>{{ object.name }}</td>
  22. </tr>
  23. <tr>
  24. <th scope="row">Label</th>
  25. <td>{{ object.label|placeholder }}</td>
  26. </tr>
  27. <tr>
  28. <th scope="row">Description</th>
  29. <td>{{ object.description|placeholder }}</td>
  30. </tr>
  31. </table>
  32. </div>
  33. </div>
  34. {% include 'inc/custom_fields_panel.html' %}
  35. {% include 'extras/inc/tags_panel.html' with tags=object.tags.all %}
  36. {% plugin_left_page object %}
  37. </div>
  38. <div class="col col-md-6">
  39. <div class="card">
  40. <h5 class="card-header">
  41. Installed Device
  42. </h5>
  43. <div class="card-body">
  44. {% if object.installed_device %}
  45. {% with device=object.installed_device %}
  46. <table class="table table-hover attr-table">
  47. <tr>
  48. <th scope="row">Device</th>
  49. <td>
  50. <a href="{{ device.get_absolute_url }}">{{ device }}</a>
  51. </td>
  52. </tr>
  53. <tr>
  54. <th scope="row">Device Type</th>
  55. <td>{{ device.device_type }}</td>
  56. </tr>
  57. </table>
  58. {% endwith %}
  59. {% else %}
  60. <div class="text-muted">
  61. None
  62. </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 %}