feat(cabana): code editor, colour and mail image fields, mail branding and the image library

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 12:53:09 +01:00
parent b996a8fc83
commit 4fd2ed07eb
34 changed files with 1691 additions and 41 deletions

View File

@@ -0,0 +1,3 @@
name: backend::lang.mail.images.menu_label
modelClass: System\Models\MailImageLibrary
form: models/mailimagelibrary/fields.yaml

View File

@@ -0,0 +1,71 @@
fields:
logo_file_id:
label: backend::lang.mail.brand.logo
comment: backend::lang.mail.brand.logo_comment
type: mailimage
span: full
body_bg:
label: backend::lang.mail.brand.body_bg
type: colorpicker
span: left
default: "#f5f8fa"
content_bg:
label: backend::lang.mail.brand.content_bg
type: colorpicker
span: right
default: "#ffffff"
header_color:
label: backend::lang.mail.brand.header_color
type: colorpicker
span: left
default: "#bbbfc3"
footer_color:
label: backend::lang.mail.brand.footer_color
type: colorpicker
span: right
default: "#aeaeae"
heading_color:
label: backend::lang.mail.brand.heading_color
type: colorpicker
span: left
default: "#2f3133"
text_color:
label: backend::lang.mail.brand.text_color
type: colorpicker
span: right
default: "#74787e"
link_color:
label: backend::lang.mail.brand.link_color
type: colorpicker
span: left
default: "#2da7c7"
button_text_color:
label: backend::lang.mail.brand.button_text_color
type: colorpicker
span: right
default: "#ffffff"
button_primary_bg:
label: backend::lang.mail.brand.button_primary_bg
type: colorpicker
span: left
default: "#d66829"
button_positive_bg:
label: backend::lang.mail.brand.button_positive_bg
type: colorpicker
span: right
default: "#52a838"
button_negative_bg:
label: backend::lang.mail.brand.button_negative_bg
type: colorpicker
span: left
default: "#e01346"
panel_bg:
label: backend::lang.mail.brand.panel_bg
type: colorpicker
span: right
default: "#edeff2"
table_border_color:
label: backend::lang.mail.brand.table_border_color
type: colorpicker
span: left
default: "#edeff2"

View File

@@ -0,0 +1,10 @@
fields:
images:
label: backend::lang.mail.images.field
comment: backend::lang.mail.images.field_comment
type: fileupload
mode: image
useCaption: true
fileTypes: jpg,jpeg,png,gif,webp
maxFilesize: 5
span: full

View File

@@ -25,22 +25,27 @@ fields:
content_html:
label: backend::lang.mail.layout.html
comment: backend::lang.mail.layout.html_comment
type: textarea
type: codeeditor
language: html
size: giant
mailImages: true
span: full
tab: backend::lang.mail.layout.tab_html
content_text:
label: backend::lang.mail.layout.text
comment: backend::lang.mail.layout.text_comment
type: textarea
type: codeeditor
language: text
size: huge
span: full
tab: backend::lang.mail.layout.tab_text
content_css:
label: backend::lang.mail.layout.css
comment: backend::lang.mail.layout.css_comment
type: textarea
type: codeeditor
language: css
size: huge
mailImages: true
span: full
tab: backend::lang.mail.layout.tab_css
_file_version:

View File

@@ -7,14 +7,17 @@ fields:
content_html:
label: backend::lang.mail.partial.html
comment: backend::lang.mail.partial.html_comment
type: textarea
type: codeeditor
language: html
size: huge
mailImages: true
span: full
tab: backend::lang.mail.partial.tab_html
content_text:
label: backend::lang.mail.partial.text
comment: backend::lang.mail.partial.text_comment
type: textarea
type: codeeditor
language: text
size: large
span: full
tab: backend::lang.mail.partial.tab_text

View File

@@ -24,6 +24,7 @@ fields:
comment: backend::lang.mail.template.body_comment
type: markdown
size: giant
mailImages: true
span: full
tab: backend::lang.mail.template.tab_template
_file_version: