{% extends "user.html" %} {% block pagetitle %} {{ title }} {% endblock %} {% block main %} {% if 'Enrolled Courses' not in title%}
{% endif %} {% if not courses %} No Courses to display {% endif %} {% for course in courses %}

{{ course.name }} by {{ course.creator.get_full_name }}

{% if course.hidden %}Open Course {% endif %} {% if user in course.requests.all %} Request Pending {% elif user in course.rejected.all %}Request Rejected {% elif user in course.students.all %}Enrolled {% else %} {% if course.is_active_enrollment %} {% if course.is_self_enroll %} Enroll {% else %} Enroll {% endif %} {% else %} Enrollment Closed {% endif %} {% endif %}
{% if user in course.students.all %} {% for quiz in course.get_quizzes %} {% if quiz.active and quiz.course_id == course.id %} {% if not quiz.is_expired %} {% else %} {% endif %} {% endif %} {% endfor %}
Quiz View Answer Paper Pre requisite quiz
{{ quiz.description }}
{{ quiz.description }} Inactive
{% if quiz.view_answerpaper %} Can View {% else %} Cannot view now {% endif %} {% if quiz.prerequisite %} You have to pass {{ quiz.prerequisite.description }} for taking {{ paper.quiz.description }} {% else %} No pre requisites for {{ quiz.description }} {% endif %}
{% endif %}
{% if course.instructions %}
{{ course.instructions|safe }}
{% endif %}

{% endfor %} {% endblock %}