mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:37:08 +00:00
signup readonly, but visible
This commit is contained in:
@@ -55,21 +55,30 @@ def signup(request):
|
|||||||
The user must be logged-on as a personal login and that is
|
The user must be logged-on as a personal login and that is
|
||||||
who is being signed up. You can't signup someone else.
|
who is being signed up. You can't signup someone else.
|
||||||
"""
|
"""
|
||||||
|
form_read_only = True # default
|
||||||
signup_user = request.user
|
signup_user = request.user
|
||||||
identified_login = is_identified_user(signup_user)
|
identified_login = is_identified_user(signup_user)
|
||||||
|
|
||||||
if identified_login:
|
if identified_login:
|
||||||
editor = get_git_string(signup_user)
|
editor = get_git_string(signup_user)
|
||||||
|
form_read_only = False
|
||||||
else:
|
else:
|
||||||
return HttpResponseRedirect("/accounts/login/")
|
get_cookie(request) # might be blank
|
||||||
|
# No, just make the form read-only.
|
||||||
|
# return HttpResponseRedirect("/accounts/login/")
|
||||||
|
|
||||||
people = Person.objects.filter(user=signup_user)
|
if signup_user.is_anonymous:
|
||||||
if len(people) == 1:
|
experience = 0
|
||||||
signup_person = people[0]
|
|
||||||
else:
|
else:
|
||||||
return HttpResponseRedirect("/accounts/login")
|
people = Person.objects.filter(user=signup_user)
|
||||||
|
if len(people) == 1:
|
||||||
|
signup_person = people[0]
|
||||||
|
form_read_only = False
|
||||||
|
# else:
|
||||||
|
# No, just make the form read-only.
|
||||||
|
# return HttpResponseRedirect("/accounts/login")
|
||||||
|
|
||||||
experience = how_many_previous_expos(signup_person)
|
experience = how_many_previous_expos(signup_person)
|
||||||
|
|
||||||
if request.method == "POST": # If the form has been submitted...
|
if request.method == "POST": # If the form has been submitted...
|
||||||
pageform = ExpoSignupForm(request.POST) # A form bound to the POST data
|
pageform = ExpoSignupForm(request.POST) # A form bound to the POST data
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ Loser Expo {{year}} SIGN-UP Form
|
|||||||
</table>
|
</table>
|
||||||
<table border="0">
|
<table border="0">
|
||||||
<h3>Tents</h3>
|
<h3>Tents</h3>
|
||||||
<p>There will be two high camps in {{year}}:</p>
|
<p>There will be at least one high camps in {{year}}:</p>
|
||||||
<ul style="list-style: disc">
|
<ul style="list-style: disc">
|
||||||
<li>the Stone Bridge site;</li>
|
<li>the Stone Bridge site;</li>
|
||||||
<li>the Garlic Cave site</li>
|
<li>the Garlic Cave site</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user