Submit Task: {{ task.title }}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
Description: {{ task.description }}
Due Date: {{ task.due_date.strftime('%Y-%m-%d') }}
{% if task.file_path %}
Task Attachment:
Download
{% endif %}
{% if already_submitted %}
Task Already Submitted
You have already submitted this task.
{% else %}
{% endif %}