{% extends 'portal/base.html' %} {% load static %} {% load app_tags %} {% block content %}

{% if user.new_student.class_field %}Password{% else %}Account{% endif %}

{% if user.new_student.class_field %}
Update my password

Change your password here to something memorable.

{% else %}
Edit my details

You may edit your account details below, including your name, email and password.

{% endif %}
{% if user.new_student.class_field %}Update password{% else %}Update account details{% endif %}
{% if user.new_student.class_field %}

You may edit your password below. It must be long enough and hard enough to stop your friends guessing it and stealing all of your hard work.

If you have any problems, ask a teacher to help you.

{% else %}

You may edit your account details below, including your name, password, and registered email address. If you change your email address, you will have to verify it belongs to you, or your parent or guardian by following the instructions on the verification email.

Your password must be long enough and hard enough to stop your friends guessing it and stealing all of your hard work.

{% endif %}
{% csrf_token %} {{ form.non_field_errors }} {% if not user.new_student.class_field %} {{ form.name.errors }} {{ form.name }} {{ form.email.errors }} {{ form.email }} {% endif %} {{ form.password.errors }} {{ form.password }} {{ form.confirm_password.errors }} {{ form.confirm_password }} {{ form.current_password.errors }} {{ form.current_password }}
{% if not user.new_student.class_field %}
Join a school or club

To find out about linking your Code For Life account with a school or club, click 'Join'.

Join {% endif %}
{% endblock %}