Exemplo n.º 1
0
class Shop_PricingcardBlock(blocks.StructBlock):
    shopcard_background = ColorBlock(null=True, blank=False, required=False, help_text="Select background color that contrasts text")
    shopcard_title = blocks.CharBlock(null=True, blank=False, required=False, classname="full title", help_text="Title of pricing card")
    shopcard_description = blocks.RichTextBlock(null=True, blank=False, required=False, help_text="Description of offer", classname="full")
    shopcard_price = blocks.DecimalBlock(null=True, blank=False, required=False, decimal_places=2, help="Price of the offer")
    shopcard_sucessmsg = blocks.RichTextBlock(null=True, blank=False, required=False, help_text="Success message", classname="full")
    shopcard_button = SnippetChooserBlock(Button, null=True, blank=False, required=False, help_text="Button displayed at the pricing-section")
Exemplo n.º 2
0
class _S_LabBlock(blocks.StructBlock):
    lab_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    lab_head = blocks.CharBlock(null=True, blank=False, classname="full title")
    lab_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Display block head if it fits the design context")
    lab_image = ImageChooserBlock(null=True, blank=False)
    lab_lead = blocks.RichTextBlock(
        null=True,
        blank=False,
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
    lab_paragraph = blocks.RichTextBlock(
        null=True,
        blank=False,
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
    lab_button = SnippetChooserBlock(Button,
                                     null=True,
                                     blank=True,
                                     required=False)
class _S_InstagramBlock(blocks.StructBlock):
    instagram_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    instagram_head = blocks.CharBlock(null=True,
                                      blank=False,
                                      classname="full title")
    instagram_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    instagram_captions = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text=
        "Activate to show texts and hashtags of the given Instagram post on the website."
    )
    instagram_urls = blocks.StreamBlock(
        [('instagram', Instagram_PostBlock(null=True, blank=False))],
        null=True,
        blank=False,
        max_num=3)
class _S_AboutBlock(blocks.StructBlock):
    about_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    about_image = ImageChooserBlock(null=True,
                                    blank=False,
                                    help_text="Office-fitting image")
    about_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    about_head = blocks.CharBlock(null=True,
                                  blank=False,
                                  classname="full title",
                                  help_text="Bold header text")
    about_paragraph = blocks.RichTextBlock(
        null=True,
        blank=False,
        help_text="Paragraph about the company",
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
class _S_WhyBlock(blocks.StructBlock):
    why_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    why_head = blocks.CharBlock(null=True,
                                blank=False,
                                classname="full title",
                                help_text="Bold header text")
    why_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    why_collum1 = Why_CollumBlock(null=True,
                                  blank=False,
                                  icon='cogs',
                                  help_text="Left block")
    why_collum2 = Why_CollumBlock(null=True,
                                  blank=False,
                                  icon='cogs',
                                  help_text="Middle block")
    why_collum3 = Why_CollumBlock(null=True,
                                  blank=False,
                                  icon='cogs',
                                  help_text="Right block")
    why_button = SnippetChooserBlock(
        Button,
        null=True,
        blank=True,
        required=False,
        help_text="Button displayed at why-section")
class _S_FeaturesBlock(blocks.StructBlock):
    features_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    features_head = blocks.CharBlock(null=True,
                                     blank=False,
                                     classname="full title",
                                     help_text="Bold header text")
    features_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    features_subhead = blocks.CharBlock(null=True,
                                        blank=False,
                                        classname="full title",
                                        help_text="Smaller subhead text")
    features_displaysubhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    features_button = SnippetChooserBlock(
        Button,
        null=True,
        blank=True,
        required=False,
        help_text="Button displayed at features-block")
    features_features = blocks.StreamBlock(
        [('feature', Features_FeatureBlock(null=True, blank=False))],
        null=True,
        blank=False)
Exemplo n.º 7
0
class _F_InfoBlock(blocks.StructBlock):
    info_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    info_placeholder = blocks.CharBlock(null=True,
                                        blank=False,
                                        classname="full")
class _S_IndividualBlock(blocks.StructBlock):
    individual_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    individual_head = blocks.CharBlock(null=True,
                                       blank=False,
                                       classname="full title",
                                       help_text="Bold header text")
    individual_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    individual_image = ImageChooserBlock(null=True,
                                         blank=False,
                                         help_text="Individual-fitting image")
    individual_paragraph = blocks.RichTextBlock(
        null=True,
        blank=False,
        help_text="Content paragraph",
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
    individual_footer = blocks.CharBlock(null=True,
                                         blank=True,
                                         required=False,
                                         classname="full title",
                                         help_text="Footer text")
    individual_footer_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    individual_button = SnippetChooserBlock(
        Button,
        null=True,
        blank=True,
        required=False,
        help_text="Button displayed at individual-section")
Exemplo n.º 9
0
class _S_ServicesBlock(blocks.StructBlock):
    services_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    services_services = blocks.StreamBlock(
        [('service',
          Services_ServiceBlock(null=True, blank=False, icon='doc-full'))],
        null=True,
        blank=False)
    services_button = SnippetChooserBlock(Button,
                                          null=True,
                                          blank=True,
                                          required=False)
Exemplo n.º 10
0
class _S_ReviewsBlock(blocks.StructBlock):
    reviews_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    reviews_head = blocks.CharBlock(null=True,
                                    blank=False,
                                    classname="full title")
    reviews_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Display block head if it fits the design context")
    reviews_reviews = blocks.StreamBlock(
        [('review', Reviews_ReviewBlock(null=True, blank=False))],
        null=True,
        blank=False)
Exemplo n.º 11
0
class _S_FacebookBlock(blocks.StructBlock):
    facebook_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    facebook_head = blocks.CharBlock(null=True,
                                     blank=False,
                                     classname="full title")
    facebook_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Display block head if it fits the design context")
    facebook_urls = blocks.StreamBlock(
        [('facebook', Facebook_PostBlock(null=True, blank=False))],
        null=True,
        blank=False,
        max_num=3)
Exemplo n.º 12
0
class _S_PricingBlock(blocks.StructBlock):
    pricing_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    pricing_head = blocks.CharBlock(null=True,
                                    blank=False,
                                    classname="full title")
    pricing_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Display block head if it fits the design context")
    pricing_pricingcards = blocks.StreamBlock(
        [('pricingcard', Pricing_PricingcardBlock(null=True, blank=False))],
        null=True,
        blank=False,
        max_num=3)
Exemplo n.º 13
0
class _S_WhyBlock(blocks.StructBlock):
    why_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    why_head = blocks.CharBlock(null=True, blank=False, classname="full title")
    why_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Display block head if it fits the design context")
    why_collum1 = Why_CollumBlock(null=True, blank=False, icon='cogs')
    why_collum2 = Why_CollumBlock(null=True, blank=False, icon='cogs')
    why_collum3 = Why_CollumBlock(null=True, blank=False, icon='cogs')
    why_button = SnippetChooserBlock(Button,
                                     null=True,
                                     blank=True,
                                     required=False)
Exemplo n.º 14
0
class _S_ReviewsBlock(blocks.StructBlock):
    reviews_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    reviews_head = blocks.CharBlock(null=True,
                                    blank=False,
                                    classname="full title",
                                    help_text="Bold header text")
    reviews_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    reviews_reviews = blocks.StreamBlock(
        [('review', Reviews_ReviewBlock(null=True, blank=False))],
        null=True,
        blank=False)
Exemplo n.º 15
0
class _S_PricingBlock(blocks.StructBlock):
    pricing_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    pricing_head = blocks.CharBlock(null=True,
                                    blank=False,
                                    classname="full title",
                                    help_text="Bold header text")
    pricing_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    pricing_pricingcards = blocks.StreamBlock(
        [('pricingcard', Pricing_PricingcardBlock(null=True, blank=False))],
        null=True,
        blank=False,
        max_num=3)
Exemplo n.º 16
0
class _S_FacebookBlock(blocks.StructBlock):
    facebook_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    facebook_head = blocks.CharBlock(null=True,
                                     blank=False,
                                     classname="full title",
                                     help_text="Bold header text")
    facebook_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    facebook_urls = blocks.StreamBlock(
        [('facebook', Facebook_PostBlock(null=True, blank=False))],
        null=True,
        blank=False,
        max_num=3)
Exemplo n.º 17
0
class _S_StepsBlock(blocks.StructBlock):
    steps_use_simple_design = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Use simple design without images")
    steps_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    steps_head = blocks.CharBlock(null=True,
                                  blank=False,
                                  classname="full title",
                                  help_text="Bold header text")
    steps_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    steps_subhead = blocks.CharBlock(null=True,
                                     blank=False,
                                     classname="full title",
                                     help_text="Smaller subhead text")
    steps_displaysubhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    steps_button = SnippetChooserBlock(
        Button,
        null=True,
        blank=True,
        required=False,
        help_text="Button displayed at steps-block")
    steps_steps = blocks.StreamBlock(
        [('step', Steps_StepBlock(null=True, blank=False))],
        null=True,
        blank=False,
        max_num=4)
Exemplo n.º 18
0
class _S_ManifestBlock(blocks.StructBlock):
    manifest_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    manifest_head = blocks.CharBlock(null=True,
                                     blank=False,
                                     classname="full title",
                                     help_text="Bold header text")
    manifest_paragraph = blocks.RichTextBlock(
        null=True,
        blank=False,
        help_text="Manifest paragraph",
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
    manifest_image = ImageChooserBlock(
        null=True, blank=False, help_text="Image fitting manifest-section")
Exemplo n.º 19
0
class _S_MethodBlock(blocks.StructBlock):
    method_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    method_head = blocks.CharBlock(null=True,
                                   blank=False,
                                   classname="full title")
    method_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        required=False,
        help_text="Display block head if it fits the design context")
    method_sphere1 = Method_SphereBlock(null=True, blank=False, icon='cogs')
    method_sphere2 = Method_SphereBlock(null=True, blank=False, icon='cogs')
    method_sphere3 = Method_SphereBlock(null=True, blank=False, icon='cogs')
    method_sphere4 = Method_SphereBlock(null=True, blank=False, icon='cogs')
    method_button = SnippetChooserBlock(Button,
                                        null=True,
                                        blank=True,
                                        required=False)
Exemplo n.º 20
0
class Pricing_PricingcardBlock(blocks.StructBlock):
    pricingcard_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    pricingcard_title = blocks.CharBlock(null=True,
                                         blank=False,
                                         classname="full title",
                                         help_text="Title of pricing card")
    pricingcard_description = blocks.RichTextBlock(
        null=True,
        blank=False,
        help_text="Description of offer",
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
    pricingcard_price = blocks.DecimalBlock(null=True,
                                            blank=False,
                                            decimal_places=2,
                                            help="Price of the offer")
    pricingcard_sucessmsg = blocks.RichTextBlock(
        null=True,
        blank=False,
        help_text="Success message",
        features=[
            'bold', 'italic', 'underline', 'strikethrough', 'h1', 'h2', 'h3',
            'h4', 'h5', 'h6', 'blockquote', 'ol', 'ul', 'hr', 'embed', 'link',
            'superscript', 'subscript', 'document-link', 'image', 'code'
        ],
        classname="full")
    pricingcard_button = SnippetChooserBlock(
        Button,
        null=True,
        blank=True,
        required=False,
        help_text="Button displayed at the pricing-section")
Exemplo n.º 21
0
class _S_MethodBlock(blocks.StructBlock):
    method_background = ColorBlock(
        null=True,
        blank=False,
        help_text="Select background color that contrasts text")
    method_head = blocks.CharBlock(null=True,
                                   blank=False,
                                   classname="full title",
                                   help_text="Bold header text")
    method_displayhead = blocks.BooleanBlock(
        null=True,
        blank=True,
        default=True,
        required=False,
        help_text="Whether or not to display the header")
    method_sphere1 = Method_SphereBlock(null=True,
                                        blank=False,
                                        icon='cogs',
                                        help_text="Top sphere")
    method_sphere2 = Method_SphereBlock(null=True,
                                        blank=False,
                                        icon='cogs',
                                        help_text="Left sphere")
    method_sphere3 = Method_SphereBlock(null=True,
                                        blank=False,
                                        icon='cogs',
                                        help_text="Right sphere")
    method_sphere4 = Method_SphereBlock(null=True,
                                        blank=False,
                                        icon='cogs',
                                        help_text="Bottom sphere")
    method_button = SnippetChooserBlock(
        Button,
        null=True,
        blank=True,
        required=False,
        help_text="Button displayed at method-section")