From 6b068536781617a18536c5ff729480f1e0626867 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 7 Sep 2020 19:28:18 +0200 Subject: [PATCH] Add cards to registration apps --- .../email_validation_complete.html | 25 +++++++++++++++---- .../email_validation_email_sent.html | 24 ++++++++++-------- 2 files changed, 34 insertions(+), 15 deletions(-) diff --git a/apps/registration/templates/registration/email_validation_complete.html b/apps/registration/templates/registration/email_validation_complete.html index dca26470..11a84fe9 100644 --- a/apps/registration/templates/registration/email_validation_complete.html +++ b/apps/registration/templates/registration/email_validation_complete.html @@ -5,14 +5,29 @@ SPDX-License-Identifier: GPL-3.0-or-later {% load i18n %} {% block content %} - {% if validlink %} - {% trans "Your email have successfully been validated." %} +
+

+ {{ title }} +

+
+ {% if validlink %} +

+ {% trans "Your email have successfully been validated." %} +

{% if user_object.profile.registration_valid %} +

{% blocktrans %}You can now log in.{% endblocktrans %} +

{% else %} +

{% trans "You must pay now your membership in the Kfet to complete your registration." %} +

{% endif %} - {% else %} - {% trans "The link was invalid. The token may have expired. Please send us an email to activate your account." %} - {% endif %} + {% else %} +

+ {% trans "The link was invalid. The token may have expired. Please send us an email to activate your account." %} +

+ {% endif %} +
+
{% endblock %} diff --git a/apps/registration/templates/registration/email_validation_email_sent.html b/apps/registration/templates/registration/email_validation_email_sent.html index 627c864b..87691670 100644 --- a/apps/registration/templates/registration/email_validation_email_sent.html +++ b/apps/registration/templates/registration/email_validation_email_sent.html @@ -5,13 +5,17 @@ SPDX-License-Identifier: GPL-3.0-or-later {% load i18n %} {% block content %} -

{% trans "Account activation" %}

- -

- {% trans "An email has been sent. Please click on the link to activate your account." %} -

- -

- {% trans "You must also go to the Kfet to pay your membership. The WEI registration includes the BDE membership." %} -

-{% endblock %} \ No newline at end of file +
+

+ {% trans "Account activation" %} +

+
+

+ {% trans "An email has been sent. Please click on the link to activate your account." %} +

+

+ {% trans "You must also go to the Kfet to pay your membership. The WEI registration includes the BDE membership." %} +

+
+
+{% endblock %}