2021-10-14 14:48:00 -04:00
|
|
|
{% load helpers %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2021-10-14 14:48:00 -04:00
|
|
|
|
2022-04-15 14:45:28 -04:00
|
|
|
{% with custom_fields=object.get_custom_fields_by_group %}
|
|
|
|
{% if custom_fields %}
|
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Custom Fields" %}</h5>
|
2022-04-15 14:45:28 -04:00
|
|
|
<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>
|
2023-05-09 19:50:02 +05:30
|
|
|
<th scope="row">{{ field }}
|
|
|
|
{% if field.description %}
|
|
|
|
<i
|
|
|
|
class="mdi mdi-information text-primary"
|
|
|
|
data-bs-toggle="tooltip"
|
|
|
|
data-bs-placement="right"
|
|
|
|
title="{{ field.description|escape }}"
|
|
|
|
></i>
|
|
|
|
{% endif %}
|
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 %}
|