| 1 |
{% extends "idp/oidc/base.html" %} |
| 2 |
{% load i18n %} |
| 3 |
{% load allauth %} |
| 4 |
{% block head_title %} |
| 5 |
{% trans "Authorize" %} |
| 6 |
{% endblock head_title %} |
| 7 |
{% block content %} |
| 8 |
{% element h1 %} |
| 9 |
{% trans "Confirm Device" %} |
| 10 |
{% endelement %} |
| 11 |
{% element p %} |
| 12 |
{% blocktranslate with client_name=client.name %}Please confirm the code shown on your {{ client_name }} to authorize this device.{% endblocktranslate %} |
| 13 |
{% endelement %} |
| 14 |
{% element field type="text" value=user_code disabled=True %} |
| 15 |
{% slot label %} |
| 16 |
{% translate "Code" %} |
| 17 |
{% endslot %} |
| 18 |
{% endelement %} |
| 19 |
{% element form method="post" action=authorization_url %} |
| 20 |
{% slot body %} |
| 21 |
{{ form }} |
| 22 |
{% endslot %} |
| 23 |
{% slot actions %} |
| 24 |
{% element button_group %} |
| 25 |
{% element button name="action" value="confirm" type="submit" tags="primary,consent" %} |
| 26 |
{% translate "Confirm" %} |
| 27 |
{% endelement %} |
| 28 |
{% element button name="action" value="deny" type="submit" tags="outline,consent" %} |
| 29 |
{% translate "Deny" %} |
| 30 |
{% endelement %} |
| 31 |
{% endelement %} |
| 32 |
{% endslot %} |
| 33 |
{% endelement %} |
| 34 |
{% endblock %} |