1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.urls import reverse_lazy
5 from django.utils.translation import ugettext_lazy as _
7 from ajaxable.utils import AjaxableFormView
8 from suggest import forms
11 class PublishingSuggestionFormView(AjaxableFormView):
12 form_class = forms.PublishingSuggestForm
13 title = _("Didn't find a book? Make a suggestion.")
14 template = "publishing_suggest.html"
15 submit = _('Send report')
16 success_message = _('Report was sent successfully.')
18 action = reverse_lazy('suggest_publishing')
21 class SuggestionFormView(AjaxableFormView):
22 form_class = forms.SuggestForm
23 title = _('Report a bug or suggestion')
24 template = "suggest.html"
25 submit = _('Send report')
26 success_message = _('Report was sent successfully.')
28 action = reverse_lazy('suggest')