Skip to content

Commit

Permalink
fix: corrected account/email and account/login template formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSemke committed Feb 2, 2025
1 parent 5a07768 commit ce3eb8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions allauth_ui/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
<h2 class="py-3 text-lg">{% trans "Add Email Address" %}</h2>
{% trans "Add Email" as button_text %}
{% #form form=form url=action_url button_text=button_text use_default_button="false" %}
{% csrf_token %}
<button type="submit" name="action_add" class="my-3 btn">{{ button_text }}</button>
{% csrf_token %}
<button type="submit" name="action_add" class="my-3 btn">
{{ button_text }}
</button>
{% /form %}
{% endif %}
{% /container %}
Expand Down
12 changes: 6 additions & 6 deletions allauth_ui/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
{% url 'account_login' as action_url %}
{% #form form=form url=action_url button_text=heading %}
{% if form.remember %}
<div class="items-start my-2 form-control">
<label class="cursor-pointer label">
{% render_field form.remember class="checkbox checkbox-accent" %}
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
</label>
</div>
<div class="items-start my-2 form-control">
<label class="cursor-pointer label">
{% render_field form.remember class="checkbox checkbox-accent" %}
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
</label>
</div>
{% endif %}
{{ redirect_field }}
{% csrf_token %}
Expand Down

0 comments on commit ce3eb8e

Please sign in to comment.