moduletype.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {% extends 'dcim/moduletype/base.html' %}
  2. {% load buttons %}
  3. {% load helpers %}
  4. {% load plugins %}
  5. {% load i18n %}
  6. {% block content %}
  7. <div class="row">
  8. <div class="col col-md-6">
  9. <div class="card">
  10. <h2 class="card-header">{% trans "Module Type" %}</h2>
  11. <table class="table table-hover attr-table">
  12. <tr>
  13. <th scope="row">{% trans "Manufacturer" %}</th>
  14. <td>{{ object.manufacturer|linkify }}</td>
  15. </tr>
  16. <tr>
  17. <th scope="row">{% trans "Model Name" %}</th>
  18. <td>{{ object.model }}</td>
  19. </tr>
  20. <tr>
  21. <th scope="row">{% trans "Part Number" %}</th>
  22. <td>{{ object.part_number|placeholder }}</td>
  23. </tr>
  24. <tr>
  25. <th scope="row">{% trans "Description" %}</th>
  26. <td>{{ object.description|placeholder }}</td>
  27. </tr>
  28. <tr>
  29. <th scope="row">{% trans "Airflow" %}</th>
  30. <td>
  31. {{ object.get_airflow_display|placeholder }}
  32. </td>
  33. </tr>
  34. <tr>
  35. <th scope="row">{% trans "Weight" %}</th>
  36. <td>
  37. {% if object.weight %}
  38. {{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
  39. {% else %}
  40. {{ ''|placeholder }}
  41. {% endif %}
  42. </td>
  43. </tr>
  44. </table>
  45. </div>
  46. {% include 'inc/panels/tags.html' %}
  47. {% include 'inc/panels/comments.html' %}
  48. {% plugin_left_page object %}
  49. </div>
  50. <div class="col col-md-6">
  51. {% include 'inc/panels/related_objects.html' %}
  52. {% include 'inc/panels/custom_fields.html' %}
  53. {% include 'inc/panels/image_attachments.html' %}
  54. {% plugin_right_page object %}
  55. </div>
  56. </div>
  57. <div class="row">
  58. <div class="col col-md-12">
  59. {% plugin_full_width_page object %}
  60. </div>
  61. </div>
  62. {% endblock %}