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("teaser"),
FieldPanel("intro"),
InlinePanel(
"assignments",
label=_("Assignment"),
classname="collapsed",
heading=_("linked assignments"),
help_text=_(
"These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here."
)
% _("assignments"),
),
InlinePanel(
"surveys",
heading=_("linked surveys"),
label=_("Survey"),
classname="collapsed",
help_text=_(
"These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here."
)
% _("surveys"),
),
# InlinePanel(
# "assignments",
# label=_("Assignment"),
# classname="collapsed",
# heading=_("linked assignments"),
# help_text=_(
# "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here."
# )
# % _("assignments"),
# ),
# InlinePanel(
# "surveys",
# heading=_("linked surveys"),
# label=_("Survey"),
# classname="collapsed",
# help_text=_(
# "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here."
# )
# % _("surveys"),
# ),
]
edit_handler = TabbedInterface(