2021-10-14 14:48:00 -04:00
|
|
|
{% load helpers %}
|
|
|
|
|
2022-04-15 14:45:28 -04:00
|
|
|
{% with custom_fields=object.get_custom_fields_by_group %}
|
|
|
|
{% if custom_fields %}
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">Custom Fields</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
{% for group_name, fields in custom_fields.items %}
|
|
|
|
{% if group_name %}
|
2022-07-26 12:41:51 -04:00
|
|
|
<h6>{{ group_name }}</h6>
|
2022-04-15 14:45:28 -04:00
|
|
|
{% endif %}
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
{% for field, value in fields.items %}
|
|
|
|
<tr>
|
2022-08-22 11:17:40 -04:00
|
|
|
<th scope="row">
|
2022-04-15 14:45:28 -04:00
|
|
|
<span title="{{ field.description|escape }}">{{ field }}</span>
|
2022-08-22 11:17:40 -04:00
|
|
|
</th>
|
2022-04-15 14:45:28 -04:00
|
|
|
<td>
|
2022-07-01 14:45:22 -04:00
|
|
|
{% customfield_value field value %}
|
2022-04-15 14:45:28 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-07-20 19:56:04 -04:00
|
|
|
{% endwith %}
|