From 1c07dc5a94af20b80937294556e3a3add77415c8 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 9 Feb 2025 22:39:50 +0000 Subject: [PATCH] new user registration --- templates/login/readme.txt | 5 +++++ templates/login/register.html | 36 +++++++++++++++++++----------- templates/login/register_text.html | 3 +++ templates/registration/readme.txt | 5 +++++ 4 files changed, 36 insertions(+), 13 deletions(-) create mode 100644 templates/login/readme.txt create mode 100644 templates/registration/readme.txt diff --git a/templates/login/readme.txt b/templates/login/readme.txt new file mode 100644 index 0000000..57b766b --- /dev/null +++ b/templates/login/readme.txt @@ -0,0 +1,5 @@ +We have both a templates/login and a templates/registration directory. + +The registration stuff is mostly in the /logins directory - oops. + +This all needs to be cleaned up. \ No newline at end of file diff --git a/templates/login/register.html b/templates/login/register.html index 2fc8219..07ae34b 100644 --- a/templates/login/register.html +++ b/templates/login/register.html @@ -52,12 +52,12 @@ ALSO it behaves differently if a username is specified in the URL, when username

Register your email address

{% if newuser %} -

You need to register before you can fill out the 'signup' form to request to attend Expo. +

You need to register on the website before you can fill out the 'signup' form to request to attend Expo. {% else %}

For previous expoers, your username must be your 'troggle id' as listed on the past expoers list

For new people wanting to come to expo for the first time, please use the New User registration form {%endif %} -

This will eventually sign you up automatically to the +

This will also eventually sign you up automatically to the expo email list. So type in the same email address that you use there if you have already signed up to that.

@@ -68,12 +68,19 @@ So type in the same email address that you use there if you have already signed

{% csrf_token %}

+{% if newuser %} + + {{form.fullname}} +{% else %} {% if email_stored %} {% else %} {% endif %} - {{form.username}} + {{form.username}} +{%endif %} + +

{% if email_stored %} @@ -83,17 +90,20 @@ So type in the same email address that you use there if you have already signed {% endif %} {{form.email}}

-{% if logged_in %} +{% if newuser %} {% else %} -

- - {{form.password1}} -

-

- - {{form.password2}} -

+ {% if logged_in %} + {% else %} +

+ + {{form.password1}} +

+

+ + {{form.password2}} +

+ {%endif %} {%endif %}
diff --git a/templates/login/register_text.html b/templates/login/register_text.html index ac5c3ff..644303f 100644 --- a/templates/login/register_text.html +++ b/templates/login/register_text.html @@ -28,8 +28,11 @@ you can change it at the bottom of