Debian Codegraph @

allauth/templates/mfa/webauthn/signup_form.html

raw
1 {% extends "account/base_entrance.html" %}
2 {% load i18n %}
3 {% load static %}
4 {% load allauth %}
5 {% block content %}
6 {% element h1 %}
7 {% trans "Create Passkey" %}
8 {% endelement %}
9 {% element p %}
10 {% blocktranslate %}You are about to create a passkey for your account. As you can add additional keys later on, you can use a descriptive name to tell the keys apart.{% endblocktranslate %}
11 {% endelement %}
12 {% url 'mfa_signup_webauthn' as action_url %}
13 {% element form form=form method="post" action=action_url %}
14 {% slot body %}
15 {% csrf_token %}
16 {% element fields form=form %}
17 {% endelement %}
18 {% endslot %}
19 {% slot actions %}
20 {% element button id="mfa_webauthn_signup" type="button" %}
21 {% trans "Create" %}
22 {% endelement %}
23 {% endslot %}
24 {% endelement %}
25 {% element button type="submit" form="logout-from-stage" tags="link,cancel" %}
26 {% translate "Cancel" %}
27 {% endelement %}
28 <form id="logout-from-stage"
29 method="post"
30 action="{% url 'account_logout' %}">
31 <input type="hidden" name="next" value="{% url 'account_login' %}">
32 {% csrf_token %}
33 </form>
34 {% include "mfa/webauthn/snippets/scripts.html" %}
35 {{ js_data|json_script:"js_data" }}
36 <script data-allauth-onload="allauth.webauthn.forms.signupForm" type="application/json">{
37 "ids": {
38 "signup": "mfa_webauthn_signup",
39 "credential": "{{ form.credential.auto_id }}",
40 "data": "js_data"
41 }
42 }
43 </script>
44 {% endblock %}