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:
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user