{% extends 'base.html' %} {% block title %}Grade Submission - {{ assignment.title }} - LXP{% endblock %} {% block content %}

Grade Submission

{% if submission.is_graded %}Graded{% else %}Pending{% endif %} Back to Submissions
Student Information

Name: {{ submission.student.get_full_name|default:submission.student.username }}

Email: {{ submission.student.email }}

Submitted: {{ submission.submitted_at|date:"M d, Y H:i" }}

Assignment Information

Title: {{ assignment.title }}

Due Date: {{ assignment.due_date|date:"M d, Y H:i" }}

Total Marks: {{ assignment.total_marks }}

{% csrf_token %}
Student Answers
{% for answer in answers %}
Question {{ forloop.counter }} ({{ answer.question.marks }} marks)
{% if assignment.assignment_type == 'text_input' %}
{% else %}
Multiple choice questions are automatically graded. {% if answer.selected_choice and answer.selected_choice.is_correct %} Score: {{ answer.question.marks }}/{{ answer.question.marks }} {% else %} Score: 0/{{ answer.question.marks }} {% endif %}
{% endif %}
{% endfor %}
Total Score: {{ submission.total_marks_obtained }}/{{ assignment.total_marks }}
{% widthratio submission.total_marks_obtained assignment.total_marks 100 as percentage %}
{{ percentage }}%
{% endblock %}