forked from Sylius/Sylius
/
exchange_rate.yml
52 lines (51 loc) · 1.74 KB
/
exchange_rate.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
sylius_grid:
grids:
sylius_admin_exchange_rate:
driver:
name: doctrine/orm
options:
class: "%sylius.model.exchange_rate.class%"
sorting:
id: desc
fields:
id:
type: string
enabled: false
sortable: ~
sourceCurrency:
type: twig
label: sylius.ui.source_currency
path: .
options:
template: "@SyliusAdmin/ExchangeRate/Grid/Field/sourceCurrencyName.html.twig"
targetCurrency:
type: twig
label: sylius.ui.target_currency
path: .
options:
template: "@SyliusAdmin/ExchangeRate/Grid/Field/targetCurrencyName.html.twig"
ratio:
type: string
label: sylius.ui.ratio
sortable: ~
filters:
currency:
type: entity
label: sylius.ui.currency
options:
fields: [sourceCurrency, targetCurrency]
form_options:
class: "%sylius.model.currency.class%"
choice_label: name
actions:
main:
create:
type: create
item:
update:
type: update
delete:
type: delete
bulk:
delete:
type: delete