2020-03-22 18:57:48 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2021-07-03 23:59:48 +00:00
|
|
|
|
2020-03-22 11:46:10 +00:00
|
|
|
from cms.decorators import section_view
|
2020-03-21 17:49:41 +00:00
|
|
|
from cms.forms import ContactForm
|
2021-07-03 23:59:48 +00:00
|
|
|
from cms.views import SectionFormView, SectionView
|
|
|
|
|
2020-03-21 17:49:41 +00:00
|
|
|
|
2020-03-22 11:46:10 +00:00
|
|
|
@section_view
|
|
|
|
class Text(SectionView):
|
2021-07-03 23:59:48 +00:00
|
|
|
verbose_name = _("Text")
|
|
|
|
fields = ["content"]
|
|
|
|
template_name = "text.html"
|
|
|
|
|
2020-03-21 17:49:41 +00:00
|
|
|
|
2020-03-22 11:46:10 +00:00
|
|
|
@section_view
|
|
|
|
class Images(SectionView):
|
2021-07-03 23:59:48 +00:00
|
|
|
verbose_name = _("Image(s)")
|
|
|
|
fields = ["images"]
|
|
|
|
template_name = "images.html"
|
|
|
|
|
2020-03-21 17:49:41 +00:00
|
|
|
|
2020-03-22 11:46:10 +00:00
|
|
|
@section_view
|
|
|
|
class Video(SectionView):
|
2021-07-03 23:59:48 +00:00
|
|
|
verbose_name = _("Video")
|
|
|
|
fields = ["video"]
|
|
|
|
template_name = "video.html"
|
|
|
|
|
2020-03-21 17:49:41 +00:00
|
|
|
|
2020-03-22 11:46:10 +00:00
|
|
|
@section_view
|
|
|
|
class Contact(SectionFormView):
|
2021-07-03 23:59:48 +00:00
|
|
|
verbose_name = _("Contact")
|
2020-03-22 18:57:48 +00:00
|
|
|
fields = []
|
2020-03-21 17:49:41 +00:00
|
|
|
form_class = ContactForm
|
2021-07-03 23:59:48 +00:00
|
|
|
success_url = "/thanks/"
|
|
|
|
template_name = "contact.html"
|