-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d01ed71
commit 0f21478
Showing
4 changed files
with
561 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from django.conf import settings | ||
|
||
from wagtail import blocks | ||
|
||
from .paragraph import APIRichTextBlock | ||
|
||
|
||
class ContactBlock(blocks.StructBlock): | ||
title = blocks.CharBlock() | ||
address = blocks.TextBlock( | ||
required=False, features=settings.INLINE_RICH_TEXT_FEATURES | ||
) | ||
telephone = blocks.CharBlock(required=False) | ||
chat_link = blocks.URLBlock(required=False) | ||
chat_note = APIRichTextBlock(required=False) | ||
email = blocks.EmailBlock(required=False) | ||
website_link = blocks.URLBlock(required=False) | ||
social_media = APIRichTextBlock( | ||
required=False, features=settings.INLINE_RICH_TEXT_FEATURES | ||
) | ||
|
||
class Meta: | ||
icon = "mail" | ||
label = "Contact" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.