Skip to content

Commit

Permalink
djlint reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
yhager committed Feb 11, 2025
1 parent 1de7807 commit 2e231ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
20 changes: 7 additions & 13 deletions allauth_ui/templates/account/confirm_login_code.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{# -*- engine:django -*- #}
{% extends "account/confirm_login_code.html" %}

{% load i18n %}
{% load allauth %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}

{% trans "Sign In" as heading %}
{% #container heading=heading %}
<div class="py-3">
{% blocktranslate %}Enter Sign-In Code{% endblocktranslate %}
</div>
<div class="py-3">
{% setvar email_link %}
<a href="mailto:{{ email }}">{{ email }}</a>
{% trans "Sign In" as heading %}
{% #container heading=heading %}
<div class="py-3">{% blocktranslate %}Enter Sign-In Code{% endblocktranslate %}</div>
<div class="py-3">
{% setvar email_link %}
<a href="mailto:{{ email }}">{{ email }}</a>
{% endsetvar %}
{% blocktranslate %}We’ve sent a code to {{ email_link }}. The code expires shortly, so please enter it soon.{% endblocktranslate %}
</div>
Expand All @@ -23,9 +19,7 @@
{{ redirect_field }}
{% csrf_token %}
{% /form %}
<button type="submit" class="btn btn-red" form="logout-from-stage">
{% translate "Cancel" %}
</button>
<button type="submit" class="btn btn-red" form="logout-from-stage">{% translate "Cancel" %}</button>
<form id="logout-from-stage"
method="post"
action="{% url 'account_logout' %}">
Expand Down
22 changes: 11 additions & 11 deletions allauth_ui/templates/account/request_login_code.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Mail me a sign-in code" as heading %}
{% #container heading=heading %}
<div class="py-3">
{% blocktranslate %}You will receive an email containing a special code for a password-free sign-in.{% endblocktranslate %}
</div>
{% url 'account_request_login_code' as action_url %}
{% #form form=form url=action_url button_text=heading %}
{{ redirect_field }}
{% csrf_token %}
{% /form %}
{% /container %}
{% trans "Mail me a sign-in code" as heading %}
{% #container heading=heading %}
<div class="py-3">
{% blocktranslate %}You will receive an email containing a special code for a password-free sign-in.{% endblocktranslate %}
</div>
{% url 'account_request_login_code' as action_url %}
{% #form form=form url=action_url button_text=heading %}
{{ redirect_field }}
{% csrf_token %}
{% /form %}
{% /container %}
{% endblock content %}

0 comments on commit 2e231ad

Please sign in to comment.