fix: Use card for form

This commit is contained in:
moanos [he/him] 2024-08-04 14:31:23 +02:00
parent 59b391868d
commit 83d8f04af8

View File

@ -68,12 +68,12 @@ class AnimalForm(forms.ModelForm):
adding = False adding = False
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.helper = FormHelper() self.helper = FormHelper()
self.helper.form_class = 'form-animal' self.helper.form_class = 'form-animal card'
if adding: if adding:
self.helper.add_input(Submit('save-and-add-another-animal', _('Speichern und weiteres Tier hinzufügen'))) self.helper.add_input(Submit('save-and-add-another-animal', _('Speichern und weiteres Tier hinzufügen')))
self.helper.add_input(Submit('save-and-finish', _('Speichern und beenden'))) self.helper.add_input(Submit('save-and-finish', _('Speichern und beenden')))
else: else:
self.helper.add_input(Submit('submit', _('Speichern'))) self.helper.add_input(Submit('submit', _('Speichern'), css_class="btn"))
class Meta: class Meta:
model = Animal model = Animal