2024-09-10 20:21:33 +02:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
from wagtail.models import Page
|
|
|
|
|
from wagtail.fields import RichTextField
|
|
|
|
|
from wagtail.admin.panels import FieldPanel, MultiFieldPanel
|
|
|
|
|
|
2024-09-11 23:05:33 +02:00
|
|
|
from saburly.custom_editor import FULL_EDITOR
|
|
|
|
|
|
2024-09-10 20:21:33 +02:00
|
|
|
class AboutPage(Page):
|
|
|
|
|
|
2024-09-16 20:16:16 +02:00
|
|
|
intro_title = RichTextField(blank=True, features=FULL_EDITOR)
|
|
|
|
|
intro_text = RichTextField(blank=True, features=FULL_EDITOR)
|
|
|
|
|
intro_image = RichTextField(blank=True, features=FULL_EDITOR)
|
|
|
|
|
|
2024-09-11 23:05:33 +02:00
|
|
|
section_one_title = RichTextField(blank=True, features=FULL_EDITOR)
|
|
|
|
|
section_one_text = RichTextField(blank=True, features=FULL_EDITOR)
|
2024-09-16 20:16:16 +02:00
|
|
|
section_one_image = RichTextField(blank=True, features=FULL_EDITOR)
|
2024-09-10 20:21:33 +02:00
|
|
|
|
|
|
|
|
content_panels = Page.content_panels + [
|
2024-09-16 20:16:16 +02:00
|
|
|
MultiFieldPanel([
|
|
|
|
|
FieldPanel('intro_title', classname="full"),
|
|
|
|
|
FieldPanel('intro_text', classname="full"),
|
|
|
|
|
FieldPanel('intro_image', classname="full"),
|
|
|
|
|
], heading="Intro"),
|
|
|
|
|
|
2024-09-10 20:21:33 +02:00
|
|
|
MultiFieldPanel([
|
|
|
|
|
FieldPanel('section_one_title', classname="full"),
|
|
|
|
|
FieldPanel('section_one_text', classname="full"),
|
2024-09-16 20:16:16 +02:00
|
|
|
FieldPanel('section_one_image', classname="full"),
|
2024-09-10 20:21:33 +02:00
|
|
|
], heading="Section One"),
|
|
|
|
|
]
|
|
|
|
|
|