realms-wiki/realms/templates/auth/register.html

13 lines
862 B
HTML
Raw Normal View History

2013-10-02 04:50:48 +03:00
{% extends 'layout.html' %}
2014-08-30 18:06:12 +03:00
{% from 'macros.html' import render_form, render_field %}
2013-10-02 04:50:48 +03:00
{% block body %}
2014-08-30 18:06:12 +03:00
{% call render_form(form, action_url=url_for('auth.register'), action_text='Register', btn_class='btn btn-primary') %}
{{ render_field(form.username, placeholder='Username', type='username', **{"required": 1, "data-parsley-type": "alphanum"}) }}
{{ render_field(form.email, placeholder='Email', type='email', required=1) }}
{{ render_field(form.password, placeholder='Password', type='password', **{"required": 1, "data-parsley-minlength": "6"}) }}
{{ render_field(form.confirm, placeholder='Confirm Password', type='password', **{"required": 1, "data-parsley-minlength": "6"}) }}
{% if config.RECAPTCHA_ENABLE %}
{{ render_field(form.recaptcha) }}
{% endif %}
{% endcall %}
2013-10-02 04:50:48 +03:00
{% endblock %}