.
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
{% extends 'atlas/base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="floating-header">
|
||||||
|
{% comment %} <a href="{% url 'atlas:pathological_process_update' pk=pathological_process.pk %}" title="Edit the Condition">Edit</a>
|
||||||
|
<a href="{% url 'atlas:pathological_process_delete' pk=pathological_process.pk %}" title="Delete the Condition">Delete</a> {% endcomment %}
|
||||||
|
{% if request.user.is_superuser %}
|
||||||
|
<a href="{% url 'admin:atlas_pathological_process_change' pathological_process.id %}"
|
||||||
|
title="Edit the Condition using the admin interface">Admin Edit</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3>Name: {{pathological_process.name}}</h3>
|
||||||
|
</div>
|
||||||
|
{% if pathological_process.case_set.all %}
|
||||||
|
<h4>Associated Cases</h4>
|
||||||
|
<ul>
|
||||||
|
{% for case in pathological_process.case_set.all %}
|
||||||
|
<li>{{case.get_link}}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
{% extends 'atlas/base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="floating-header">
|
||||||
|
{% comment %} <a href="{% url 'atlas:presentation_update' pk=presentation.pk %}" title="Edit the Condition">Edit</a>
|
||||||
|
<a href="{% url 'atlas:presentation_delete' pk=presentation.pk %}" title="Delete the Condition">Delete</a> {% endcomment %}
|
||||||
|
{% if request.user.is_superuser %}
|
||||||
|
<a href="{% url 'admin:atlas_presentation_change' presentation.id %}"
|
||||||
|
title="Edit the Condition using the admin interface">Admin Edit</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3>Name: {{presentation.name}}</h3>
|
||||||
|
Subspecialty: {{presentation.subspecialty.all|join:", "}}<br />
|
||||||
|
</div>
|
||||||
|
{% if presentation.case_set.all %}
|
||||||
|
<h4>Associated Cases</h4>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
{% for case in presentation.case_set.all %}
|
||||||
|
<li>{{case.get_link}}</li>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
@@ -166,6 +166,33 @@ def condition_detail(request, pk):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@login_required
|
||||||
|
@user_is_atlas_checker
|
||||||
|
def presentation_detail(request, pk):
|
||||||
|
presentation = get_object_or_404(Presentation, pk=pk)
|
||||||
|
|
||||||
|
# logging.debug(atlas.subspecialty.first().name.all())
|
||||||
|
return render(
|
||||||
|
request,
|
||||||
|
"atlas/presentation_detail.html",
|
||||||
|
{
|
||||||
|
"presentation": presentation,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
@login_required
|
||||||
|
@user_is_atlas_checker
|
||||||
|
def pathological_process_detail(request, pk):
|
||||||
|
pathological_process = get_object_or_404(PathalogicalProcess, pk=pk)
|
||||||
|
|
||||||
|
# logging.debug(atlas.subspecialty.first().name.all())
|
||||||
|
return render(
|
||||||
|
request,
|
||||||
|
"atlas/pathological_process_detail.html",
|
||||||
|
{
|
||||||
|
"pathological_process": pathological_process,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
@user_is_atlas_checker
|
@user_is_atlas_checker
|
||||||
|
|||||||
Reference in New Issue
Block a user