Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading