2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-01-19 03:12:54 +00:00

enough for now

This commit is contained in:
2025-12-28 01:47:20 +00:00
parent 441dd557eb
commit 1636fd7063
2 changed files with 19 additions and 26 deletions

View File

@@ -288,31 +288,6 @@ class EntranceLetterForm(ModelForm):
class NewProspectForm(forms.Form):
identified_login = forms.BooleanField(
label="Identified login",
required=False,
widget=forms.CheckboxInput(attrs={"onclick": "return false"}) # makes it readonly
)
who_are_you = forms.CharField(
label="Who are you",
max_length=100,
required=False,
widget=forms.TextInput(attrs={
"size": 100,
"placeholder": "You are editing this page, who are you ? e.g. 'Becka' or 'Animal <mta@gasthof.expo>'",
"style": "vertical-align: text-top;"
})
)
discoverers = forms.CharField(
label="Names of discoverers",
max_length=100,
required=False,
widget=forms.TextInput(attrs={
"placeholder": "Becka, Bill, Ted",
"size": 20,
"style": "width: 20ch; min-width: 0;"
})
)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# If the form is bound (POSTed), update the field's value to uppercase
@@ -401,6 +376,7 @@ class NewProspectForm(forms.Form):
"style": "width: 11ch; min-width: 0;"
})
)
discoverers = forms.CharField(
label="Names of discoverers",
max_length=100,
@@ -411,3 +387,21 @@ class NewProspectForm(forms.Form):
"style": "width: 20ch; min-width: 0;"
})
)
who_are_you = forms.CharField(
label="Who are you",
max_length=100,
required=False,
widget=forms.TextInput(attrs={
"size": 100,
"placeholder": "You are editing this page, who are you ? e.g. 'Becka' or 'Animal <mta@gasthof.expo>'",
"style": "width: 100ch; min-width: 0;"
})
)
identified_login = forms.BooleanField(
label="Identified login",
required=False,
widget=forms.CheckboxInput(attrs={"onclick": "return false"}) # makes it readonly
)

View File

@@ -1,5 +1,4 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth.views import PasswordResetView, PasswordResetConfirmView # class-based views