-
Notifications
You must be signed in to change notification settings - Fork 158
/
page.yml
executable file
·69 lines (69 loc) · 2.49 KB
/
page.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
sylius_grid:
grids:
bitbag_sylius_cms_plugin_admin_page:
driver:
name: doctrine/orm
options:
class: "%bitbag_sylius_cms_plugin.model.page.class%"
repository:
method: createListQueryBuilder
arguments: ["%locale%"]
sorting:
code: asc
limits: [10, 25, 50]
fields:
page_image:
type: twig
label: bitbag_sylius_cms_plugin.ui.image
path: .
options:
template: "@BitBagSyliusCmsPlugin/Grid/Field/page_image.html.twig"
code:
type: string
label: bitbag_sylius_cms_plugin.ui.code
sortable: ~
name:
type: string
label: bitbag_sylius_cms_plugin.ui.name
sortable: translation.name
slug:
type: string
label: bitbag_sylius_cms_plugin.ui.slug
sortable: translation.slug
sections:
type: twig
label: bitbag_sylius_cms_plugin.ui.sections
path: .
options:
template: "@BitBagSyliusCmsPlugin/Grid/Field/sections.html.twig"
filters:
search:
type: string
label: sylius.ui.search
options:
fields: [code]
sections:
type: entity
label: bitbag_sylius_cms_plugin.ui.sections
form_options:
class: "%bitbag_sylius_cms_plugin.model.section.class%"
choice_label: name
choice_value: code
options:
fields: [sections.code]
actions:
main:
import:
type: import
options:
resourceCode: page
create:
type: create
item:
update:
type: update
delete:
type: delete
bulk:
delete:
type: delete