diff --git a/src/fellchensammlung/forms.py b/src/fellchensammlung/forms.py index 84c8668..86b99bb 100644 --- a/src/fellchensammlung/forms.py +++ b/src/fellchensammlung/forms.py @@ -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")) diff --git a/src/fellchensammlung/templates/fellchensammlung/bulma-search.html b/src/fellchensammlung/templates/fellchensammlung/bulma-search.html index 9af2c8f..6650e27 100644 --- a/src/fellchensammlung/templates/fellchensammlung/bulma-search.html +++ b/src/fellchensammlung/templates/fellchensammlung/bulma-search.html @@ -15,20 +15,20 @@ - {{ search_form.as_p }} + {{ search_form }}