{% set page_title = "Register" %}

{% extends theme("layout.html") %}
{% block content %}
{% from theme("macros.html") import horizontal_field %}

<form class="form-horizontal" role="form" method="POST">
    <h2>Register</h2>
    <hr>
    {{ form.hidden_tag() }}
    {{ horizontal_field(form.username)}}
    {{ horizontal_field(form.email)}}
    {{ horizontal_field(form.password)}}
    {{ horizontal_field(form.confirm_password)}}

    {% if config["RECAPTCHA_ENABLED"] %}
        {{ horizontal_field(form.recaptcha) }}
    {% endif %}

    <div class="form-group">
        <div class="col-lg-offset-2 col-lg-3">
            <div class="checkbox">
                <label>
                    <input type="checkbox"> {{ form.accept_tos }} I accept the <a href="#">Terms of Service</a>
                </label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-lg-offset-2 col-lg-10">
            <button type="submit" class="btn btn-success">Register</button>
        </div>
    </div>
</form>

{% endblock %}
