Show dependent custom fields on choice set view

This commit is contained in:
Jeremy Stretch 2023-07-17 14:39:46 -04:00
parent 1f5b583425
commit feedf51659

View File

@ -17,13 +17,23 @@
<th scope="row">Description</th>
<td>{{ object.description|markdown|placeholder }}</td>
</tr>
<tr>
<th scope="row">Choices</th>
<td>{{ object.choices|length }}</td>
</tr>
<tr>
<th scope="row">Order Alphabetically</th>
<td>{% checkmark object.order_alphabetically %}</td>
</tr>
<tr>
<th scope="row">Used by</th>
<td>{# TODO #}</td>
<td>
<ul class="list-unstyled mb-0">
{% for cf in object.custom_fields.all %}
<li>{{ cf|linkify }}</li>
{% endfor %}
</ul>
</td>
</tr>
</table>
</div>