feat: Add custom form rendering to support bulma

This commit is contained in:
2025-05-09 18:02:58 +02:00
parent 4a3cbfb8b0
commit 5f576896b7
5 changed files with 46 additions and 5 deletions

View File

@@ -193,6 +193,8 @@ class CustomRegistrationForm(RegistrationForm):
class AdoptionNoticeSearchForm(forms.Form):
template_name = "fellchensammlung/forms/form_snippets.html"
sex = forms.ChoiceField(choices=SexChoicesWithAll, label=_("Geschlecht"), required=False,
initial=SexChoicesWithAll.ALL)
max_distance = forms.ChoiceField(choices=DistanceChoices, initial=DistanceChoices.ONE_HUNDRED, label=_("Suchradius"))