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

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

{% trans "Learner's Response" %}

{% if workflow_cancellation %}

{% 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 %}

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

{% else %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label="The learner's response to the question above:" %} {% if submission.file_url %} {% trans "The file associated with this response." %} {% trans "Caution: This file was uploaded by another course learner and has not been verified, screened, approved, reviewed, or endorsed by edX. If you decide to access it, you do so at your own risk." %} {% endif %}
{% endif %}
{% if peer_assessments %}

{% trans "Peer Assessments for This Learner" %}

{% for assessment in peer_assessments %} {% with peer_num=forloop.counter %}

{% blocktrans %} Peer {{ peer_num }}: {% endblocktrans %}

{% for criterion in rubric_criteria %} {% for part in assessment.parts %} {% if part.option.criterion.name == criterion.name %} {% endif %} {% endfor %} {% endfor %}
{% trans "Criterion" %} {% trans "Selected Option" %} {% trans "Feedback" %} {% trans "Points" %} {% trans "Points Possible" %}
{{ criterion.label }} {{ part.option.label }} {{ part.feedback }} {{ part.option.points }} {{ criterion.total_value }}

{% trans "Overall Feedback" %}

{{ assessment.feedback|linebreaks }}
{% endwith %} {% endfor %}
{% endif %} {% if submitted_assessments %}

{% trans "Peer Assessments Completed by This Learner" %}

{% for assessment in submitted_assessments %} {% with peer_num=forloop.counter %}

{% blocktrans %} Assessment {{ peer_num }}: {% endblocktrans %}

{% for criterion in rubric_criteria %} {% for part in assessment.parts %} {% if part.option.criterion.name == criterion.name %} {% endif %} {% endfor %} {% endfor %}
{% trans "Criterion" %} {% trans "Selected Option" %} {% trans "Feedback" %} {% trans "Points" %} {% trans "Points Possible" %}
{{ criterion.label }} {{ part.option.label }} {{ part.feedback }} {{ part.option.points }} {{ criterion.total_value }}

{% trans "Overall Feedback" %}

{{ assessment.feedback|linebreaks }}
{% endwith %} {% endfor %}
{% endif %} {% if self_assessment %}

{% trans "Learner's Self Assessment" %}

{% for criterion in rubric_criteria %} {% for part in self_assessment.parts %} {% if part.option.criterion.name == criterion.name %} {% endif %} {% endfor %} {% endfor %}
{% trans "Criterion" %} {% trans "Selected Option" %} {% trans "Points" %} {% trans "Points Possible" %}
{{ criterion.label }} {{ part.option.label }} {{ part.option.points }} {{ criterion.total_value }}
{% endif %} {% if example_based_assessment %}

{% trans "Example-Based Assessment" %}

{% for criterion in rubric_criteria %} {% for part in example_based_assessment.parts %} {% if part.option.criterion.name == criterion.name %} {% endif %} {% endfor %} {% endfor %}
{% trans "Criterion" %} {% trans "Selected Option" %} {% trans "Points" %} {% trans "Points Possible" %}
{{ criterion.label }} {{ part.option.label }} {{ part.option.points }} {{ criterion.total_value }}
{% 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 %}