feat: Use layots

This commit is contained in:
moanos [he/him] 2024-04-20 08:40:16 +02:00
parent c103419193
commit 669d0972b2

View File

@ -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