from __future__ import unicode_literals

from django.db import models
from django.db.models.fields import TextField, URLField

from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.fields import RichTextField
from wagtail.wagtailadmin.edit_handlers import FieldPanel

from wagtail.wagtailimages.edit_handlers import ImageChooserPanel


class HomePage(Page):
    banner = RichTextField(
        blank=True,
        help_text="Banner at the top of every page"
    )
    header = RichTextField(
        blank=True,
        help_text="Hero title"
    )
    body = RichTextField(
        blank=True,
        help_text="Description of page"
    )
    filter_label_1 = TextField(
        blank=True,
        help_text="Label/Question for first set of filters"
    )
    filter_label_2 = TextField(
        blank=True,
        help_text="Label/Question for second set of filters"
    )
    filter_label_3 = TextField(
        blank=True,
        help_text="Label/Question for third set of filters"
    )
    assessment_text = RichTextField(
        blank=True,
        help_text="Label for sleep assessment link"
    )
    crisis_text = RichTextField(
        blank=True,
        help_text="Label for sleep crisis page link"
    )
    lookingfor = RichTextField(
        blank=True,
        help_text="Information on how to leave suggestions "
        + "and what the suggestions are for"
    )
    alpha = RichTextField(
        blank=True,
        help_text="What is Alpha"
    )
    alphatext = RichTextField(
        blank=True,
        help_text="Why to take part in the alpha"
    )
    footer = RichTextField(
        blank=True,
        help_text="Footer text"
    )
    hero_image = models.ForeignKey(
        'wagtailimages.Image',
        null=True,
        blank=True,
        on_delete=models.SET_NULL,
        related_name='+',
        help_text="Max file size: 10MB. "
        + "Choose from: GIF, JPEG, PNG (but pick PNG if you have the choice)"
    )
    video_url = URLField(
        blank=True,
        help_text="URL of an introductiary youtube video"
    )

    content_panels = Page.content_panels + [
        FieldPanel('banner', classname="full"),
        ImageChooserPanel('hero_image'),
        FieldPanel('header', classname="full"),
        FieldPanel('body', classname="full"),
        FieldPanel('video_url', classname="full"),
        FieldPanel('filter_label_1', classname="full"),
        FieldPanel('filter_label_2', classname="full"),
        FieldPanel('filter_label_3', classname="full"),
        FieldPanel('assessment_text', classname="full"),
        FieldPanel('crisis_text', classname="full"),
        FieldPanel('lookingfor', classname="full"),
        FieldPanel('alpha', classname="full"),
        FieldPanel('alphatext', classname="full"),
        FieldPanel('footer', classname="full"),
    ]

b34cb941a820a180f262aaf58c4f9708d8061371
<mask token>

<mask token>


class HomePage(Page):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class HomePage(Page):
    banner = RichTextField(blank=True, help_text=
        'Banner at the top of every page')
    header = RichTextField(blank=True, help_text='Hero title')
    body = RichTextField(blank=True, help_text='Description of page')
    filter_label_1 = TextField(blank=True, help_text=
        'Label/Question for first set of filters')
    filter_label_2 = TextField(blank=True, help_text=
        'Label/Question for second set of filters')
    filter_label_3 = TextField(blank=True, help_text=
        'Label/Question for third set of filters')
    assessment_text = RichTextField(blank=True, help_text=
        'Label for sleep assessment link')
    crisis_text = RichTextField(blank=True, help_text=
        'Label for sleep crisis page link')
    lookingfor = RichTextField(blank=True, help_text=
        'Information on how to leave suggestions ' +
        'and what the suggestions are for')
    alpha = RichTextField(blank=True, help_text='What is Alpha')
    alphatext = RichTextField(blank=True, help_text=
        'Why to take part in the alpha')
    footer = RichTextField(blank=True, help_text='Footer text')
    hero_image = models.ForeignKey('wagtailimages.Image', null=True, blank=
        True, on_delete=models.SET_NULL, related_name='+', help_text=
        'Max file size: 10MB. ' +
        'Choose from: GIF, JPEG, PNG (but pick PNG if you have the choice)')
    video_url = URLField(blank=True, help_text=
        'URL of an introductiary youtube video')
    content_panels = Page.content_panels + [FieldPanel('banner', classname=
        'full'), ImageChooserPanel('hero_image'), FieldPanel('header',
        classname='full'), FieldPanel('body', classname='full'), FieldPanel
        ('video_url', classname='full'), FieldPanel('filter_label_1',
        classname='full'), FieldPanel('filter_label_2', classname='full'),
        FieldPanel('filter_label_3', classname='full'), FieldPanel(
        'assessment_text', classname='full'), FieldPanel('crisis_text',
        classname='full'), FieldPanel('lookingfor', classname='full'),
        FieldPanel('alpha', classname='full'), FieldPanel('alphatext',
        classname='full'), FieldPanel('footer', classname='full')]

