.
This commit is contained in:
@@ -21,7 +21,8 @@ a, a:link {
|
|||||||
|
|
||||||
.answer-list .answer:hover{
|
.answer-list .answer:hover{
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
color:rgba(142, 68, 173, 1);
|
position: relative;
|
||||||
|
background: rgba(167, 167, 167, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.answer-list .correct {
|
.answer-list .correct {
|
||||||
@@ -153,7 +154,6 @@ button a {
|
|||||||
#dicom-image {
|
#dicom-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
z-index: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#dicom-image.marking-dicom {
|
#dicom-image.marking-dicom {
|
||||||
@@ -162,7 +162,7 @@ button a {
|
|||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 90%;
|
height: 90%;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.marking {
|
.marking {
|
||||||
|
|||||||
@@ -14,10 +14,11 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="stats-block">
|
<div id="stats-block">
|
||||||
<h2>Stats</h2>
|
<h3>Stats</h3>
|
||||||
|
Max score: {{max_score}}<br/>
|
||||||
Mean: {{mean}}, Median {{median}}, Mode {{mode}}
|
Mean: {{mean}}, Median {{median}}, Mode {{mode}}
|
||||||
|
|
||||||
<div id="stats-plot"><h3>Distribution of results</h3>{{plot|safe}}</div>
|
<div id="stats-plot">{{plot|safe}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<table>
|
<table>
|
||||||
@@ -51,6 +52,12 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<tr>
|
||||||
|
<td>Score:</td>
|
||||||
|
{% for score in user_scores %}
|
||||||
|
<td>{{score}}</td>
|
||||||
|
{% endfor %}
|
||||||
|
<tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+19
-6
@@ -108,6 +108,7 @@ def question_detail(request, pk):
|
|||||||
|
|
||||||
return render(request, "anatomy/question_detail.html", {"question": question})
|
return render(request, "anatomy/question_detail.html", {"question": question})
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def exam_question_detail(request, pk, sk):
|
def exam_question_detail(request, pk, sk):
|
||||||
exam = get_object_or_404(Exam, pk=pk)
|
exam = get_object_or_404(Exam, pk=pk)
|
||||||
@@ -125,7 +126,18 @@ def exam_question_detail(request, pk, sk):
|
|||||||
if sk == exam_length - 1:
|
if sk == exam_length - 1:
|
||||||
next = False
|
next = False
|
||||||
|
|
||||||
return render(request, "anatomy/question_detail.html", {"question": question, "exam": exam, "next" : next, "previous" : previous, "exam_length" : exam_length, "pos": pos})
|
return render(
|
||||||
|
request,
|
||||||
|
"anatomy/question_detail.html",
|
||||||
|
{
|
||||||
|
"question": question,
|
||||||
|
"exam": exam,
|
||||||
|
"next": next,
|
||||||
|
"previous": previous,
|
||||||
|
"exam_length": exam_length,
|
||||||
|
"pos": pos,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
@@ -685,7 +697,7 @@ def exam_scores_cid(request, pk):
|
|||||||
)
|
)
|
||||||
fig_html = fig.to_html()
|
fig_html = fig.to_html()
|
||||||
|
|
||||||
total = len(questions)
|
max_score = len(questions) * 2
|
||||||
|
|
||||||
return render(
|
return render(
|
||||||
request,
|
request,
|
||||||
@@ -698,9 +710,10 @@ def exam_scores_cid(request, pk):
|
|||||||
"by_question": by_question,
|
"by_question": by_question,
|
||||||
"user_answers": dict(user_answers),
|
"user_answers": dict(user_answers),
|
||||||
"user_answers_marks": dict(user_answers_marks),
|
"user_answers_marks": dict(user_answers_marks),
|
||||||
"user_scores": user_scores,
|
"user_scores": user_scores_list,
|
||||||
"user_names": user_names,
|
"user_names": user_names,
|
||||||
"user_answers_and_marks": user_answers_and_marks,
|
"user_answers_and_marks": user_answers_and_marks,
|
||||||
|
"max_score": max_score,
|
||||||
"mean": mean,
|
"mean": mean,
|
||||||
"median": median,
|
"median": median,
|
||||||
"mode": mode,
|
"mode": mode,
|
||||||
@@ -894,13 +907,12 @@ class AnatomyQuestionCreateBase(LoginRequiredMixin, CreateView):
|
|||||||
return response
|
return response
|
||||||
# else we redirect to the clone url
|
# else we redirect to the clone url
|
||||||
else:
|
else:
|
||||||
return redirect(
|
return redirect("anatomy:question_clone", pk=self.object.pk)
|
||||||
"anatomy:question_clone", pk=self.object.pk
|
|
||||||
)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return super().form_invalid(form)
|
return super().form_invalid(form)
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def question_clone(request, pk):
|
def question_clone(request, pk):
|
||||||
new_item = get_object_or_404(AnatomyQuestion, pk=pk)
|
new_item = get_object_or_404(AnatomyQuestion, pk=pk)
|
||||||
@@ -998,6 +1010,7 @@ class AnatomyQuestionUpdate(LoginRequiredMixin, UpdateView):
|
|||||||
|
|
||||||
class QuestionClone(AnatomyQuestionCreateBase):
|
class QuestionClone(AnatomyQuestionCreateBase):
|
||||||
"""Clones a existing rapid"""
|
"""Clones a existing rapid"""
|
||||||
|
|
||||||
# fields = '__all__'
|
# fields = '__all__'
|
||||||
# #fields = [ 'condition' ]
|
# #fields = [ 'condition' ]
|
||||||
# #initial = {'date_of_death': '05/01/2018'}
|
# #initial = {'date_of_death': '05/01/2018'}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Penra Courses</title>
|
<title>Penra Courses</title>
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
||||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
||||||
|
|||||||
Reference in New Issue
Block a user