{% extends "admin/base.html" %} {% block content %}

Manage Students

Add, edit or remove student accounts in the system

Total Students
{{ students|length }}
Active Students
{% set active_count = 0 %} {% for student in students %} {% if student.is_approved %} {% set active_count = active_count + 1 %} {% endif %} {% endfor %} {{ active_count }}
Assigned Teachers
{% set teacher_ids = [] %} {% for student in students %} {% if student.teacher_id and student.teacher_id not in teacher_ids %} {% set _ = teacher_ids.append(student.teacher_id) %} {% endif %} {% endfor %} {{ teacher_ids|length }}

Add New Student

{{ form.csrf_token }}
{{ form.username(class="input input-bordered w-full", placeholder="Enter full name") }}
{{ form.email(class="input input-bordered w-full", placeholder="Email address") }}
{{ form.roll_number(class="input input-bordered w-full", placeholder="Student ID") }}
{{ form.section(class="input input-bordered w-full", placeholder="e.g. A, B") }}
{{ form.program(class="select select-bordered w-full") }}
{{ form.department(class="select select-bordered w-full") }}
{{ form.teacher(class="select select-bordered w-full") }}
{{ form.password(class="input input-bordered w-full", placeholder="Secure password") }}

Export Student Data

Download student information for record keeping or analysis.

Export to CSV

Student Accounts

{% if students %} {% for student in students %}
{% if student.username|length > 0 %} {{ student.username[0]|upper }} {% else %} {% endif %}

{{ student.username }}

{{ 'Active' if student.is_approved else 'Pending' }}
{{ student.email }}
{{ student.roll_number }} {% if student.section %} Section {{ student.section }} {% endif %} {{ student.program|upper }} {{ student.department|replace('_', ' ')|title }}
{% if student.teacher %}
{{ student.teacher.username }}
{% endif %}
View Edit {% if student.progress_records.count() == 0 %} {% else %} {% endif %}
{% endfor %} {% else %}

No Students Available

Start by adding new students to the system.

{% endif %}
Showing {{ students|length }} of {{ students|length }} students
{% endblock %}