{% extends 'portal/form_shapes.html' %}
{% load staticfiles %}
{% load app_tags %}

{% block form_content %}
    <div id="student_login_page"></div>
    <h4 class="center-block">Welcome to class: {{ form.access_code }}</h4>
    <h5>Please enter your login details.</h5>
    <form id="form-login-school" method="post" autocomplete="off">

        {% csrf_token %}

        {{ form.non_field_errors }}

        <div class="form__input">
            {{ form.username }}
            <small>{{ form.username.help_text }}</small>
            {{ form.username.errors }}
        </div>

        <div class="form__input">
            {{ form.password }}
            <small>{{ form.password.help_text }}</small>
            {{ form.password.errors }}
        </div>

        <button type="submit" name="school_login" class="button button--primary button--login">Log in</button>
    </form>

    <p>Forgotten your login details? Please check with your teacher.</p>
{% endblock form_content %}
