{# The last step of opening an account through a provider. Same shell and markup as the sign-up form (shell('login'), Bootstrap's class names), so it reads as the same front door. The fields are profile's edit form, with whatever other features registered on it, started with what the provider said, plus the address when the provider verified none. #} {% extends shell('login') %} {% block title %}{{ _('Create your account') }}{% if site is defined %} ยท {{ site.name }}{% endif %}{% endblock %} {% block content %}

{{ _('Create your account') }}

{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %}

{{ _('You signed in with %(provider)s as %(account)s. Check your details to open your account here.', provider=provider.label, account=account.username or account.provider_id) }}

{% if account.email %}

{{ _('Your account will use %(email)s, the address %(provider)s verified.', email=account.email, provider=provider.label) }}

{% endif %}
{{ form.hidden_tag() }} {% for field in form if field.widget.input_type not in ('hidden', 'submit') %}
{{ field.label(class="form-label") }} {% if field.short_name == 'email' %} {{ field(class="form-control" ~ (" is-invalid" if field.errors else ""), placeholder=_('Your email address'), autocomplete='email') }} {% if confirms %}

{{ _('%(provider)s does not share a verified address, so we will send a link to this one. Your account is opened when you follow it.', provider=provider.label) }}

{% endif %} {% else %} {{ field(class="form-control" ~ (" is-invalid" if field.errors else "")) }} {% endif %} {% if field.description %}

{{ field.description }}

{% endif %} {% for error in field.errors %}

{{ error }}

{% endfor %}
{% endfor %} {{ form.submit(class="btn btn-primary mb-3") }}

{{ _('Already have an account?') }} {{ _('Log in') }}

{% endblock %}