This commit is contained in:
Ross
2021-12-06 15:07:26 +00:00
parent b71d8fd9b7
commit feff4741b8
+25 -14
View File
@@ -4,22 +4,33 @@
<div class="floating-header">
<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>
{% if request.user.is_superuser %}
<a href="{% url 'admin:atlas_structure_change' structure.id %}"
title="Edit the Structure using the admin interface">Admin Edit</a>
{% endif %}
</div>
<div>
<h3>Name: {{structure.name}}</h3>
Primary name: {{structure.primary}}<br />
Synonyms: {{structure.synonym.all|join:", "}}<br />
</div>
<div class="floating-header">
<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>
{% if request.user.is_superuser %}
<a href="{% url 'admin:atlas_structure_change' structure.id %}"
title="Edit the Structure using the admin interface">Admin Edit</a>
{% endif %}
</div>
<div>
<h3>Name: {{structure.name}}</h3>
Primary name: {{structure.primary}}<br />
Synonyms: {{structure.synonym.all|join:", "}}<br />
</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 %}
{% block js %}
{% endblock %}
{% endblock %}