{% extends 'portal/base.html' %} {% load static %} {% load app_tags %} {% block scripts %} {{ block.super }} {% endblock scripts %} {% block subNav %} {% endblock subNav %} {% block content %} {% include "portal/partials/popup.html" %} {% include "portal/partials/delete_popup.html" %} {% include "portal/partials/invite_admin_teacher.html" %} {% if show_onboarding_complete %} {% include "portal/partials/info_popup.html" %} {% endif %}

Your school: {% if user.new_teacher.school %} {{ user.new_teacher.school.name }} ({{ user.new_teacher.school.postcode }}){% endif %}

{% if is_admin %}

As an administrator of your school or club, you can select other teachers to whom you can provide or revoke administrative rights. You can also add and remove teachers from your school or club. As administrator, you have the ability to see and amend other teachers' classes. Please bear this in mind when assigning admin rights to other teachers.

Invite teachers to your school
{% csrf_token %} {{ invite_teacher_form.non_field_errors }}
{{ invite_teacher_form.teacher_first_name }}
{{ invite_teacher_form.teacher_first_name.help_text }} {{ invite_teacher_form.teacher_first_name.errors }}
{{ invite_teacher_form.teacher_last_name }}
{{ invite_teacher_form.teacher_last_name.help_text }} {{ invite_teacher_form.teacher_last_name.errors }}
{{ invite_teacher_form.teacher_email }}
{{ invite_teacher_form.teacher_email.help_text }} {{ invite_teacher_form.teacher_email.errors }}
{{ invite_teacher_form.make_admin_ticked }}
{{ invite_teacher_form.make_admin_ticked.errors }}
{% else %}
You can see which other teachers in your school or club are registered here. Should you need to leave the school or club, you can do so below.
{% endif %}
{% if is_admin %}
These teachers are already part of your school or club
{% for coworker in coworkers %} {% if coworker.new_user != user %} {% else %} {% endif %} {% endfor %} {% for sent_invite in sent_invites %} {% endfor %}

Name

Administrator status

Actions

{{ coworker.new_user.first_name }} {{ coworker.new_user.last_name }} {% if coworker.new_user == user %}(you){% endif %}

{% if coworker.is_admin %}Administrator{% else %}Standard Teacher{% endif %}{% if coworker.is_admin or is_admin %} ({{ coworker.new_user.email|emaildomain }}){% endif %}

{% if coworker.is_admin %} {% else %} {% endif %} {% if coworker.new_user|has_2FA %} {% endif %} Update details

{{ sent_invite.invited_teacher_first_name }} {{ sent_invite.invited_teacher_last_name }} {% if sent_invite.is_expired %} (expired) {% else %} (pending) {% endif %}

{% if sent_invite.invited_teacher_is_admin %} Administrator {% else %} Standard Teacher {% endif %} ({{ sent_invite.invited_teacher_email|emaildomain }})

{% if sent_invite.invited_teacher_is_admin %} {% else %} {% endif %}

Select ‘Delete’ to delete a teacher from your school or club. You will be able to move any existing classes assigned to that teacher to other teachers in your school or club.

We strongly recommend that administrators who are using 2FA ensure there is another administrator who will be able to disable their 2FA should they have problems with their smartphone or tablet.
{% else %}
These teachers are already part of your school or club
{% for coworker in coworkers %} {% endfor %}

Name

Administrator status

{{ coworker.new_user.first_name }} {{ coworker.new_user.last_name }} {% if coworker.new_user == user %}(you){% endif %}

{% if coworker.is_admin %}Administrator{% else %}Standard Teacher{% endif %}{% if coworker.is_admin or is_admin %} ({{ coworker.new_user.email|emaildomain }}){% endif %}

{% endif %} {% if is_admin %}
Update details of your school or club

Update your school or club’s name and/or postcode.

{% csrf_token %} {{ update_school_form.non_field_errors }}
{% for field in update_school_form %}
{{ field }} {% if not field == update_school_form.country %} {% endif %}
{{ field.help_text }} {{ field.errors }}
{% endfor %}
{% endif %}

