{% extends "orga/base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load bootstrap4 %}

{% block headline %}
    {% blocktrans with event=invitation.event.name trimmed %}
        Invitation to the team organizing {{ event }}
    {% endblocktrans %}
{% endblock %}

{% block content %}

<form action="" class="labelless-password-input-form" method="post">
    {% csrf_token %}
    {% bootstrap_form_errors form %}
    {{ form.media }}
    <div class="row">
        <div class="col-md-6">
            <h4 class="text-center">{% trans "I already have an account" %}</h4>
            {% bootstrap_field form.login_username layout='inline' %}
            {% bootstrap_field form.login_password layout='inline' %}
            <button type="submit" class="btn btn-block btn-success btn-lg">
                {% trans "Log in" %} &raquo;
            </button>
        </div>
        <div class="col-md-6">
            <h4 class="text-center">{% trans "I need a new account" %}</h4>
            {% bootstrap_field form.register_username layout='inline' %}
            {% bootstrap_field form.register_email layout='inline' %}
            {% bootstrap_field form.register_password layout='inline' %}
            {% bootstrap_field form.register_password_repeat layout='inline' %}
            <button type="submit" class="btn btn-block btn-success btn-lg">
                {% trans "Register" %} &raquo;
            </button>
        </div>
    </div>
</form>

{% endblock %}
