/
customer.yml
75 lines (75 loc) · 2.74 KB
/
customer.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
sylius_grid:
grids:
sylius_admin_customer:
driver:
name: doctrine/orm
options:
class: "%sylius.model.customer.class%"
sorting:
createdAt: desc
fields:
firstName:
type: string
label: sylius.ui.first_name
sortable: ~
lastName:
type: string
label: sylius.ui.last_name
sortable: ~
email:
type: string
label: sylius.ui.email
sortable: ~
createdAt:
type: datetime
label: sylius.ui.registration_date
sortable: ~
options:
format: d-m-Y H:i
enabled:
type: twig
label: sylius.ui.enabled
path: user?.enabled
options:
template: "@SyliusAdmin/Shared/Grid/Field/boolean.html.twig"
verified:
type: twig
label: sylius.ui.verified
path: user?.verified
options:
template: "@SyliusAdmin/Shared/Grid/Field/boolean.html.twig"
filters:
search:
type: string
label: sylius.ui.search
options:
fields: [email, firstName, lastName]
group:
type: resource_autocomplete
label: sylius.ui.customer_groups
form_options:
resource: sylius.customer_group
choice_name: name
choice_value: code
multiple: true
remote_path: sylius_admin_ajax_customer_groups_by_phrase
load_edit_path: sylius_admin_ajax_customer_group_by_code
options:
fields: [group.code]
actions:
main:
create:
type: create
item:
show_orders:
type: show
label: sylius.ui.show_orders
options:
link:
route: sylius_admin_customer_order_index
parameters:
id: resource.id
show:
type: show
update:
type: update