diff --git a/src/fellchensammlung/forms.py b/src/fellchensammlung/forms.py index f0a406d..922ebe7 100644 --- a/src/fellchensammlung/forms.py +++ b/src/fellchensammlung/forms.py @@ -34,7 +34,6 @@ class AdoptionNoticeForm(forms.ModelForm): } - class AdoptionNoticeFormAutoAnimal(AdoptionNoticeForm): def __init__(self, *args, **kwargs): super(AdoptionNoticeFormAutoAnimal, self).__init__(*args, **kwargs) @@ -46,7 +45,6 @@ class AdoptionNoticeFormAutoAnimal(AdoptionNoticeForm): self.fields["date_of_birth"].widget = DateInput(format=('%Y-%m-%d')) - class AnimalForm(forms.ModelForm): template_name = "fellchensammlung/forms/form_snippets.html" @@ -93,6 +91,7 @@ class ImageForm(forms.ModelForm): class ReportAdoptionNoticeForm(forms.ModelForm): template_name = "fellchensammlung/forms/form_snippets.html" + class Meta: model = ReportAdoptionNotice fields = ('reported_broken_rules', 'user_comment') @@ -100,6 +99,7 @@ class ReportAdoptionNoticeForm(forms.ModelForm): class ReportCommentForm(forms.ModelForm): template_name = "fellchensammlung/forms/form_snippets.html" + class Meta: model = ReportComment fields = ('reported_broken_rules', 'user_comment') diff --git a/src/fellchensammlung/templates/fellchensammlung/forms/form_add_animal_to_adoption.html b/src/fellchensammlung/templates/fellchensammlung/forms/form_add_animal_to_adoption.html index bbb201a..ce4f79b 100644 --- a/src/fellchensammlung/templates/fellchensammlung/forms/form_add_animal_to_adoption.html +++ b/src/fellchensammlung/templates/fellchensammlung/forms/form_add_animal_to_adoption.html @@ -1,13 +1,17 @@ -{% extends "fellchensammlung/base_generic.html" %} +{% extends "fellchensammlung/base_bulma.html" %} {% load i18n %} -{% load crispy_forms_tags %} {% block content %} -