add links to condition detail pages

This commit is contained in:
Ross
2023-10-30 09:25:21 +00:00
parent b6a13483d1
commit 6031159922
+19 -3
View File
@@ -9,14 +9,30 @@
<a href="{% url 'atlas:condition_delete' pk=condition.pk %}" title="Delete the Condition">Delete</a>
{% if request.user.is_superuser %}
<a href="{% url 'admin:atlas_condition_change' condition.id %}"
title="Edit the Condition using the admin interface">Admin Edit</a>
title="Edit the Condition using the admin interface">Admin Edit</a>
{% endif %}
</div>
<div>
<h3>Name: {{condition.name}}</h3>
Primary name: {{condition.primary}}<br />
Synonyms: {{condition.synonym.all|join:", "}}<br />
Parent: {{condition.parent.all|join:", "}}<br />
Synonyms:fyi
{% for syn in condition.synonym.all %}
<a href="{{syn.get_absolute_url}}">{{syn}}</a>
{% endfor %}<br />
Parent:
{% for parent in condition.parent.all %}
<a href="{{parent.get_absolute_url}}">{{parent}}</a>
{% endfor %}<br />
RCR condition: {{condition.rcr_curriculum}}<br/>
{% if not condition.rcr_curriculum %}
RCR condition map:
{% for map in condition.rcr_curriculum_map.all %}
<a href="{{map.get_absolute_url}}">{{map}}</a>
{% endfor %}<br />
{% endif %}
</div>
{% if condition.case_set.all %}
<h4>Associated Cases</h4>