From e662097d162a0613f24d623d34b02b4fcc0dbf24 Mon Sep 17 00:00:00 2001
From: Zachary Hancock
Date: Wed, 9 Dec 2020 10:54:08 -0500
Subject: [PATCH] Add reset button to onboarding exams (#725)
* add reset button to onboarding exams
---
CHANGELOG.rst | 4 ++
edx_proctoring/__init__.py | 2 +-
.../templates/onboarding_exam/rejected.html | 39 +++++++++++++++----
.../templates/onboarding_exam/submitted.html | 21 +++++++++-
.../templates/practice_exam/submitted.html | 6 +++
edx_proctoring/views.py | 2 +-
package.json | 2 +-
7 files changed, 63 insertions(+), 13 deletions(-)
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 86d12adc485..c49a0fb1191 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -14,9 +14,13 @@ Change Log
Unreleased
~~~~~~~~~~
+[2.5.0] - 2020-12-09
+~~~~~~~~~~~~~~~~~~~~
+
* Changed behavior of practice exam reset to create a new exam attempt instead
of rolling back state of the current attempt.
* Added new proctoring info panel to expose onboarding exam status to learners
+* Added option to reset a failed or pending onboarding exam.
[2.4.9] - 2020-11-17
~~~~~~~~~~~~~~~~~~~~
diff --git a/edx_proctoring/__init__.py b/edx_proctoring/__init__.py
index f3ba695f94a..e62a0f8a680 100644
--- a/edx_proctoring/__init__.py
+++ b/edx_proctoring/__init__.py
@@ -3,6 +3,6 @@
"""
# Be sure to update the version number in edx_proctoring/package.json
-__version__ = '2.4.9'
+__version__ = '2.5.0'
default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name
diff --git a/edx_proctoring/templates/onboarding_exam/rejected.html b/edx_proctoring/templates/onboarding_exam/rejected.html
index 7763e00462c..f43aee1508a 100644
--- a/edx_proctoring/templates/onboarding_exam/rejected.html
+++ b/edx_proctoring/templates/onboarding_exam/rejected.html
@@ -8,14 +8,37 @@
{% endblock %}
{% block body %}
-
- {% blocktrans %}
- Please contact
-
- {{ integration_specific_email }}
- if you have questions, or to retry your onboarding exam.
- {% endblocktrans %}
-
+
+ {% if experimental_proctoring_features %}
+
+ {% blocktrans %}
+ Please contact
+
+ {{ integration_specific_email }}
+ if you have questions. You may retake this onboarding exam by clicking "Retry my exam".
+ {% endblocktrans %}
+
+
+ {% trans "Retry my exam" as retry_exam %}
+
+
+ {% else %}
+
+ {% blocktrans %}
+ Please contact
+
+ {{ integration_specific_email }}
+ if you have questions, or to retry your onboarding exam.
+ {% endblocktrans %}
+
+ {% endif %}
+
{% endblock %}
{% block footer_content %}
diff --git a/edx_proctoring/templates/onboarding_exam/submitted.html b/edx_proctoring/templates/onboarding_exam/submitted.html
index 93ea1da7361..96e6b5ffcb0 100644
--- a/edx_proctoring/templates/onboarding_exam/submitted.html
+++ b/edx_proctoring/templates/onboarding_exam/submitted.html
@@ -26,7 +26,25 @@
so make sure this email has been added to your inbox filter.
{% endblocktrans %}
-
+ {% if experimental_proctoring_features %}
+
+ {% blocktrans %}
+ If you have made an error in this submission you may restart the onboarding process.
+ Your current submission will be removed and will not receive a review.
+ {% endblocktrans %}
+
+ {% trans "I understand and want to reset this onboarding exam." as retry_confirm %}
+
+