feat: Allow (un)subscribing without commenting

This commit is contained in:
2024-09-29 23:35:54 +02:00
parent a28b6ce4b3
commit 022bf577d4
3 changed files with 55 additions and 22 deletions

View File

@@ -142,6 +142,7 @@ class CommentForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_action = "comment"
self.helper.form_class = 'form-comments'
self.helper.add_input(Submit('submit', _('Kommentieren'), css_class="btn2"))