This commit is contained in:
Ross
2021-12-06 15:07:26 +00:00
parent b71d8fd9b7
commit feff4741b8
+15 -4
View File
@@ -4,19 +4,30 @@
<div class="floating-header"> <div class="floating-header">
<a href="{% url 'atlas:structure_update' pk=structure.pk %}" title="Edit the Structure">Edit</a> <a href="{% url 'atlas:structure_update' pk=structure.pk %}" title="Edit the Structure">Edit</a>
<a href="{% url 'atlas:structure_delete' pk=structure.pk %}" title="Delete the Structure">Delete</a> <a href="{% url 'atlas:structure_delete' pk=structure.pk %}" title="Delete the Structure">Delete</a>
{% if request.user.is_superuser %} {% if request.user.is_superuser %}
<a href="{% url 'admin:atlas_structure_change' structure.id %}" <a href="{% url 'admin:atlas_structure_change' structure.id %}"
title="Edit the Structure using the admin interface">Admin Edit</a> title="Edit the Structure using the admin interface">Admin Edit</a>
{% endif %} {% endif %}
</div> </div>
<div> <div>
<h3>Name: {{structure.name}}</h3> <h3>Name: {{structure.name}}</h3>
Primary name: {{structure.primary}}<br /> Primary name: {{structure.primary}}<br />
Synonyms: {{structure.synonym.all|join:", "}}<br /> Synonyms: {{structure.synonym.all|join:", "}}<br />
</div> </div>
<h4>Associated Cases</h4>
<ul>
{% for series_finding in structure.seriesfinding_set.all %}
{% for series in series_finding.series.all %}
{% for case in series.case.all %}
{{case.get_link}}
{% endfor %}
{% endfor %}
{% endfor %}
</ul>
{% endblock %} {% endblock %}