{% extends "base.html" %} {% block title %}Submit — {{ assignment.title }}{% endblock %} {% block nav_courses_student %}active{% endblock %} {% block content %}
{% if assignment.description %}

Assignment description:
{{ assignment.description }}

{% if assignment.due_date %}

Due: {{ assignment.due_date|date:"d M Y, H:i" }} {% if assignment.is_overdue %} (Overdue — late submission) {% endif %}

{% endif %}
{% endif %} {% if existing and existing.grade %}
Your grade: {{ existing.grade }} {% if existing.feedback %}
Feedback: {{ existing.feedback }} {% endif %}
{% endif %}
Your Submission
{% csrf_token %}
{% if existing and existing.file %}
Current file: {{ existing.file.name|cut:"submissions/" }} — upload a new file to replace it.
{% endif %}
PDF, Word, images or ZIP. Max 50 MB.
{% if assignment.is_overdue %}
The due date has passed. Your submission will be marked as late.
{% endif %}
{% endblock %}