fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quotes in API
[wolnelektury.git]
/
src
/
suggest
/
views.py
diff --git
a/src/suggest/views.py
b/src/suggest/views.py
index
035074d
..
706c549
100644
(file)
--- a/
src/suggest/views.py
+++ b/
src/suggest/views.py
@@
-2,6
+2,7
@@
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
+from django.core.urlresolvers import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from ajaxable.utils import AjaxableFormView
from django.utils.translation import ugettext_lazy as _
from ajaxable.utils import AjaxableFormView
@@
-10,15
+11,19
@@
from suggest import forms
class PublishingSuggestionFormView(AjaxableFormView):
form_class = forms.PublishingSuggestForm
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"
template = "publishing_suggest.html"
+ submit = _('Send report')
success_message = _('Report was sent successfully.')
honeypot = True
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')
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
submit = _('Send report')
success_message = _('Report was sent successfully.')
honeypot = True
+ action = reverse_lazy('suggest')