Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: formatting of email.html #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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