feat: Use layots
This commit is contained in:
parent
c103419193
commit
669d0972b2
@ -18,7 +18,17 @@ class AdoptionNoticeForm(forms.ModelForm):
|
|||||||
self.helper.form_class = 'card'
|
self.helper.form_class = 'card'
|
||||||
self.helper.form_method = 'post'
|
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:
|
class Meta:
|
||||||
model = AdoptionNotice
|
model = AdoptionNotice
|
||||||
|
Loading…
Reference in New Issue
Block a user