sylius_grid:
    grids:
        sylius_admin_product_option:
            driver:
                name: doctrine/orm
                options:
                    class: "%sylius.model.product_option.class%"
                    repository:
                        method: createListQueryBuilder
                        arguments: ["%locale%"]
            sorting:
                position: asc
            fields:
                position:
                    type: twig
                    label: sylius.ui.position
                    sortable: ~
                    options:
                        template: "@SyliusUi/grid/field/position.html.twig"
                        vars:
                            th_class: "w-1 text-center"
                            td_class: "text-center"
                name:
                    type: twig
                    label: sylius.ui.name
                    sortable: translation.name
                    options:
                        template: "@SyliusAdmin/shared/grid/field/name.html.twig"
                        vars:
                            th_class: "w-75"
                code:
                    type: twig
                    label: sylius.ui.code
                    sortable: ~
                    options:
                        template: "@SyliusAdmin/shared/grid/field/code.html.twig"
                        vars:
                            th_class: "w-25"
            filters:
                search:
                    type: string
                    label: sylius.ui.search
                    form_options:
                        type: !php/const Sylius\Component\Grid\Filter\StringFilter::TYPE_CONTAINS
                    options:
                        fields: [code, translation.name]
            actions:
                main:
                    create:
                        type: create
                item:
                    update:
                        type: update
                    delete:
                        type: delete
                bulk:
                    delete:
                        type: delete
