forked from expo/troggle
enough for now
This commit is contained in:
@@ -288,31 +288,6 @@ class EntranceLetterForm(ModelForm):
|
|||||||
|
|
||||||
|
|
||||||
class NewProspectForm(forms.Form):
|
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):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
# If the form is bound (POSTed), update the field's value to uppercase
|
# 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;"
|
"style": "width: 11ch; min-width: 0;"
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
discoverers = forms.CharField(
|
discoverers = forms.CharField(
|
||||||
label="Names of discoverers",
|
label="Names of discoverers",
|
||||||
max_length=100,
|
max_length=100,
|
||||||
@@ -411,3 +387,21 @@ class NewProspectForm(forms.Form):
|
|||||||
"style": "width: 20ch; min-width: 0;"
|
"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
|
||||||
|
)
|
||||||
1
urls.py
1
urls.py
@@ -1,5 +1,4 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls.static import static
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.contrib.auth.views import PasswordResetView, PasswordResetConfirmView # class-based views
|
from django.contrib.auth.views import PasswordResetView, PasswordResetConfirmView # class-based views
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user