Skip to content

Commit f6333e9

Browse files
committed
reformat templates with djlint
1 parent 8b45c18 commit f6333e9

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

allauth_ui/templates/account/email.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
{% trans "Email Addresses" as heading %}
66
{% #container heading=heading %}
77
{% if emailaddresses %}
8-
<div>{% trans 'The following email addresses are associated with your account:' %}</div>
8+
<div>
9+
{% trans 'The following email addresses are associated with your account:' %}
10+
</div>
911
{% url 'account_email' as action_url %}
1012
{% #form url=action_url use_default_button="false" %}
1113
{{ redirect_field }}
@@ -35,9 +37,15 @@
3537
{% endfor %}
3638
</div>
3739
<div class="flex flex-col mt-3 gap-1.5 ">
38-
<button name="action_primary" type="submit" class="btn btn-primary">Make Primary</button>
39-
<button name="action_send" type="submit" class="btn btn-secondary">Re-send verification</button>
40-
<button name="action_remove" type="submit" class="btn btn-warning">Remove</button>
40+
<button name="action_primary" type="submit" class="btn btn-primary">
41+
Make Primary
42+
</button>
43+
<button name="action_send" type="submit" class="btn btn-secondary">
44+
Re-send verification
45+
</button>
46+
<button name="action_remove" type="submit" class="btn btn-warning">
47+
Remove
48+
</button>
4149
</div>
4250
{% /form %}
4351
{% else %}

allauth_ui/templates/account/reauthenticate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
{% load i18n %}
33
{% load allauth_ui %}
44
{% block reauthenticate_content %}
5-
<div class="mt-5">{% blocktranslate %}Enter your password:{% endblocktranslate %}</div>
5+
<div class="mt-5">
6+
{% blocktranslate %}Enter your password:{% endblocktranslate %}
7+
</div>
68
{% url 'account_reauthenticate' as action_url %}
79
{% trans "Confirm" as button_text %}
810
{% #form form=form url=action_url button_text=button_text %}

allauth_ui/templates/mfa/authenticate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<div class="divider"></div>
1717
<h2 class="my-3 text-lg">{% translate "Alternative options" %}</h2>
1818
{% #form form=webauthn_form url=action_url use_default_button="false" %}
19-
<button type="submit" class="btn btn-neutral">{% trans "Use a security key" %}</button>
19+
<button type="submit" class="btn btn-neutral">
20+
{% trans "Use a security key" %}
21+
</button>
2022
<a href="{% url "account_login" %}" class="btn btn-accent">{% trans "Cancel" %}</a>
2123
{% csrf_token %}
2224
{% /form %}

allauth_ui/templates/mfa/reauthenticate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
{% load i18n %}
33
{% load allauth_ui %}
44
{% block reauthenticate_content %}
5-
<div class="mt-5">{% blocktranslate %}Enter an authenticator code:{% endblocktranslate %}</div>
5+
<div class="mt-5">
6+
{% blocktranslate %}Enter an authenticator code:{% endblocktranslate %}
7+
</div>
68
{% url 'mfa_reauthenticate' as action_url %}
79
{% trans "Confirm" as button_text %}
810
{% #form form=form url=action_url button_text=button_text %}

allauth_ui/templates/socialaccount/connections.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
</label>
3232
</div>
3333
{% endfor %}
34-
<button type="submit" class="btn btn-warning my-3">{% trans "Remove" %}</button>
34+
<button type="submit" class="btn btn-warning my-3">
35+
{% trans "Remove" %}
36+
</button>
3537
{% /form %}
3638
{% endif %}
3739
<h2 class="py-3 text-lg">{% trans "Add a Third-Party Account" %}</h2>

0 commit comments

Comments
 (0)