Commit 53ceab51 by chrisndodge

Merge pull request #243 from edx/cdodge/content-tweeks

Tweek review status pages
parents 0fad0fa1 049edaed
...@@ -1486,6 +1486,7 @@ def _get_proctored_exam_context(exam, attempt, course_id, is_practice_exam=False ...@@ -1486,6 +1486,7 @@ def _get_proctored_exam_context(exam, attempt, course_id, is_practice_exam=False
""" """
Common context variables for the Proctored and Practice exams' templates. Common context variables for the Proctored and Practice exams' templates.
""" """
has_due_date = True if exam['due_date'] is not None else False
attempt_time = attempt['allowed_time_limit_mins'] if attempt else exam['time_limit_mins'] attempt_time = attempt['allowed_time_limit_mins'] if attempt else exam['time_limit_mins']
total_time = humanized_time(attempt_time) total_time = humanized_time(attempt_time)
progress_page_url = '' progress_page_url = ''
...@@ -1506,6 +1507,7 @@ def _get_proctored_exam_context(exam, attempt, course_id, is_practice_exam=False ...@@ -1506,6 +1507,7 @@ def _get_proctored_exam_context(exam, attempt, course_id, is_practice_exam=False
'exam_id': exam['id'], 'exam_id': exam['id'],
'progress_page_url': progress_page_url, 'progress_page_url': progress_page_url,
'is_sample_attempt': is_practice_exam, 'is_sample_attempt': is_practice_exam,
'has_due_date': has_due_date,
'has_due_date_passed': _has_due_date_passed(exam['due_date']), 'has_due_date_passed': _has_due_date_passed(exam['due_date']),
'does_time_remain': _does_time_remain(attempt), 'does_time_remain': _does_time_remain(attempt),
'enter_exam_endpoint': reverse('edx_proctoring.proctored_exam.attempt.collection'), 'enter_exam_endpoint': reverse('edx_proctoring.proctored_exam.attempt.collection'),
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
{% endblocktrans %} {% endblocktrans %}
</h3> </h3>
{% include 'proctored_exam/visit_exam_content.html' %}
<p> <p>
{% blocktrans %} {% blocktrans %}
You are no longer eligible for academic credit for this course, regardless of your final grade. You are no longer eligible for academic credit for this course, regardless of your final grade.
If you have questions about the status of your proctored exam results, contact {{ platform_name }} Support. If you have questions about the status of your proctored exam results, contact {{ platform_name }} Support.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
{% include 'proctored_exam/visit_exam_content.html' %}
<hr> <hr>
<p> <p>
{% blocktrans %} {% blocktrans %}
......
...@@ -5,9 +5,6 @@ ...@@ -5,9 +5,6 @@
You have submitted this proctored exam for review You have submitted this proctored exam for review
{% endblocktrans %} {% endblocktrans %}
</h3> </h3>
{% include 'proctored_exam/visit_exam_content.html' %}
<p> <p>
{% blocktrans %} {% blocktrans %}
&#8226; After you quit the proctoring session, the recorded data is uploaded for review. </br> &#8226; After you quit the proctoring session, the recorded data is uploaded for review. </br>
...@@ -15,6 +12,8 @@ ...@@ -15,6 +12,8 @@
{% endblocktrans %} {% endblocktrans %}
</p> </p>
{% include 'proctored_exam/visit_exam_content.html' %}
<p> <p>
{% blocktrans %} {% blocktrans %}
If you have questions about the status of your proctored exam results, contact {{ platform_name }} Support. If you have questions about the status of your proctored exam results, contact {{ platform_name }} Support.
......
...@@ -6,14 +6,13 @@ ...@@ -6,14 +6,13 @@
{% endblocktrans %} {% endblocktrans %}
</h3> </h3>
{% include 'proctored_exam/visit_exam_content.html' %}
<p> <p>
{% blocktrans %} {% blocktrans %}
You are eligible to purchase academic credit for this course if you complete all required exams You are eligible to purchase academic credit for this course if you complete all required exams
and also achieve a final grade that meets the credit requirements for the course. and also achieve a final grade that meets the credit requirements for the course.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
{% include 'proctored_exam/visit_exam_content.html' %}
<hr> <hr>
<p> <p>
{% blocktrans %} {% blocktrans %}
......
{% load i18n %} {% load i18n %}
{% if has_due_date_passed %} {% if has_due_date_passed %}
<hr>
<p> <p>
{% blocktrans %} {% blocktrans %}
If you want to view your exam questions and responses, click on the button “let me see my exam”. To view your exam questions and responses, select <strong>View my exam</strong>. The exam's review status is shown in the left navigation pane.
When you clicked the button, you will be taken directly to the exam content. The exam’s status will
still be visible to you in the left navigation pane.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<p> <p>
<button type="button" name="visit-exam-content" class="visit-exam-button exam-action-button btn btn-pl-primary btn-base" data-action-url="{{update_is_status_acknowledge_url}}"> <button type="button" name="visit-exam-content" class="visit-exam-button exam-action-button btn btn-pl-primary btn-base" data-action-url="{{update_is_status_acknowledge_url}}">
{% trans "Let me see my exam" %} {% trans "View my exam" %}
</button> </button>
<div class="clearfix"></div> <div class="clearfix"></div>
</p> </p>
...@@ -37,4 +35,10 @@ ...@@ -37,4 +35,10 @@
} }
); );
</script> </script>
{% elif has_due_date %}
<p>
{% blocktrans %}
After the due date for this exam has passed, you will be able to review your answers on this page.
{% endblocktrans %}
</p>
{% endif %} {% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment