add support for hiding venues from /lokaler

This commit is contained in:
2024-08-09 19:22:36 +02:00
parent b71b509894
commit 344c8745d6
5 changed files with 40 additions and 8 deletions

View File

@ -85,7 +85,11 @@ class VenuePage(WPImportedPageMixin, Page):
body = CommonStreamField
show_as_bookable = models.BooleanField(
default=True, help_text="Skal lokalet dukke i oversikten over lokaler som leies ut?"
default=True, help_text="Skal lokalet vises i oversikten over lokaler som leies ut?"
)
show_in_overview = models.BooleanField(
default=True,
help_text="Skal lokalet vises i oversikten over lokaler på undersiden /lokaler?",
)
floor = models.CharField(
blank=True,
@ -138,6 +142,7 @@ class VenuePage(WPImportedPageMixin, Page):
FieldPanel("floor", heading="Etasje"),
FieldPanel("preposition", heading="Preposisjon"),
FieldPanel("show_as_bookable", heading="Vis på utleieside"),
FieldPanel("show_in_overview", heading="Vis i lokaleoversikt"),
FieldPanel("used_for", heading="Egnet for"),
MultiFieldPanel(
heading="Kapabiliteter",
@ -159,6 +164,7 @@ class VenuePage(WPImportedPageMixin, Page):
GraphQLString("used_for"),
GraphQLString("tech_specs_url"),
GraphQLBoolean("show_as_bookable"),
GraphQLBoolean("show_in_overview"),
GraphQLString("capability_audio"),
GraphQLString("capability_audio_video"),
GraphQLString("capability_bar"),