feat(cabana): mail layouts and partials screens with reset, drift and custom layouts
- Layouts and partials controllers with catalog scoping, reset action and File version diff - Custom layout create/delete with in-use refusal; meta.deletable and customized/outdated row states - List schema golden fixtures updated for the two new row-state message keys Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
17
modules/cabana/backendscreens/models/maillayout/columns.yaml
Normal file
17
modules/cabana/backendscreens/models/maillayout/columns.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
columns:
|
||||
name:
|
||||
label: backend::lang.mail.name_field
|
||||
searchable: true
|
||||
sortable: true
|
||||
code:
|
||||
label: backend::lang.mail.code
|
||||
searchable: true
|
||||
sortable: true
|
||||
source:
|
||||
label: backend::lang.mail.source
|
||||
sortable: true
|
||||
customized_at:
|
||||
label: backend::lang.mail.customized_at
|
||||
type: datetime
|
||||
invisible: true
|
||||
sortable: true
|
||||
51
modules/cabana/backendscreens/models/maillayout/fields.yaml
Normal file
51
modules/cabana/backendscreens/models/maillayout/fields.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
fields:
|
||||
_info:
|
||||
type: partial
|
||||
path: info
|
||||
span: full
|
||||
context: update
|
||||
tab: backend::lang.mail.layout.tab_html
|
||||
name:
|
||||
label: backend::lang.mail.name_field
|
||||
type: text
|
||||
span: left
|
||||
required: true
|
||||
tab: backend::lang.mail.layout.tab_html
|
||||
code:
|
||||
label: backend::lang.mail.code
|
||||
comment: backend::lang.mail.layout.code_comment
|
||||
type: text
|
||||
span: right
|
||||
required: true
|
||||
context: create
|
||||
tab: backend::lang.mail.layout.tab_html
|
||||
preset:
|
||||
type: slug
|
||||
field: name
|
||||
content_html:
|
||||
label: backend::lang.mail.layout.html
|
||||
comment: backend::lang.mail.layout.html_comment
|
||||
type: textarea
|
||||
size: giant
|
||||
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
|
||||
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
|
||||
size: huge
|
||||
span: full
|
||||
tab: backend::lang.mail.layout.tab_css
|
||||
_file_version:
|
||||
type: partial
|
||||
path: file_version
|
||||
span: full
|
||||
context: update
|
||||
tab: backend::lang.mail.tab_file_version
|
||||
@@ -0,0 +1,13 @@
|
||||
columns:
|
||||
code:
|
||||
label: backend::lang.mail.code
|
||||
searchable: true
|
||||
sortable: true
|
||||
source:
|
||||
label: backend::lang.mail.source
|
||||
sortable: true
|
||||
customized_at:
|
||||
label: backend::lang.mail.customized_at
|
||||
type: datetime
|
||||
invisible: true
|
||||
sortable: true
|
||||
26
modules/cabana/backendscreens/models/mailpartial/fields.yaml
Normal file
26
modules/cabana/backendscreens/models/mailpartial/fields.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
fields:
|
||||
_info:
|
||||
type: partial
|
||||
path: info
|
||||
span: full
|
||||
tab: backend::lang.mail.partial.tab_html
|
||||
content_html:
|
||||
label: backend::lang.mail.partial.html
|
||||
comment: backend::lang.mail.partial.html_comment
|
||||
type: textarea
|
||||
size: huge
|
||||
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
|
||||
size: large
|
||||
span: full
|
||||
tab: backend::lang.mail.partial.tab_text
|
||||
_file_version:
|
||||
type: partial
|
||||
path: file_version
|
||||
span: full
|
||||
context: update
|
||||
tab: backend::lang.mail.tab_file_version
|
||||
@@ -1,4 +1,9 @@
|
||||
fields:
|
||||
_info:
|
||||
type: partial
|
||||
path: info
|
||||
span: full
|
||||
tab: backend::lang.mail.template.tab_template
|
||||
subject:
|
||||
label: backend::lang.mail.template.subject
|
||||
comment: backend::lang.mail.template.subject_comment
|
||||
@@ -21,3 +26,9 @@ fields:
|
||||
size: giant
|
||||
span: full
|
||||
tab: backend::lang.mail.template.tab_template
|
||||
_file_version:
|
||||
type: partial
|
||||
path: file_version
|
||||
span: full
|
||||
context: update
|
||||
tab: backend::lang.mail.tab_file_version
|
||||
|
||||
Reference in New Issue
Block a user