From 83d8f04af89b070a15123e87707404a6ba46a9ce Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 4 Aug 2024 14:31:23 +0200 Subject: [PATCH] fix: Use card for form --- src/fellchensammlung/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/forms.py b/src/fellchensammlung/forms.py index 5c5c836..8d7d183 100644 --- a/src/fellchensammlung/forms.py +++ b/src/fellchensammlung/forms.py @@ -68,12 +68,12 @@ class AnimalForm(forms.ModelForm): adding = False super().__init__(*args, **kwargs) self.helper = FormHelper() - self.helper.form_class = 'form-animal' + self.helper.form_class = 'form-animal card' 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-finish', _('Speichern und beenden'))) else: - self.helper.add_input(Submit('submit', _('Speichern'))) + self.helper.add_input(Submit('submit', _('Speichern'), css_class="btn")) class Meta: model = Animal