{% extends 'base.html' %} {% block title %}{{ title }}{% endblock title %} {% load crispy_forms_tags %} {% load static %} {% block content %}
Home Students Add

Student Add Form

{% if messages %} {% for message in messages %} {% if message.tags == 'error' %}
{{ message }}
{% else %}
{{ message }}
{% endif %} {% endfor %} {% endif %}
{% csrf_token %}

Login Info

ID No.{{ form.username }} {{ form.username.errors }}

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

{{ form.password1.label }}{{ form.password1 }} {{ form.password1.errors }}

The password can't be too similar to other personal information.
The password must contain at least 8 characters.
The password can't be a commonly used password.
The password can't be entirely numeric.

{{ form.password2.label }}{{ form.password2 }} {{ form.password2.errors }}

Enter the same password as before, for verification.

Personal Info

{{ form.first_name.label }}{{ form.first_name }} {{ form.first_name.errors }}
{{ form.last_name.label }}{{ form.last_name }} {{ form.last_name.errors }}
{{ form.email.label }}{{ form.email }} {{ form.email.errors }}
{{ form.address.label }}{{ form.address }} {{ form.address.errors }}
{{ form.phone.label }}{{ form.phone }} {{ form.phone.errors }}

Others

{{ form.department.label }}{{ form.department }} {{ form.department.errors }}
{{ form.level.label }}{{ form.level }} {{ form.level.errors }}
{% endblock content %}