{% extends "theme_base.html" %}

{% block title %}{% trans "Choose a Username" %} - {{ block.super }}{% endblock %}

{% block content %}
    <h1>{% trans "Choose a Username" %}</h1>
    
    {% if form.errors %}
        <p class="error">{% trans "Please correct the errors below:" %}</p>
    {% endif %}
    
    <p>{% blocktrans %}Now that you have logged in with your OpenID, we need you to choose a username for this site.{% endblocktrans %}</p>
    
    <form method="post" action="">
        {% csrf_token %}
        <fieldset>
            {{ form|as_bootstrap }}
        </fieldset>
        <div class="actions">
            <button type="submit" class="primary btn">{% trans "Register" %}</button>
        </div>
    </form>
    
    {% url accounts_login_openid as accounts_login_openid_url %}
    {% url terms as terms_url %}
    {% url privacy as privacy_url %}
    <p>{% blocktrans %}<strong>Already have an account?</strong> <a href="{{ accounts_login_openid_url }}">Log in</a> to associate your OpenID with your existing account.{% endblocktrans %}</p>
    <p>{% blocktrans %}By clicking &quot;Register&quot;, you are indicating that you have read and agree to the <a href="{{ terms_url }}">Terms of Use</a> and <a href="{{ privacy_url }}">Privacy Policy</a>.{% endblocktrans %}</p>
    <p>{% blocktrans %}If you have any trouble creating your account, contact us at <a href="mailto:{{ CONTACT_EMAIL }}">{{ CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
{% endblock %}