{% extends "base.html" %}

{% block title %}Register{% endblock %}
{% block content %}

{% from "security/_macros.html" import render_field_with_errors, render_field, render_tabs %}

{{ render_tabs('register') }}

<form class="form-horizontal" action="{{ url_for_security('register') }}" method="POST" name="register_user_form">
{{ register_user_form.hidden_tag() }}
{{ render_field_with_errors(register_user_form.id, label="Handle (no spaces)") }}
{{ render_field_with_errors(register_user_form.givenName) }}
{{ render_field_with_errors(register_user_form.familyName) }}
{{ render_field_with_errors(register_user_form.email) }}
{{ render_field_with_errors(register_user_form.password) }}
{% if register_user_form.password_confirm %}
{{ render_field_with_errors(register_user_form.password_confirm) }}
{% endif %}
{{ render_field(register_user_form.submit) }}
</form>

{% endblock %}