Skip to content

Commit

Permalink
Move Contact block and add new Catalog page type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Nov 20, 2024
1 parent bc31ce0 commit c6db7ca
Show file tree
Hide file tree
Showing 6 changed files with 9,579 additions and 15 deletions.
16 changes: 1 addition & 15 deletions blog/blocks.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
from django.utils.translation import gettext_lazy as _
from wagtail import blocks
from wagtail.images.blocks import ImageChooserBlock

from content_manager.blocks import ImageAndTextBlock, MultiColumnsWithTitleBlock, QuoteBlock


class ContactCardBlock(blocks.StructBlock):
name = blocks.CharBlock(label=_("Name"), max_length=255)
role = blocks.CharBlock(label=_("Role"), max_length=255)
organization = blocks.CharBlock(label=_("Organization"), max_length=255)
contact_info = blocks.CharBlock(label=_("Contact info"), max_length=500, required=False)
image = ImageChooserBlock(label="Image")

class Meta:
icon = "user"
template = ("blog/blocks/contact_card.html",)

from content_manager.blocks import ContactCardBlock, ImageAndTextBlock, MultiColumnsWithTitleBlock, QuoteBlock

COLOPHON_BLOCKS = [
("paragraph", blocks.RichTextBlock(label=_("Rich text"))),
Expand Down
Loading

0 comments on commit c6db7ca

Please sign in to comment.