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: string
                    path: sourceCurrency.name
                    label: sylius.ui.source_currency
                targetCurrency:
                    type: string
                    path: targetCurrency.name
                    label: sylius.ui.target_currency
                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
