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> <th scope="row">Description</th>
<td>{{ object.description|markdown|placeholder }}</td> <td>{{ object.description|markdown|placeholder }}</td>
</tr> </tr>
<tr>
<th scope="row">Choices</th>
<td>{{ object.choices|length }}</td>
</tr>
<tr> <tr>
<th scope="row">Order Alphabetically</th> <th scope="row">Order Alphabetically</th>
<td>{% checkmark object.order_alphabetically %}</td> <td>{% checkmark object.order_alphabetically %}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Used by</th> <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> </tr>
</table> </table>
</div> </div>