From ddceefa79858468f1053d79ff5a558530402453a Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Fri, 11 Aug 2023 11:47:05 -0400 Subject: [PATCH] :art: unify the signup forms Show both social and email signup instead of switching between them with alpine triggers --- templates/account/signup.html | 98 +++++++++++++++-------------------- 1 file changed, 42 insertions(+), 56 deletions(-) diff --git a/templates/account/signup.html b/templates/account/signup.html index bdac4446..8e77bf03 100644 --- a/templates/account/signup.html +++ b/templates/account/signup.html @@ -12,7 +12,7 @@
-
+

{% trans "Sign Up" %}

@@ -20,68 +20,54 @@

-
-

- - Sign Up with one of your existing third party accounts
-
or you can - - use your email - -

+
-
- -
- {% providers_media_js %} - {% include "socialaccount/snippets/provider_list.html" with process="login" %} - {% include "socialaccount/snippets/login_extra.html" %} +
+
+

Sign Up with an existing third party account

+
+ {% providers_media_js %} + {% include "socialaccount/snippets/provider_list.html" with process="login" %} + {% include "socialaccount/snippets/login_extra.html" %} +
-
+
+

Sign Up with Email

+
+
+ {% csrf_token %} -
- -
- {% csrf_token %} + {% if form.errors %} + {% for error in field.errors %} +

+ {{ error|escape }} +

+ {% endfor %} + {% endif %} - {% if form.errors %} - {% for error in field.errors %} -

- {{ error|escape }} -

+ {% for field in form.visible_fields %} +
+ {{ field }} + {% if field.help_text %} + {{ field.help_text }} + {% endif %} +
{% endfor %} - {% endif %} - {% for field in form.visible_fields %} -
- {{ field }} - {% if field.help_text %} - {{ field.help_text }} - {% endif %} -
- {% endfor %} - - {% if redirect_field_value %} - - {% endif %} -
-
- -
- + {% if redirect_field_value %} + + {% endif %} +
+
+ +
+ +