Example #1
0
page_link_blocks = [
    ("link", LinkBlock()),
]

content_blocks = [
    ("rich_text", blocks.RichTextBlock(group=" Content")),
    ("block_quote", blocks.BlockQuoteBlock(group=" Content")),
    ("embed", EmbedBlock(group=" Content")),
    ("captioned_embed", CaptionedEmbedBlock(group=" Content")),
    ("html_anchor", HTMLAnchorBlock(group=" Content")),
]

deprecated_blocks = [
    ("grey_panel", GreyPanelBlock(group="Deprecated")),
    ("panel", PanelBlock(group="Deprecated")),
    ("panel_list", PanelListBlock(group="Deprecated")),
    ("promo", PromoBlock(group="Deprecated")),
    ("promo_group", PromoGroupBlock(group="Deprecated")),
]

v5_blocks = [
    ("care_card", CareCardBlock(group=" NHS Components")),
    ("expander_group", ExpanderGroupBlock(group=" NHS Components")),
    ("details", DetailsBlock(group=" NHS Components")),
    ("card_group", CardGroupBlock(group=" NHS Components")),
    ("card_feature", CardFeatureBlock(group=" NHS Components")),
    ("card_image", CardImageBlock(group=" NHS Components")),
    ("card_clickable", CardClickableBlock(group=" NHS Components")),
    ("card_basic", CardBasicBlock(group=" NHS Components")),
    ("summary_list", SummaryListBlock(group=" NHS Components")),
Example #2
0
]

page_link_blocks = [
    ("link", LinkBlock()),
]

content_blocks = [
    ("rich_text", blocks.RichTextBlock(group=" Content")),
    ("block_quote", blocks.BlockQuoteBlock(group=" Content")),
    ("embed", EmbedBlock(group=" Content")),
    ("captioned_embed", CaptionedEmbedBlock(group=" Content")),
]

nhs_blocks = [
    ("image", ImageBlock(group=" NHS Components")),
    ("panel", PanelBlock(group=" NHS Components")),
    ("promo", PromoBlock(group=" NHS Components")),
    ("expander", NHSXExpanderBlock(group=" NHS Components")),
    ("grey_panel", GreyPanelBlock(group=" NHS Components")),
    ("inset_text", InsetTextBlock(group=" NHS Components")),
    ("panel_list", PanelListBlock(group=" NHS Components")),
    ("promo_group", PromoGroupBlock(group=" NHS Components")),
    ("warning_callout", WarningCalloutBlock(group=" NHS Components")),
    ("table", TableBlock(group=" NHS Components")),
    ("panel_table", PanelTableBlock(group=" NHS Components")),
    ("action_link", ActionLinkBlock(group=" NHS Components")),
    ("legal_information", LegalInformationBlock(group=" NHS Components")),
]

nhsx_blocks = content_blocks + nhs_blocks
Example #3
0
                             page_type="news.News")),
]

page_link_blocks = [
    ('link', LinkBlock()),
]

content_blocks = [
    ('rich_text', blocks.RichTextBlock(group=" Content")),
    ('block_quote', blocks.BlockQuoteBlock(group=" Content")),
    ('embed', EmbedBlock(group=" Content")),
    ('captioned_embed', CaptionedEmbedBlock(group=" Content")),
]

nhs_blocks = [
    ('image', ImageBlock(group=" NHS Components")),
    ('panel', PanelBlock(group=" NHS Components")),
    ('promo', PromoBlock(group=" NHS Components")),
    ('expander', NHSXExpanderBlock(group=" NHS Components")),
    ('grey_panel', GreyPanelBlock(group=" NHS Components")),
    ('inset_text', InsetTextBlock(group=" NHS Components")),
    ('panel_list', PanelListBlock(group=" NHS Components")),
    ('promo_group', PromoGroupBlock(group=" NHS Components")),
    ('warning_callout', WarningCalloutBlock(group=" NHS Components")),
    ('table', TableBlock(group=" NHS Components")),
    ('panel_table', PanelTableBlock(group=" NHS Components")),
    ('action_link', ActionLinkBlock(group=" NHS Components")),
]

nhsx_blocks = content_blocks + nhs_blocks