{% extends 'base.html' %} {% block title %}Review Submission{% endblock %} {% block content %}

Review Submission

Provide feedback on student's work

{{ submission.status|capitalize }}
Student
{{ submission.progress.student.username }}
Topic
{{ submission.progress.topic.title }}
Type
{{ submission.content_type }}
Submitted
{{ submission.created_at.strftime('%d %b, %I:%M %p') }}
{% if submission.score %}

AI Assessment Score

{{ submission.score|round(1) }}
out of 100
{% if submission.score >= 70 %} Excellent performance! {% elif submission.score >= 50 %} Good effort, needs improvement {% else %} Needs significant improvement {% endif %}
{% endif %}
{{ form.csrf_token }}

Your Review

/ 100

Student's Submission

{% if submission.content_type == 'comprehension' %}
{% for entry in submission.parsed_feedback %}

Question:

{{ entry.question }}

Student's Answer:

{{ entry.answer }}
{% if entry.score is defined %}
Score:
{{ entry.score }}%
{% endif %}
{% endfor %}
{% elif submission.content_type == 'speaking' %}
{% if submission.parsed_content.get('transcription') %}

Transcription:

"{{ submission.parsed_content.transcription }}"

{% else %}
No transcription available for this speaking submission.
{% endif %}
{% else %}

{{ submission.content }}

{% endif %}

AI-Generated Feedback

{% if submission.content_type == 'speaking' and submission.parsed_content.get('scores') %}
{% for key, score in submission.parsed_content.scores.items() %} {% if key != 'overall' %}
{% if key == 'pronunciation' %} {% elif key == 'fluency' %} {% elif key == 'vocabulary' %} {% elif key == 'grammar' %} {% else %} {% endif %} {{ key }}
{{ score }}
/ 100
{% endif %} {% endfor %} {% if submission.parsed_content.scores.get('overall') %}
Overall Score
{{ submission.parsed_content.scores.overall }}
%
{% endif %}
{% endif %} {% if submission.parsed_feedback %}
{% if submission.content_type == 'comprehension' %}
{% for entry in submission.parsed_feedback %}
AI Feedback:

{{ entry.feedback }}

{% if entry.suggestions %}
Suggestions:

{{ entry.suggestions }}

{% endif %}
{% endfor %}
{% elif submission.content_type == 'speaking' %} {% if submission.parsed_content.get('feedback') %}
{% for key, feedback in submission.parsed_content.feedback.items() %}
{% if key == 'pronunciation' %} {% elif key == 'fluency' %} {% elif key == 'vocabulary' %} {% elif key == 'grammar' %} {% else %} {% endif %} {{ key }} Feedback

{{ feedback }}

{% endfor %}
{% else %}
No detailed AI feedback available for this submission.
{% endif %} {% else %}

{{ submission.feedback }}

{% endif %}
{% else %}
No AI feedback available for this submission.
{% endif %}
{% endblock %}