{% extends "allauth/layouts/entrance.html" %} {% load static i18n allauth %} {% comment %} The OAuth consent screen, in the auth pages' frame and elements. {% endcomment %} {% block head_title %} {% trans "Allow access" %} {% endblock head_title %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %} {% if not error %} {% element h1 %} {% trans "Allow access?" %} {% endelement %} {% element p %} {% if client_host %} {% blocktranslate with host=client_host %}A client at {{ host }} asks to act on this site as you.{% endblocktranslate %} {% else %} {% blocktranslate with name=application.name %}{{ name }} asks to act on this site as you.{% endblocktranslate %} {% endif %} {% endelement %} {% element form method="post" %} {% slot body %} {% csrf_token %} {% for field in form %} {% if field.is_hidden %}{{ field }}{% endif %} {% endfor %} {% element alert %} {% slot message %} {% blocktranslate with host=redirect_host %}After you allow, the browser is sent to {{ host }}.{% endblocktranslate %} {% if loopback_only %} {% trans "That is this computer: a program running on it will receive the key. Allow only if you just started one that sent you here." %} {% endif %} {% endslot %} {% endelement %} {{ form.errors }} {{ form.non_field_errors }} {% endslot %} {% slot actions %} {% element button type="submit" tags="secondary" %} {% trans "Cancel" %} {% endelement %} {% element button type="submit" name="allow" value="yes" %} {% trans "Allow" %} {% endelement %} {% endslot %} {% endelement %} {% else %} {% element h1 %} {% trans "That request cannot be allowed" %} {% endelement %} {% element p %} {{ error.description }} {% endelement %} {% element p %} {{ error.error }} {% endelement %} {% endif %} {% endblock content %}