Disable inline panels to prevent unintended deletions

This commit is contained in:
Ramon Wenger 2023-05-01 16:21:30 +02:00
parent 2eaea595e1
commit db1357fa24
1 changed files with 20 additions and 20 deletions

View File

@ -38,26 +38,26 @@ class Module(StrictHierarchyPage):
FieldPanel("hero_source"), FieldPanel("hero_source"),
FieldPanel("teaser"), FieldPanel("teaser"),
FieldPanel("intro"), FieldPanel("intro"),
InlinePanel( # InlinePanel(
"assignments", # "assignments",
label=_("Assignment"), # label=_("Assignment"),
classname="collapsed", # classname="collapsed",
heading=_("linked assignments"), # heading=_("linked assignments"),
help_text=_( # help_text=_(
"These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here." # "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here."
) # )
% _("assignments"), # % _("assignments"),
), # ),
InlinePanel( # InlinePanel(
"surveys", # "surveys",
heading=_("linked surveys"), # heading=_("linked surveys"),
label=_("Survey"), # label=_("Survey"),
classname="collapsed", # classname="collapsed",
help_text=_( # help_text=_(
"These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here." # "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here."
) # )
% _("surveys"), # % _("surveys"),
), # ),
] ]
edit_handler = TabbedInterface( edit_handler = TabbedInterface(