from __future__ import unicode_literals
from django.db import models
from django.db.models.fields import TextField, URLField
from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.fields import RichTextField
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel


class HomePage(Page):
    banner = RichTextField(blank=True, help_text=
        'Banner at the top of every page')
    header = RichTextField(blank=True, help_text='Hero title')
    body = RichTextField(blank=True, help_text='Description of page')
    filter_label_1 = TextField(blank=True, help_text=
        'Label/Question for first set of filters')
    filter_label_2 = TextField(blank=True, help_text=
        'Label/Question for second set of filters')
    filter_label_3 = TextField(blank=True, help_text=
        'Label/Question for third set of filters')
    assessment_text = RichTextField(blank=True, help_text=
        'Label for sleep assessment link')
    crisis_text = RichTextField(blank=True, help_text=
        'Label for sleep crisis page link')
    lookingfor = RichTextField(blank=True, help_text=
        'Information on how to leave suggestions ' +
        'and what the suggestions are for')
    alpha = RichTextField(blank=True, help_text='What is Alpha')
    alphatext = RichTextField(blank=True, help_text=
        'Why to take part in the alpha')
    footer = RichTextField(blank=True, help_text='Footer text')
    hero_image = models.ForeignKey('wagtailimages.Image', null=True, blank=
        True, on_delete=models.SET_NULL, related_name='+', help_text=
        'Max file size: 10MB. ' +
        'Choose from: GIF, JPEG, PNG (but pick PNG if you have the choice)')
    video_url = URLField(blank=True, help_text=
        'URL of an introductiary youtube video')
    content_panels = Page.content_panels + [FieldPanel('banner', classname=
        'full'), ImageChooserPanel('hero_image'), FieldPanel('header',
        classname='full'), FieldPanel('body', classname='full'), FieldPanel
        ('video_url', classname='full'), FieldPanel('filter_label_1',
        classname='full'), FieldPanel('filter_label_2', classname='full'),
        FieldPanel('filter_label_3', classname='full'), FieldPanel(
        'assessment_text', classname='full'), FieldPanel('crisis_text',
        classname='full'), FieldPanel('lookingfor', classname='full'),
        FieldPanel('alpha', classname='full'), FieldPanel('alphatext',
        classname='full'), FieldPanel('footer', classname='full')]

from __future__ import unicode_literals

from django.db import models
from django.db.models.fields import TextField, URLField

from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.fields import RichTextField
from wagtail.wagtailadmin.edit_handlers import FieldPanel

from wagtail.wagtailimages.edit_handlers import ImageChooserPanel


class HomePage(Page):
    banner = RichTextField(
        blank=True,
        help_text="Banner at the top of every page"
    )
    header = RichTextField(
        blank=True,
        help_text="Hero title"
    )
    body = RichTextField(
        blank=True,
        help_text="Description of page"
    )
    filter_label_1 = TextField(
        blank=True,
        help_text="Label/Question for first set of filters"
    )
    filter_label_2 = TextField(
        blank=True,
        help_text="Label/Question for second set of filters"
    )
    filter_label_3 = TextField(
        blank=True,
        help_text="Label/Question for third set of filters"
    )
    assessment_text = RichTextField(
        blank=True,
        help_text="Label for sleep assessment link"
    )
    crisis_text = RichTextField(
        blank=True,
        help_text="Label for sleep crisis page link"
    )
    lookingfor = RichTextField(
        blank=True,
        help_text="Information on how to leave suggestions "
        + "and what the suggestions are for"
    )
    alpha = RichTextField(
        blank=True,
        help_text="What is Alpha"
    )
    alphatext = RichTextField(
        blank=True,
        help_text="Why to take part in the alpha"
    )
    footer = RichTextField(
        blank=True,
        help_text="Footer text"
    )
    hero_image = models.ForeignKey(
        'wagtailimages.Image',
        null=True,
        blank=True,
        on_delete=models.SET_NULL,
        related_name='+',
        help_text="Max file size: 10MB. "
        + "Choose from: GIF, JPEG, PNG (but pick PNG if you have the choice)"
    )
    video_url = URLField(
        blank=True,
        help_text="URL of an introductiary youtube video"
    )

    content_panels = Page.content_panels + [
        FieldPanel('banner', classname="full"),
        ImageChooserPanel('hero_image'),
        FieldPanel('header', classname="full"),
        FieldPanel('body', classname="full"),
        FieldPanel('video_url', classname="full"),
        FieldPanel('filter_label_1', classname="full"),
        FieldPanel('filter_label_2', classname="full"),
        FieldPanel('filter_label_3', classname="full"),
        FieldPanel('assessment_text', classname="full"),
        FieldPanel('crisis_text', classname="full"),
        FieldPanel('lookingfor', classname="full"),
        FieldPanel('alpha', classname="full"),
        FieldPanel('alphatext', classname="full"),
        FieldPanel('footer', classname="full"),
    ]
