mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-22 18:38:23 +02:00
Meilleure gestion des cautions
This commit is contained in:
@ -24,6 +24,7 @@ class WEIForm(forms.ModelForm):
|
||||
"membership_end": DatePickerInput(),
|
||||
"date_start": DatePickerInput(),
|
||||
"date_end": DatePickerInput(),
|
||||
"caution_amount": AmountInput(),
|
||||
}
|
||||
|
||||
|
||||
@ -42,7 +43,7 @@ class WEIRegistrationForm(forms.ModelForm):
|
||||
fields = [
|
||||
'user', 'soge_credit', 'birth_date', 'gender', 'clothing_size',
|
||||
'health_issues', 'emergency_contact_name', 'emergency_contact_phone',
|
||||
'first_year', 'information_json', 'caution_check'
|
||||
'first_year', 'information_json', 'caution_check', 'caution_type'
|
||||
]
|
||||
widgets = {
|
||||
"user": Autocomplete(
|
||||
@ -58,9 +59,9 @@ class WEIRegistrationForm(forms.ModelForm):
|
||||
'maxDate': '2100-01-01'
|
||||
}),
|
||||
"caution_check": forms.BooleanField(
|
||||
label=_("I confirm that I have read the caution and that I am aware of the risks involved."),
|
||||
required=False,
|
||||
),
|
||||
"caution_type": forms.RadioSelect(),
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user