Skip to content
Snippets Groups Projects
Commit c1fc33d7 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

don't require whole block URL for program points, add article page to allowed card link types

parent f76d3f5b
No related branches found
No related tags found
2 merge requests!682don't require whole block URL for program points, add article page to allowed card link types,!681Don't require whole block URL for program points, add article page to allowed card link types
Pipeline #10837 passed
...@@ -112,7 +112,10 @@ class PeopleOverviewBlock(StructBlock): ...@@ -112,7 +112,10 @@ class PeopleOverviewBlock(StructBlock):
class ProgramBlock(StructBlock): class ProgramBlock(StructBlock):
url = URLBlock(label="Odkaz pokrývající celou tuto část") url = URLBlock(
label="Odkaz pokrývající celou tuto část",
required=False,
)
icon = ImageChooserBlock(label="Ikona") icon = ImageChooserBlock(label="Ikona")
title = CharBlock(label="Titulek článku programu") title = CharBlock(label="Titulek článku programu")
text = RichTextBlock(label="Obsah") text = RichTextBlock(label="Obsah")
...@@ -268,6 +271,7 @@ class CardLinkBlock(CardLinkBlockMixin): ...@@ -268,6 +271,7 @@ class CardLinkBlock(CardLinkBlockMixin):
label="Stránka", label="Stránka",
page_type=[ page_type=[
"main.MainArticlesPage", "main.MainArticlesPage",
"main.MainArticlePage",
"main.MainProgramPage", "main.MainProgramPage",
"main.MainPeoplePage", "main.MainPeoplePage",
"main.MainPersonPage", "main.MainPersonPage",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment