From 669d0972b225b3e5f18a541b78f418924705021c Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 20 Apr 2024 08:40:16 +0200 Subject: [PATCH] feat: Use layots --- src/fellchensammlung/forms.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/fellchensammlung/forms.py b/src/fellchensammlung/forms.py index 56fa169..f0b83cd 100644 --- a/src/fellchensammlung/forms.py +++ b/src/fellchensammlung/forms.py @@ -18,7 +18,17 @@ class AdoptionNoticeForm(forms.ModelForm): self.helper.form_class = 'card' self.helper.form_method = 'post' - self.helper.add_input(Submit('submit', _('Submit'))) + self.helper.layout = Layout( + Fieldset( + _('Vermittlungsdetails'), + 'name', + 'group_only', + 'searching_since', + 'description', + 'further_information', + ), + Submit('submit', _('Submit')) + ) class Meta: model = AdoptionNotice