Marc Jauvin 864816f7f2 Make CMS object code editor read-only in safe mode (#4769)
Adds a dismissable message to the CMS object code editor indicating that the PHP code section of a CMS object cannot be edited when `cms.enableSafeMode` is `true` (or when debugging is disabled if `null`).

Credit to @mjauvin.
2019-12-09 21:05:50 +08:00

46 lines
968 B
YAML

# ===================================
# Form Field Definitions
# ===================================
fields:
fileName:
span: left
label: cms::lang.editor.filename
attributes:
default-focus: 1
settings[description]:
span: right
label: cms::lang.editor.description
toolbar:
type: partial
path: partial_toolbar
cssClass: collapse-visible
components: Cms\FormWidgets\Components
tabs:
cssClass: master-area
secondaryTabs:
stretch: true
fields:
markup:
tab: cms::lang.editor.markup
stretch: true
type: codeeditor
language: twig
safemode_notice:
tab: cms::lang.editor.code
type: partial
hidden: true
cssClass: p-b-0
code:
tab: cms::lang.editor.code
stretch: true
type: codeeditor
language: php