Add display of related SBA questions in condition detail view

This commit is contained in:
Ross
2025-10-20 14:47:47 +01:00
parent bc21dd6ebd
commit 4f47354ca1
+11 -2
View File
@@ -62,11 +62,20 @@
</ul>
{% endif %}
{% if condition.sbas_questions.all %}
<h4>Related SBA Questions</h4>
<ul>
{% for q in condition.sbas_questions.all %}
<li><a href="{{ q.get_absolute_url }}">{% if q.title %}{{ q.title }}{% else %}{{ q.get_stem_stripped|truncatechars:140 }}{% endif %}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if not condition.rcr_curriculum and can_merge %}
<details><summary>Merge</summary>
Merge this condition into another. This will transfer all associated cases (and differential) but will not transfer synonymns / parents or children.
Merge this condition into another. This will transfer all associated cases (and differential) but will not transfer synonymns / parents or children.
<form method="POST">
{% csrf_token %}
<table>
@@ -80,7 +89,7 @@ Merge this condition into another. This will transfer all associated cases (and
</button>
</form>
<div id="merge-options"></div>
</details>
</details>
{% endif %}
{% endblock %}