{% extends 'base.html' %} {% load static %} {% block content %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %}

Filter Students by Class Stream

Select Academic Year, Term, Class Stream and Assessment Type to view and print.
{% if selected_year %} Year: {% for y in years %}{% if y.id|stringformat:"s" == selected_year %} {{ y.academic_year }} {% endif %}{% endfor %} {% endif %} {% if selected_term %} Term: {% for t in terms %}{% if t.id|stringformat:"s" == selected_term %} {{ t.term }} {% endif %}{% endfor %} {% endif %} {% if selected_class_stream %} Stream: {% for cs in academic_class_streams %} {% if cs.id|stringformat:"s" == selected_class_stream %} {{ cs.academic_class.Class.name }} - {{ cs.stream.stream }} ({{ cs.academic_class.academic_year.academic_year }}) {% endif %} {% endfor %} {% endif %} {% if selected_assessment_type %} Type: {% for at in assessment_types %}{% if at.id|stringformat:"s" == selected_assessment_type %} {{ at.name }} {% endif %}{% endfor %} {% else %} Type: Not selected {% endif %}
{% if bulk_year_id and bulk_term_id and bulk_class_id and selected_assessment_type %} Print Bulk Mini Reports {% else %} {% endif %}
{% if students %}
{% for student in students %} {% endfor %}
Photo Name Reg No Class Stream Year Actions
{% if student.photo %} {% else %} {% endif %} {{ student.student_name }} {{ student.reg_no }} {{ student.current_class.name }} {{ student.stream.stream }} {{ student.academic_year.academic_year }}
{% if selected_assessment_type %} {% else %} {% endif %} {% if selected_term %} {% else %} {% endif %}
{% elif no_students_message %}
{{ no_students_message }}
{% elif request.GET %}
No students found matching your criteria.
{% endif %}
{% endblock %}