Your classes

Below is a list of all the classes in your school, including classes of other teachers. You can add a class or edit your existing classes. You can also accept or deny requests from independent students wanting to join one of your classes.

{% if classes %} {% if is_admin %} {% endif %} {% for class in classes %} {% if is_admin %} {% endif %} {% endfor %}

Class name

Access code

Teacher

Action

{{ class.name }}

{{ class.access_code }}

{% if user.email == class.teacher.new_user.email %} You {% else %} {{ class.teacher }} {% endif %}

Edit details
{% else %}

It doesn't look like you have any classes assigned to you. Go to the section below to create a new class.

{% endif %}

External requests to join your classes

External or independent students may request to join your classes if the student has been given a Class Access Code, and provided you have enabled external requests for that class.

{% if requests %} {% for join_request in requests %} {% endfor %}

Name

Email address

Class

Actions

{{ join_request.new_user.first_name }}

{{ join_request.new_user.email }}

{{ join_request.pending_class_request.name }} {% if user.email != join_request.pending_class_request.teacher.new_user.email %} ({{ join_request.pending_class_request.teacher.new_user.first_name }} {{ join_request.pending_class_request.teacher.new_user.last_name}}) {% endif %}

{% else %}

No student has currently requested to join your classes.

{% endif %}
Create a new class
{% if is_admin %}

When you set up a new class, a unique class access code will automatically be generated for the teacher assigned to the class.

{% else %}

When you set up a new class, a unique class access code will automatically be generated, with you being identified as the teacher for that class.

{% endif %}
{% csrf_token %} {{ create_class_form.non_field_errors }}
{{ create_class_form.class_name }}
{{ create_class_form.class_name.help_text }} {{ create_class_form.class_name.errors }}
{% if is_admin %}
{{ create_class_form.teacher }} {{ create_class_form.teacher.help_text }} {{ create_class_form.teacher.errors }}
{% endif %}
{{ create_class_form.classmate_progress }}
{{ create_class_form.classmate_progress.errors }}

Your account

You can update your account details below.

{% csrf_token %} {{ update_account_form.non_field_errors }}
{{ update_account_form.first_name }}
{{ update_account_form.first_name.help_text }} {{ update_account_form.first_name.errors }}
{{ update_account_form.last_name }}
{{ update_account_form.last_name.help_text }} {{ update_account_form.last_name.errors }}
{{ update_account_form.email }}
{{ update_account_form.email.help_text }} {{ update_account_form.email.errors }}
{{ update_account_form.password }}
{{ update_account_form.password.help_text }} {{ update_account_form.password.errors }}
{{ update_account_form.confirm_password }}
{{ update_account_form.confirm_password.help_text }} {{ update_account_form.confirm_password.errors }}
{{ update_account_form.current_password }}
{{ update_account_form.current_password.help_text }} {{ update_account_form.current_password.errors }}
Two factor authentication

Use your smartphone or tablet to enhance your account's security by using an authenticator app.

{% if user|has_2FA %}
Backup tokens

If you don't have your smartphone or tablet with you, you can access your account using backup tokens. {% if backup_tokens == 1 %} You have only one backup token remaining. {% else %} You have {{ backup_tokens }} backup tokens remaining. {% endif %}

View and create backup tokens for your account.

Note: Please make sure that you store any login details in a secure place.
Disable two factor authentication (2FA)

We recommend you to continue using 2FA, however you can disable 2FA for your account using the button below.

{% else %} {% endif %}
Delete account

If you no longer wish to have a Code for Life account, you can delete it by confirming below. You will receive an email to confirm this decision.

This can't be reversed. All classes you've created will be permanently erased.

{% csrf_token %} {{ delete_account_form.non_field_errors }}
{{ delete_account_form.delete_password }}
{{ delete_account_form.delete_password.help_text }} {{ delete_account_form.delete_password.errors }}
{{ delete_account_form.unsubscribe_newsletter }}
{{ delete_account_form.unsubscribe_newsletter.errors }}
{% endblock content %}