Skip to content

Commit

Permalink
holy cow
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWoodward committed Jul 26, 2024
1 parent 8ee3cf9 commit 6f34355
Show file tree
Hide file tree
Showing 3 changed files with 996 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pages/custom_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ class LinksGroupBlock(blocks.StructBlock):
('blue', 'Blue'),
('deep-green', 'Deep Green'),
], default='descending')),
('analytics_label', blocks.CharBlock(required=False)),
], block_counts={
'color': {'max_num': 1},
'analytics_label': {'max_num': 1},
}, required=False)

class Meta:
Expand All @@ -110,12 +112,9 @@ class CTAButtonBarBlock(blocks.StructBlock):
default=[], max_num=2, label='Actions'
)
config = blocks.StreamBlock([
('priority', blocks.ChoiceBlock(choices=[
('descending', 'Descending'),
('equal', 'Equal'),
], default='descending')),
('analytics_label', blocks.CharBlock(required=False)),
], block_counts={
'priority': {'max_num': 1},
'analytics_label': {'max_num': 1},
}, required=False)

class Meta:
Expand Down
Loading

0 comments on commit 6f34355

Please sign in to comment.