Comment code
This commit is contained in:
parent
9d584ae87a
commit
f833f1c46c
16 changed files with 201 additions and 40 deletions
|
|
@ -10,6 +10,9 @@ from note_kfet.inputs import AmountInput
|
|||
|
||||
|
||||
class SignUpForm(UserCreationForm):
|
||||
"""
|
||||
Pre-register users with all information
|
||||
"""
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields['username'].widget.attrs.pop("autofocus", None)
|
||||
|
|
@ -25,6 +28,9 @@ class SignUpForm(UserCreationForm):
|
|||
|
||||
|
||||
class ValidationForm(forms.Form):
|
||||
"""
|
||||
Validate the inscription of the new users and pay memberships.
|
||||
"""
|
||||
soge = forms.BooleanField(
|
||||
label=_("Inscription paid by Société Générale"),
|
||||
required=False,
|
||||
|
|
@ -66,6 +72,7 @@ class ValidationForm(forms.Form):
|
|||
initial=True,
|
||||
)
|
||||
|
||||
# The user can join the Kfet club at the inscription
|
||||
join_Kfet = forms.BooleanField(
|
||||
label=_("Join Kfet Club"),
|
||||
required=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue