{% load i18n %} {% load tz %}
{% if submission %}

{% blocktrans with learner=student_username %} Viewing learner: {{ learner }} {% endblocktrans %}

{% trans "Learner's Response" %}

{% if workflow_cancellation %}

{% if workflow_cancellation.cancelled_by %} {% blocktrans with removed_by_username=workflow_cancellation.cancelled_by removed_datetime=workflow_cancellation.cancelled_at|utc|date:"F j, Y H:i e" %} Learner submission removed by {{ removed_by_username }} on {{ removed_datetime }} {% endblocktrans %} {% else %} {% blocktrans with removed_datetime=workflow_cancellation.cancelled_at|utc|date:"F j, Y H:i e" %} Learner submission removed on {{ removed_datetime }} {% endblocktrans %} {% endif %}

{% blocktrans with comments=workflow_cancellation.comments %} Comments: {{ comments }} {% endblocktrans %}

{% else %}
{% trans "The learner's response to the question above:" as translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %} {% trans "Associated File" as translated_header %} {% include "openassessmentblock/oa_uploaded_file.html" with file_upload_type=file_upload_type file_url=staff_file_url header=translated_header class_prefix="staff-assessment" show_warning="true" %}
{% endif %}
{% if peer_assessments %} {% trans "Peer Assessments for This Learner" as translated_title %} {% include "openassessmentblock/staff_area/oa_student_info_assessment_detail.html" with class_type="peer" assessments=peer_assessments %} {% endif %} {% if submitted_assessments %} {% trans "Peer Assessments Completed by This Learner" as translated_title %} {% include "openassessmentblock/staff_area/oa_student_info_assessment_detail.html" with class_type="submitted" assessments=submitted_assessments %} {% endif %} {% if self_assessment %} {% trans "Learner's Self Assessment" as translated_title %} {% include "openassessmentblock/staff_area/oa_student_info_assessment_detail.html" with class_type="self" assessments=self_assessment %} {% endif %} {% if example_based_assessment %} {% trans "Example-Based Assessment" as translated_title %} {% include "openassessmentblock/staff_area/oa_student_info_assessment_detail.html" with class_type="example_based" assessments=example_based_assessment %} {% endif %} {% if staff_assessment %} {% trans "Staff Assessment for This Learner" as translated_title %} {% include "openassessmentblock/staff_area/oa_student_info_assessment_detail.html" with class_type="staff" assessments=staff_assessment %} {% endif %}

{% trans "Learner's Final Grade" %}

{% if workflow_status == "done" %}

{% with points_earned_string=score.points_earned|stringformat:"s" points_possible_string=score.points_possible|stringformat:"s" %} {% blocktrans with points_earned=''|safe|add:points_earned_string|add:''|safe points_possible=''|safe|add:points_possible_string|add:''|safe %} Final grade: {{ points_earned }} out of {{ points_possible }} {% endblocktrans %} {% endwith %}

{% elif workflow_status == "waiting" %}

{% trans "The submission is waiting for assessments." %}

{% elif workflow_status == "cancelled" %}

{% trans "The learner's submission has been removed from peer assessment. The learner receives a grade of zero unless you delete the learner's state for the problem to allow them to resubmit a response." %}

{% elif workflow_status == None %}

{% trans "The problem has not been started." %}

{% else %}

{% trans "The problem has not been completed." %}

{% endif %}
{% if not workflow_cancellation %}

{% trans "Submit Assessment Grade Override" %}

{% include "openassessmentblock/staff_area/oa_staff_override_assessment.html" %}

{% trans "Remove Submission From Peer Grading" %}

{% trans "Caution: This Action Cannot Be Undone" %}

{% trans "Removing a learner's submission cannot be undone and should be done with caution." %}
{% endif %}
{% else %} {% trans "A response was not found for this learner." %} {% endif %}