custom_fields.html 949 B

12345678910111213141516171819202122232425262728293031
  1. {% extends "ui/panels/_base.html" %}
  2. {% load i18n %}
  3. {% block panel_content %}
  4. <table class="table table-hover attr-table">
  5. {% for group_name, fields in custom_fields.items %}
  6. {% if group_name %}
  7. <tr>
  8. <th scope="row" colspan="2" class="fw-bold">{{ group_name }}</th>
  9. </tr>
  10. {% endif %}
  11. {% for field, value in fields.items %}
  12. <tr>
  13. <th scope="row"{% if group_name %} class="ps-3"{% endif %}>{{ field }}
  14. {% if field.description %}
  15. <i
  16. class="mdi mdi-information text-primary"
  17. data-bs-toggle="tooltip"
  18. data-bs-placement="right"
  19. title="{{ field.description|escape }}"
  20. ></i>
  21. {% endif %}
  22. </th>
  23. <td>
  24. {% customfield_value field value %}
  25. </td>
  26. </tr>
  27. {% endfor %}
  28. {% endfor %}
  29. </table>
  30. {% endblock panel_content %}