Skip to content

Commit

Permalink
test: formatting of email.html
Browse files Browse the repository at this point in the history
  • Loading branch information
danihodovic committed Dec 4, 2024
1 parent db85035 commit 3dd798e
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions allauth_ui/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
{% trans "Email Addresses" as heading %}
{% #container heading=heading %}
{% if emailaddresses %}
<div>
{% trans 'The following email addresses are associated with your account:' %}
</div>
<div>{% trans 'The following email addresses are associated with your account:' %}</div>
{% url 'account_email' as action_url %}
{% #form url=action_url use_default_button="false" %}
{{ redirect_field }}
Expand Down Expand Up @@ -37,15 +35,9 @@
{% endfor %}
</div>
<div class="flex flex-col mt-3 gap-1.5 ">
<button name="action_primary" type="submit" class="btn btn-primary">
{% trans "Make Primary" %}
</button>
<button name="action_send" type="submit" class="btn btn-secondary">
{% trans "Re-send verification" %}
</button>
<button name="action_remove" type="submit" class="btn btn-warning">
{% trans "Remove" %}
</button>
<button name="action_primary" type="submit" class="btn btn-primary">{% trans "Make Primary" %}</button>
<button name="action_send" type="submit" class="btn btn-secondary">{% trans "Re-send verification" %}</button>
<button name="action_remove" type="submit" class="btn btn-warning">{% trans "Remove" %}</button>
</div>
{% /form %}
{% else %}
Expand All @@ -56,8 +48,8 @@
<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

0 comments on commit 3dd798e

Please sign in to comment.