feat: Style comment field

This commit is contained in:
2024-05-30 14:39:28 +02:00
parent aebbe0f6c6
commit ae57d90cf3
4 changed files with 42 additions and 14 deletions

View File

@@ -40,7 +40,6 @@ class AdoptionNoticeForm(forms.ModelForm):
fields = ['name', "group_only", "further_information", "description", "searching_since"]
class ImageForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -59,11 +58,19 @@ class ReportForm(forms.ModelForm):
model = Report
fields = ('reported_broken_rules', 'comment')
class CommentForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_class = 'form-comments'
self.helper.add_input(Submit('submit', _('Kommentieren')))
class Meta:
model = Comment
fields = ('text',)
class ModerationActionForm(forms.ModelForm):
class Meta:
model = ModerationAction