|
@@ -40,6 +40,10 @@ class PublicContribForm(forms.ModelForm):
|
|
'connect_local': forms.CheckboxInput,
|
|
'connect_local': forms.CheckboxInput,
|
|
'connect_internet': forms.CheckboxInput,
|
|
'connect_internet': forms.CheckboxInput,
|
|
'comment': forms.Textarea({'rows': 3}),
|
|
'comment': forms.Textarea({'rows': 3}),
|
|
|
|
+ 'floor': forms.TextInput(
|
|
|
|
+ attrs={'placeholder': "Étage (0 pour RDC)"}),
|
|
|
|
+ 'floor_total': forms.TextInput(
|
|
|
|
+ attrs={'placeholder': "Nb. d'étages du bâtiment"}),
|
|
}
|
|
}
|
|
# Widget rendering is managed by hand in template for orientions.
|
|
# Widget rendering is managed by hand in template for orientions.
|
|
orientations = forms.MultipleChoiceField(choices=ORIENTATIONS)
|
|
orientations = forms.MultipleChoiceField(choices=ORIENTATIONS)
|