{% extends "html/accounts/base.html" %} {% block title %}{{ gettext('Sign up') }}{% endblock %} {% block page_id %}registration-page{% endblock %} {% block body %}

{{ gettext('Sign up for a Sage Notebook account') }}

{% if error %}

Error{{ error[1:] }}found

{% endif %}
  1. {{ gettext('Create a username') }}

    {{ gettext('Your username must start with a letter and be between 3 and 64 ' 'characters long. You may only use letters, numbers, underscores, @, ' 'and dots.') }}

    {% if username_missing %}

    {{ gettext('Error') }}: {{ gettext('No username given') }}

    {% endif %} {% if username_taken %}

    {{ gettext('Error') }}: {{ gettext('Username already in use')}}

    {% endif %} {% if username_invalid %}

    {{ gettext('Error') }}: {{ gettext('Bad username') }}

    {% endif %}
  2. {{ gettext('Create a good password') }}

    {{ gettext('Your password must have at least 4 characters. ' 'Your password can not contain your username or spaces.') }}

    {% if password_missing %}

    {{ gettext('Error') }}: {{ gettext('No password given') }}

    {% endif %} {% if password_invalid %}

    {{ gettext('Error') }}: {{ gettext('Bad password') }}

    {% endif %}
  3. {{ gettext('Re-type your password') }}

    {% if passwords_dont_match or retype_password_missing %}

    {{ gettext('Error') }}: {{ gettext('Passwords didn\'t match') }}

    {% endif %}
  4. {% if email or email_missing or email_invaild %}
  5. {{ gettext('Enter your email address') }}

    {{ gettext('Your email address is required for account ' 'confirmation and recovery. You will be emailed a confirmation link ' 'right after you successfully sign up.') }}

    {% if email_missing %}

    {{ gettext('Error') }}: {{ gettext('No email address given') }}

    {% endif %} {% if email_invalid %}

    {{ gettext('Error') }}: {{ gettext('Invalid email address') }}

    {% endif %}
  6. {% endif %} {% if challenge %}
  7. {{ gettext('Answer a challenge') }}

    {{ challenge_html }} {% if challenge_missing %}

    {{ gettext('Error') }}: {{ gettext('No challenge response given') }}

    {% endif %} {% if challenge_invalid %}

    {{ gettext('Error') }}: {{ gettext('Invalid challenge response') }}

    {% endif %}
  8. {% endif %}
{% endblock %}