backdrop change
[wolnelektury.git] / apps / suggest / views.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django.utils.translation import ugettext_lazy as _
6
7 from ajaxable.utils import AjaxableFormView
8 from suggest import forms
9 from suggest.models import Suggestion, PublishingSuggestion
10
11
12 class PublishingSuggestionFormView(AjaxableFormView):
13     form_class = forms.PublishingSuggestForm
14     title = _('Report a bug or suggestion')
15     template = "publishing_suggest.html"
16     success_message = _('Report was sent successfully.')
17
18
19 class SuggestionFormView(AjaxableFormView):
20     form_class = forms.SuggestForm
21     placeholdize = True
22     title = _('Report a bug or suggestion')
23     submit = _('Send report')
24     success_message = _('Report was sent successfully.')