{% extends 'flask_user/_public_base.html' %} {% block title %} Register {% endblock %} {% block content %} {% from "flask_user/_macros.html" import render_field, render_submit_field %}

{%trans%}Register{%endtrans%}

{{ form.hidden_tag() }} {# Username or Email #} {% set field = form.username if user_manager.USER_ENABLE_USERNAME else form.email %}
{# Label on left, "Already registered? Sign in." on right #}
{% if user_manager.USER_ENABLE_REGISTER %} {%trans%}Already registered? Sign in.{%endtrans%} {% endif %}
{{ field(class_='form-control', tabindex=210) }} {% if field.errors %} {% for e in field.errors %}

{{ e }}

{% endfor %} {% endif %}
{% if user_manager.USER_ENABLE_EMAIL and user_manager.USER_ENABLE_USERNAME %} {{ render_field(form.email, tabindex=220) }} {% endif %} {% if config.REQUIRE_PLAY_KEY %} {{ render_field(form.play_key_id, tabindex=225) }} {% endif %} {{ render_field(form.password, tabindex=230) }} {% if user_manager.USER_REQUIRE_RETYPE_PASSWORD %} {{ render_field(form.retype_password, tabindex=240) }} {% endif %} {{ render_submit_field(form.submit, tabindex=280) }}
{% endblock %}