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

Add New Student

Back to Students
{{ form.hidden_tag() }}

Basic Information

{{ form.student_name(class="input input-bordered w-full", placeholder="Enter student name") }} {% if form.student_name.errors %} {% for error in form.student_name.errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.roll_number(class="input input-bordered w-full", placeholder="Enter roll number") }} {% if form.roll_number.errors %} {% for error in form.roll_number.errors %}

{{ error }}

{% endfor %} {% endif %}

Academic Information

{{ form.department(class="input input-bordered w-full", placeholder="Enter department") }} {% if form.department.errors %} {% for error in form.department.errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.program(class="input input-bordered w-full", placeholder="Enter program") }} {% if form.program.errors %} {% for error in form.program.errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.semester(class="input input-bordered w-full", placeholder="Enter semester (1-12)") }} {% if form.semester.errors %} {% for error in form.semester.errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.section(class="input input-bordered w-full", placeholder="Enter section") }} {% if form.section.errors %} {% for error in form.section.errors %}

{{ error }}

{% endfor %} {% endif %}

Contact Information

{{ form.email(class="input input-bordered w-full", placeholder="Enter email address") }} {% if form.email.errors %} {% for error in form.email.errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.phone_number(class="input input-bordered w-full", placeholder="Enter phone number") }} {% if form.phone_number.errors %} {% for error in form.phone_number.errors %}

{{ error }}

{% endfor %} {% endif %}

Account Security

{{ form.password(class="input input-bordered w-full", placeholder="Enter password") }} {% if form.password.errors %} {% for error in form.password.errors %}

{{ error }}

{% endfor %} {% endif %}

Password must be at least 6 characters long.

{{ form.submit(class="btn btn-primary hover:bg-primary-focus transition-colors") }}

Important Information

  • Students will be automatically approved and assigned to your class.
  • They can immediately start accessing your topics after registration.
  • Login credentials will be sent to their email address.
  • You can manage their access from the student management dashboard.
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %} {% endblock %}