forked from Sylius/Sylius
/
product.yml
110 lines (110 loc) · 4.47 KB
/
product.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
sylius_grid:
grids:
sylius_admin_product:
driver:
name: doctrine/orm
options:
class: "%sylius.model.product.class%"
repository:
method: createListQueryBuilder
arguments: ["expr:service('sylius.context.locale').getLocaleCode()", $taxonId]
sorting:
code: asc
fields:
image:
type: twig
label: sylius.ui.image
path: .
options:
template: "@SyliusAdmin/Product/Grid/Field/image.html.twig"
code:
type: string
label: sylius.ui.code
sortable: ~
name:
type: string
label: sylius.ui.name
sortable: translation.name
mainTaxon:
type: twig
label: sylius.ui.main_taxon
options:
template: "@SyliusAdmin/Product/Grid/Field/mainTaxon.html.twig"
enabled:
type: twig
label: sylius.ui.enabled
options:
template: "@SyliusUi/Grid/Field/enabled.html.twig"
filters:
search:
type: string
label: sylius.ui.search
options:
fields: [code, translation.name]
enabled:
type: boolean
label: sylius.ui.enabled
channel:
type: entities
label: sylius.ui.channel
form_options:
class: "%sylius.model.channel.class%"
options:
field: "channels.id"
actions:
main:
create:
type: links
label: sylius.ui.create
options:
class: primary
icon: plus
header:
icon: cube
label: sylius.ui.type
links:
simple:
label: sylius.ui.simple_product
icon: plus
route: sylius_admin_product_create_simple
configurable:
label: sylius.ui.configurable_product
icon: plus
route: sylius_admin_product_create
item:
details:
label: sylius.ui.details
type: show
update:
type: update
delete:
type: delete
subitem:
variants:
type: links
label: sylius.ui.manage_variants
options:
icon: cubes
links:
index:
label: sylius.ui.list_variants
icon: list
route: sylius_admin_product_variant_index
parameters:
productId: resource.id
create:
label: sylius.ui.create
icon: plus
route: sylius_admin_product_variant_create
parameters:
productId: resource.id
generate:
label: sylius.ui.generate
icon: random
route: sylius_admin_product_variant_generate
visible: resource.hasOptions
parameters:
productId: resource.id
bulk:
delete:
type: delete