Add Procedure model and integrate into CaseForm; update views and templates for procedure handling

This commit is contained in:
Ross
2026-02-16 14:04:37 +00:00
parent c61f92ae9e
commit a51a5c8d54
7 changed files with 141 additions and 1 deletions
@@ -302,6 +302,18 @@
<li>{{con.get_link}}</li>
{% endfor %}
</ul>
<div>
<strong>Procedure(s):</strong>
{% if case.procedures.all %}
<ul>
{% for proc in case.procedures.all %}
<li>{{ proc.get_link }}</li>
{% endfor %}
</ul>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</div>
<div>
<details open>
<summary><b>Findings</b></summary>
@@ -0,0 +1,15 @@
{% extends 'atlas/base.html' %}
{% block content %}
<div class="container">
<h1>{{ procedure.name }}</h1>
<p>Cases with this procedure:</p>
<ul>
{% for case in cases %}
<li>{{ case.get_link }}</li>
{% empty %}
<li class="text-muted">No cases found</li>
{% endfor %}
</ul>
</div>
{% endblock %}