From 08c66e8103f7de643917430a8aa69af8c7bed3df Mon Sep 17 00:00:00 2001 From: Guillim Date: Mon, 17 Jun 2019 18:23:12 +0200 Subject: [PATCH] Creation of all templates for account creation through /signup --- .../templates/acc_active_email.html | 5 +++ app/authentification/templates/signup.html | 31 +++++++++++++++++++ .../validate_mail_address_complete.html | 14 +++++++++ .../validate_mail_address_invalid.html | 9 ++++++ 4 files changed, 59 insertions(+) create mode 100644 app/authentification/templates/acc_active_email.html create mode 100644 app/authentification/templates/signup.html create mode 100644 app/authentification/templates/validate_mail_address_complete.html create mode 100644 app/authentification/templates/validate_mail_address_invalid.html diff --git a/app/authentification/templates/acc_active_email.html b/app/authentification/templates/acc_active_email.html new file mode 100644 index 00000000..4c7be2db --- /dev/null +++ b/app/authentification/templates/acc_active_email.html @@ -0,0 +1,5 @@ +{% autoescape off %} +Hi {{ user.username }}, +Please click on the link to confirm your email, +http://{{ domain }}{% url 'activate' uidb64=uid token=token %} +{% endautoescape %} diff --git a/app/authentification/templates/signup.html b/app/authentification/templates/signup.html new file mode 100644 index 00000000..74d65be0 --- /dev/null +++ b/app/authentification/templates/signup.html @@ -0,0 +1,31 @@ +{% extends "base_auth.html" %} + +{% load utils_templating %} +{% block content_auth %} +
+
+

Sign up

+
+
+ {% csrf_token %} + {% for field in form %} +
+ +
+ {{ field|addcss:'input' }} + {% if field.help_text %} + {{ field.help_text }} + {% endif %} + {% for error in field.errors %} +

{{ error }}

+ {% endfor %} +
+
+ + {% endfor %} +
+ +
+
+
+{% endblock %} diff --git a/app/authentification/templates/validate_mail_address_complete.html b/app/authentification/templates/validate_mail_address_complete.html new file mode 100644 index 00000000..44dfad28 --- /dev/null +++ b/app/authentification/templates/validate_mail_address_complete.html @@ -0,0 +1,14 @@ +{% extends "base_auth.html" %} + +{% block content_auth %} +
+

+ We've emailed you instructions for setting your password, if an account exists with the email you entered. + You should receive them shortly. +

+

+ If you don't receive an email, please make sure you've entered the address you registered with, + and check your spam folder. +

+
+{% endblock %} diff --git a/app/authentification/templates/validate_mail_address_invalid.html b/app/authentification/templates/validate_mail_address_invalid.html new file mode 100644 index 00000000..d6385593 --- /dev/null +++ b/app/authentification/templates/validate_mail_address_invalid.html @@ -0,0 +1,9 @@ +{% extends "base_auth.html" %} + +{% block content_auth %} +
+

+ Activation link is invalid! +

+
+{% endblock %}