X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..5c14b2f1216cf266efd63f4de84e3f83bb99c9ff:/src/suggest/views.py diff --git a/src/suggest/views.py b/src/suggest/views.py index 035074d0a..96e121e39 100644 --- a/src/suggest/views.py +++ b/src/suggest/views.py @@ -1,8 +1,8 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from django.utils.translation import ugettext_lazy as _ +from django.urls import reverse_lazy +from django.utils.translation import gettext_lazy as _ from ajaxable.utils import AjaxableFormView from suggest import forms @@ -10,15 +10,19 @@ from suggest import forms class PublishingSuggestionFormView(AjaxableFormView): form_class = forms.PublishingSuggestForm - title = _('Report a bug or suggestion') + title = _("Didn't find a book? Make a suggestion.") template = "publishing_suggest.html" + submit = _('Send report') success_message = _('Report was sent successfully.') honeypot = True + action = reverse_lazy('suggest_publishing') class SuggestionFormView(AjaxableFormView): form_class = forms.SuggestForm title = _('Report a bug or suggestion') + template = "suggest.html" submit = _('Send report') success_message = _('Report was sent successfully.') honeypot = True + action = reverse_lazy('suggest')