From 5ca417dc898f8e855b7b40fbbf7722fcd3e85289 Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Fri, 30 Aug 2024 11:26:45 +0200 Subject: [PATCH] email required at signup --- orochi/templates/account/signup.html | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 orochi/templates/account/signup.html diff --git a/orochi/templates/account/signup.html b/orochi/templates/account/signup.html new file mode 100644 index 00000000..77598f1b --- /dev/null +++ b/orochi/templates/account/signup.html @@ -0,0 +1,46 @@ +{% extends "account/base_entrance.html" %} +{% load allauth i18n %} +{% block head_title %} + {% trans "Signup" %} +{% endblock head_title %} +{% block content %} + {% element h1 %} + {% trans "Sign Up" %} + {% endelement %} + {% setvar link %} + + {% endsetvar %} + {% setvar end_link %} + + {% endsetvar %} + {% element p %} + {% blocktranslate %}Already have an account? Then please {{ link }}sign in{{ end_link }}.{% endblocktranslate %} + {% endelement %} + {% if not SOCIALACCOUNT_ONLY %} + {% url 'account_signup' as action_url %} + {% element form form=form method="post" action=action_url tags="entrance,signup" %} + {% slot body %} + {% csrf_token %} + {% element fields form=form unlabeled=True %} + {% endelement %} + {{ redirect_field }} + {% endslot %} + {% slot actions %} + {% element button tags="prominent,signup" type="submit" %} + {% trans "Sign Up" %} + {% endelement %} + {% endslot %} + {% endelement %} + {% endif %} + {% if SOCIALACCOUNT_ENABLED %} + {% include "socialaccount/snippets/login.html" with page_layout="entrance" %} + {% endif %} +{% endblock content %} + +{% block javascript %} +{{ block.super }} + +{% endblock javascript %}