From 8c4d99d9e8d05bdb0b67c6fbd580364897104fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 26 Mar 2019 12:14:54 +0100 Subject: [PATCH] Big big overhaul. --- src/profiles/templates/account/email.html | 135 +++++++++++------- src/profiles/templates/account/login.html | 2 +- src/profiles/templates/account/logout.html | 2 +- .../templates/account/password_change.html | 17 ++- .../templates/account/password_reset.html | 2 +- src/profiles/templates/account/signup.html | 2 +- .../templates/allauth_2fa/authenticate.html | 2 +- .../templates/allauth_2fa/backup_tokens.html | 59 +++++--- .../templates/allauth_2fa/remove.html | 27 ++-- src/profiles/templates/allauth_2fa/setup.html | 51 +++---- src/profiles/templates/profile_base.html | 50 ++++--- src/profiles/templates/profile_detail.html | 79 +++++++--- src/profiles/views.py | 1 + 13 files changed, 268 insertions(+), 161 deletions(-) diff --git a/src/profiles/templates/account/email.html b/src/profiles/templates/account/email.html index 743d9c4d..a5817f61 100644 --- a/src/profiles/templates/account/email.html +++ b/src/profiles/templates/account/email.html @@ -1,76 +1,107 @@ {% extends 'profile_base.html' %} -{% load i18n %} {% load bootstrap3 %} -{% block head_title %}{% trans "Account" %}{% endblock %} +{% block head_title %}Account{% endblock %} {% block profile_content %} -
-
+
+
-

{% trans "E-mail Addresses" %}

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

{% trans 'The following e-mail addresses are associated with your account:' %}

+
+
+

E-mail Addresses

+
+
- + + {% else %} +

+ Warning: You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc. +

+ {% endif %} +
+
-{% else %} -

{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

+
+
+

Add E-mail Address

+
+
+
+ {% csrf_token %} + {% bootstrap_form form %} + +
+
+
-{% endif %} - - -

{% trans "Add E-mail Address" %}

- -
- {% csrf_token %} - {% bootstrap_form form %} - -
+