diff --git a/atlas/templates/atlas/collection_detail.html b/atlas/templates/atlas/collection_detail.html
index b73e42ba..162a20db 100644
--- a/atlas/templates/atlas/collection_detail.html
+++ b/atlas/templates/atlas/collection_detail.html
@@ -9,15 +9,20 @@
Self review: {{collection.self_review}}
This collection will be available to view/take here + {% if can_edit %} + +
+ {% endif %} + {% include 'exam_overview_js.html' %} {% endblock %} diff --git a/atlas/views.py b/atlas/views.py index 1c2cc628..73bc8861 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -1097,7 +1097,7 @@ def collection_detail(request, pk): return render( request, "atlas/collection_detail.html", - {"collection": collection, "cases": cases}, + {"collection": collection, "cases": cases, "can_edit": True}, ) diff --git a/generic/views.py b/generic/views.py index 1e9a8c37..b7bef479 100644 --- a/generic/views.py +++ b/generic/views.py @@ -42,7 +42,7 @@ from django_filters.views import FilterView from django_filters import FilterSet, OrderingFilter, ModelMultipleChoiceFilter from django_tables2.views import SingleTableMixin from reversion.views import RevisionMixin -from atlas.models import CaseCollection +from atlas.models import CaseCollection, CaseDetail from generic.decorators import user_is_cid_user_manager from generic.filters import CidUserFilter, ExaminationFilter @@ -1195,7 +1195,14 @@ class ExamViews(View, LoginRequiredMixin): # data = {"status": "error, count does not match"} # return JsonResponse(data, status=400) - exam.exam_questions.set(objects) + if self.app_name == "atlas": + exam.cases.set(objects) + for n, case in enumerate(objects): + case_detail = CaseDetail.objects.get(case=case, collection=exam) + case_detail.sort_order = n + case_detail.save() + else: + exam.exam_questions.set(objects) exam.save() data = {"status": "success"} return JsonResponse(data, status=200) diff --git a/rad/static/css/anatomy.css b/rad/static/css/anatomy.css index 1972f632..0a6d6d43 100644 --- a/rad/static/css/anatomy.css +++ b/rad/static/css/anatomy.css @@ -559,6 +559,11 @@ td.user-answer-score-2.rapid-ans::after { max-width: 120px; } +.series-block-thumbnail img { + max-width: 80px; + max-height: 80px; +} + .series-block-examination { font-weight: bold; }