From c897213b418c0daa5c9a5b29c7c440dba7ca35e2 Mon Sep 17 00:00:00 2001 From: Dani Hodovic Date: Sun, 6 Nov 2022 14:56:33 +0100 Subject: [PATCH] feat: add accounts/email https://github.com/danihodovic/django-allauth-ui/issues/25 --- allauth_ui/templates/account/email.html | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 allauth_ui/templates/account/email.html diff --git a/allauth_ui/templates/account/email.html b/allauth_ui/templates/account/email.html new file mode 100644 index 0000000..d9506a5 --- /dev/null +++ b/allauth_ui/templates/account/email.html @@ -0,0 +1,75 @@ +{% extends "account/base.html" %} + +{% load i18n %} + +{% block head_title %}E-mail Addresses{% endblock %} + +{% block whitebox %} +

E-mail Addresses

+ +{% if user.emailaddress_set.all %} +

The following e-mail addresses are associated with your account:

+ +
+ {% csrf_token %} +
+ + {% for emailaddress in user.emailaddress_set.all %} +
+ + +
+ + {#
#} + {# #} + {#
#} + {% endfor %} + +
+ + + + + {# {% include "account/_button.html" with text="Make Primary" %} #} + {# {% include "account/_button.html" with text="Re-send Verification" %} #} + {# {% include "account/_button.html" with text="Remove" base_color="bg-red" %} #} +
+ +
+
+
+ +{% endif %} +# TODO: Logic for adding a new email + +{% endblock %}