.
This commit is contained in:
@@ -27,7 +27,7 @@ a, a:link {
|
|||||||
|
|
||||||
.answer-list .correct {
|
.answer-list .correct {
|
||||||
/* color: green; */
|
/* color: green; */
|
||||||
color: blue;
|
color: lightblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answer-list .correct::after{
|
.answer-list .correct::after{
|
||||||
@@ -67,7 +67,7 @@ a, a:link {
|
|||||||
|
|
||||||
.answered {
|
.answered {
|
||||||
/* color: green; */
|
/* color: green; */
|
||||||
color: blue;
|
color: lightblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
.unanswered {
|
.unanswered {
|
||||||
@@ -326,7 +326,7 @@ img.uploading:hover {
|
|||||||
|
|
||||||
.user-answer-score-2 {
|
.user-answer-score-2 {
|
||||||
/* color: green; */
|
/* color: green; */
|
||||||
color: blue;
|
color: lightblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.user-answer-score-0::after {
|
td.user-answer-score-0::after {
|
||||||
@@ -387,7 +387,7 @@ td.user-answer-score-2::after {
|
|||||||
|
|
||||||
.answer-1 {
|
.answer-1 {
|
||||||
/* color: green; */
|
/* color: green; */
|
||||||
color: blue;
|
color: lightblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answer-0 {
|
.answer-0 {
|
||||||
|
|||||||
@@ -31,8 +31,7 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
if($(".post-form").length > 0) {
|
if($(".post-form").length > 0) {
|
||||||
$(".post-form").get(0).addEventListener("submit", function (e) {
|
$(".post-form").get(0).addEventListener("submit", function (e) {
|
||||||
console.log(e);
|
if($(".not-marked").length > 0 && e.submitter.name != "skip") {
|
||||||
if($(".not-marked").length > 0) {
|
|
||||||
e.preventDefault(); // before the code
|
e.preventDefault(); // before the code
|
||||||
alert("Ensure all answers are marked first");
|
alert("Ensure all answers are marked first");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -420,6 +420,10 @@ def mark(request, pk, sk):
|
|||||||
# TODO: convert to JSON request
|
# TODO: convert to JSON request
|
||||||
# *******************************
|
# *******************************
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
|
# If skip button is pressed skip the question without marking
|
||||||
|
if "skip" in request.POST:
|
||||||
|
return redirect("anatomy:mark", pk=pk, sk=n + 1)
|
||||||
|
|
||||||
cd = form.cleaned_data
|
cd = form.cleaned_data
|
||||||
# correct = cd.get("correct")
|
# correct = cd.get("correct")
|
||||||
# half_correct = cd.get("half_correct")
|
# half_correct = cd.get("half_correct")
|
||||||
|
|||||||
Reference in New Issue
Block a user