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

{% block content %}
<div class="form--register form--register--teacher is-flex">
    <div class="form col-xs-12 col-sm-8 col-md-6 col-lg-4 center-block">
        <h4>Invite a teacher</h4>
        <p>To invite another teacher from your school or club to join Code for Life, just put <b>their email address</b> in the field below.</p>
        <form action="{% url 'invite_teacher' %}" method="post">
            {{ invite_form.non_field_errors }}
            <div class="btn-toolbar" >
                {% csrf_token %}
                {{ invite_form.email }}
                {{ invite_form.email.errors }}
                <div class="background button-group">
                    <a href="{% url 'dashboard' %}" class="button button--secondary button--secondary--light">Cancel</a>
                    <button type="submit" name="submit" value="Submit" class="button button--primary">Submit</button>
                </div>
            </div>
        </form>
    </div>
</div> 

{% endblock content %}
