1. Andriy Kornatskyy
  2. wheezy.web

Source

wheezy.web / demos / template / content / templates-jinja2 / membership / signup.html

{% extends "/shared/master.html" %}
{% block title %}Sign Up{% endblock %}
{% block content %}
<div id="signup">
    <h2>
        Create a New Account</h2>
    <p>
    Use the form below to create a new account.
    </p>
    <p>
    Passwords are required to be a minimum of 8 characters
    in length.
    </p>
    {{ model.error() }}
    <form action="{{ path_for('signup') }}" method="post">
        {{ resubmission() }}
        <div>
            <fieldset>
                <legend>Account Information</legend>
                <p>
                {{ credential.username.label('Username:') }}
                {{ credential.username.textbox(autocomplete='off') }}
                {{ credential.username.error() }}
                </p>
                <p>
                {{ account.display_name.label('Display name:') }}
                {{ account.display_name.textbox(autocomplete='off') }}
                {{ account.display_name.error() }}
                </p>
                <p>
                {{ account.email.label('Email:') }}
                {{ account.email.textbox(autocomplete='off') }}
                {{ account.email.error() }}
                </p>
                <p>
                {{ account.account_type.label('Account Type:') }}
                {{ account.account_type.radio(choices=account_types) }}
                {{ account.account_type.error() }}
                </p>
                <p>
                {{ registration.date_of_birth.label(_('Date of birth (YYYY/MM/DD):')) }}
                {{ registration.date_of_birth.format(_('YYYY/MM/DD')).textbox(autocomplete='off') }}
                {{ registration.date_of_birth.error() }}
                </p>
                <p>
                {{ credential.password.label('Password:') }}
                {{ credential.password.password(autocomplete='off', maxlength='12') }}
                {{ credential.password.error() }}
                </p>
                <p>
                {{ model.confirm_password.label('Confirm password:') }}
                {{ model.confirm_password.password(autocomplete='off', maxlength='12') }}
                {{ model.confirm_password.error() }}
                </p>
                <p>
                {{ model.questionid.label('Security question:') }}
                {{ model.questionid.dropdown(choices=questions) }}
                {{ model.questionid.error() }}
                </p>
                <p>
                {{ registration.answer.label('Answer:') }}
                {{ registration.answer.textbox(autocomplete='off', maxlength='30') }}
                {{ registration.answer.error() }}
                </p>
                <p>
                <input type="submit" value="Register" />
                </p>
                <p><b>WARNING</b>: The site policy allows only 2 registrations \
                    per IP address, otherwise your IP address will be blocked for \
                    <i>60 seconds</i>.
                </p>
            </fieldset>
        </div>
    </form>
</div>
{% endblock %}
{% block script %}
<script type="text/javascript">
</script>
{% endblock %}