diff --git a/atlas/templates/atlas/pathological_process_detail.html b/atlas/templates/atlas/pathological_process_detail.html new file mode 100755 index 00000000..fceecb38 --- /dev/null +++ b/atlas/templates/atlas/pathological_process_detail.html @@ -0,0 +1,31 @@ +{% extends 'atlas/base.html' %} + +{% block content %} + + + +
+{% comment %} Edit + Delete {% endcomment %} + {% if request.user.is_superuser %} + Admin Edit + {% endif %} +
+
+

Name: {{pathological_process.name}}

+
+ {% if pathological_process.case_set.all %} +

Associated Cases

+ + {% endif %} + +{% endblock %} + +{% block js %} + +{% endblock %} diff --git a/atlas/templates/atlas/presentation_detail.html b/atlas/templates/atlas/presentation_detail.html new file mode 100755 index 00000000..a24e783e --- /dev/null +++ b/atlas/templates/atlas/presentation_detail.html @@ -0,0 +1,34 @@ +{% extends 'atlas/base.html' %} + +{% block content %} + + + +
+{% comment %} Edit + Delete {% endcomment %} + {% if request.user.is_superuser %} + Admin Edit + {% endif %} +
+
+

Name: {{presentation.name}}

+ Subspecialty: {{presentation.subspecialty.all|join:", "}}
+
+ {% if presentation.case_set.all %} +

Associated Cases

+ + {% endif %} + +{% endblock %} + +{% block js %} + +{% endblock %} diff --git a/atlas/views.py b/atlas/views.py index 372f7672..1cbf0cec 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -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 @user_is_atlas_checker