diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/app/config.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/app/config.yml index af9779b1792..689e3e2ac43 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/app/config.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/app/config.yml @@ -5,7 +5,7 @@ imports: - { resource: "@SyliusAdminBundle/Resources/config/app/sylius/sylius_mailer.yml" } - { resource: "@SyliusAdminBundle/Resources/config/grids/address_log_entry.yml" } - { resource: "@SyliusAdminBundle/Resources/config/grids/admin_user.yml" } - - { resource: "@SyliusAdminBundle/Resources/config/grids/catalog_promotion.yaml" } + - { resource: "@SyliusAdminBundle/Resources/config/grids/catalog_promotion.yml" } - { resource: "@SyliusAdminBundle/Resources/config/grids/channel.yml" } - { resource: "@SyliusAdminBundle/Resources/config/grids/channel_pricing_log_entry.yml" } - { resource: "@SyliusAdminBundle/Resources/config/grids/country.yml" } diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/admin_user.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/admin_user.yml index c4c5a5a077e..a507c1be743 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/admin_user.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/admin_user.yml @@ -8,6 +8,12 @@ sylius_grid: sorting: createdAt: desc fields: + email: + type: twig + label: sylius.ui.email + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" firstName: type: string label: sylius.ui.first_name @@ -20,22 +26,23 @@ sylius_grid: type: string label: sylius.ui.username sortable: ~ - email: - type: string - label: sylius.ui.email - sortable: ~ createdAt: - type: datetime + type: twig label: sylius.ui.registration_date sortable: ~ options: - format: d-m-Y H:i + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" enabled: type: twig label: sylius.ui.enabled sortable: ~ options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/catalog_promotion.yaml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/catalog_promotion.yml similarity index 74% rename from src/Sylius/Bundle/AdminBundle/Resources/config/grids/catalog_promotion.yaml rename to src/Sylius/Bundle/AdminBundle/Resources/config/grids/catalog_promotion.yml index b764066ce6c..ab12480ca1b 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/catalog_promotion.yaml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/catalog_promotion.yml @@ -8,49 +8,68 @@ sylius_grid: sorting: code: asc fields: - code: - type: string - label: sylius.ui.code + priority: + type: twig + label: sylius.ui.priority sortable: ~ + options: + template: "@SyliusAdmin/catalog_promotion/grid/field/priority.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" name: - type: string + type: twig label: sylius.ui.name sortable: ~ - startDate: + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + code: type: twig - label: sylius.ui.start_date + label: sylius.ui.code sortable: ~ options: - template: '@SyliusAdmin/catalog_promotion/grid/field/date.html.twig' - endDate: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" + channels: type: twig - label: sylius.ui.end_date - sortable: ~ + label: sylius.ui.channels options: - template: '@SyliusAdmin/catalog_promotion/grid/field/date.html.twig' - priority: + template: "@SyliusAdmin/shared/grid/field/channels.html.twig" + vars: + th_class: "w-1 text-center" + startDate: type: twig - label: sylius.ui.priority + label: sylius.ui.start_date sortable: ~ options: - template: '@SyliusAdmin/catalog_promotion/grid/field/priority.html.twig' - channels: + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "text-center" + endDate: type: twig - label: sylius.ui.channels + label: sylius.ui.end_date + sortable: ~ options: - template: '@SyliusAdmin/shared/grid/field/channels.html.twig' + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "text-center" state: type: twig label: sylius.ui.state path: state options: - template: '@SyliusAdmin/catalog_promotion/grid/field/state.html.twig' + template: "@SyliusAdmin/catalog_promotion/grid/field/state.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" enabled: type: twig label: sylius.ui.enabled sortable: ~ options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/channel.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/channel.yml index 28c9a1d00ef..4d895640650 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/channel.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/channel.yml @@ -20,7 +20,7 @@ sylius_grid: label: sylius.ui.code sortable: code options: - template: "@SyliusAdmin/channel/grid/field/code.html.twig" + template: "@SyliusAdmin/shared/grid/field/code.html.twig" themeName: type: twig label: sylius.ui.theme @@ -33,6 +33,8 @@ sylius_grid: sortable: ~ options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/country.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/country.yml index b00bc20bd03..b2de50afb8d 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/country.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/country.yml @@ -8,10 +8,6 @@ sylius_grid: sorting: code: asc fields: - code: - type: string - label: sylius.ui.code - sortable: ~ name: type: twig label: sylius.ui.name @@ -19,12 +15,20 @@ sylius_grid: sortable: code options: template: "@SyliusAdmin/country/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" enabled: type: twig label: sylius.ui.enabled sortable: ~ options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" filters: code: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/currency.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/currency.yml index 468f1d8a50c..cfc14926717 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/currency.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/currency.yml @@ -9,9 +9,13 @@ sylius_grid: code: asc fields: code: - type: string + type: twig label: sylius.ui.code sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" + vars: + th_class: "w-1 text-center" name: type: string label: sylius.ui.name diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer.yml index b37ec4c4afe..4fee99c83be 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer.yml @@ -8,36 +8,44 @@ sylius_grid: sorting: createdAt: desc fields: - firstName: - type: string - label: sylius.ui.first_name + email: + type: twig + label: sylius.ui.email sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" lastName: type: string label: sylius.ui.last_name sortable: ~ - email: + firstName: type: string - label: sylius.ui.email + label: sylius.ui.first_name sortable: ~ createdAt: - type: datetime + type: twig label: sylius.ui.registration_date sortable: ~ options: - format: d-m-Y H:i + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" enabled: type: twig label: sylius.ui.enabled path: user?.enabled options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" verified: type: twig label: sylius.ui.verified path: user?.verified options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer_group.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer_group.yml index a14921f1cd1..09ceb3e5bb2 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer_group.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/customer_group.yml @@ -8,14 +8,22 @@ sylius_grid: sorting: name: asc fields: - code: - type: string - label: sylius.ui.code - sortable: ~ name: - type: string + type: twig label: sylius.ui.name sortable: ~ + 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 diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/exchange_rate.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/exchange_rate.yml index cb6dbbe9e66..347ecc8819c 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/exchange_rate.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/exchange_rate.yml @@ -13,17 +13,11 @@ sylius_grid: enabled: false sortable: ~ sourceCurrency: - type: twig + type: string label: sylius.ui.source_currency - path: . - options: - template: "@SyliusAdmin/ExchangeRate/Grid/Field/sourceCurrencyName.html.twig" targetCurrency: - type: twig + type: string label: sylius.ui.target_currency - path: . - options: - template: "@SyliusAdmin/ExchangeRate/Grid/Field/targetCurrencyName.html.twig" ratio: type: string label: sylius.ui.ratio diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/inventory.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/inventory.yml index 896d73b7897..e9d92e0defb 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/inventory.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/inventory.yml @@ -15,9 +15,15 @@ sylius_grid: label: sylius.ui.name options: template: "@SyliusAdmin/inventory/grid/field/name.html.twig" + vars: + th_class: "w-75" code: - type: string + type: twig label: sylius.ui.code + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" + vars: + th_class: "w-25" inventory: type: twig path: . diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/locale.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/locale.yml index ed0e355cf1a..9b6232ac1b6 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/locale.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/locale.yml @@ -8,10 +8,6 @@ sylius_grid: sorting: code: asc fields: - code: - type: string - label: sylius.ui.code - sortable: ~ name: type: twig label: sylius.ui.name @@ -19,6 +15,12 @@ sylius_grid: sortable: code options: template: "@SyliusAdmin/locale/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" filters: code: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/order.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/order.yml index ceadfef7471..c19deadfded 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/order.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/order.yml @@ -12,13 +12,6 @@ sylius_grid: sorting: number: desc fields: - date: - type: datetime - label: sylius.ui.date - path: checkoutCompletedAt - sortable: checkoutCompletedAt - options: - format: d-m-Y H:i:s number: type: twig label: sylius.ui.number @@ -26,18 +19,31 @@ sylius_grid: sortable: ~ options: template: "@SyliusAdmin/shared/grid/field/order_number.html.twig" - channel: + vars: + th_class: "w-1" + date: type: twig - label: sylius.ui.channel - sortable: channel.code + label: sylius.ui.date + path: checkoutCompletedAt + sortable: checkoutCompletedAt options: - template: "@SyliusAdmin/shared/grid/field/channel.html.twig" + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" customer: type: twig label: sylius.ui.customer sortable: customer.lastName options: template: "@SyliusAdmin/shared/grid/field/customer.html.twig" + vars: + th_class: "w-100" + channel: + type: twig + label: sylius.ui.channel + sortable: channel.code + options: + template: "@SyliusAdmin/shared/grid/field/channel.html.twig" state: type: twig label: sylius.ui.state @@ -69,6 +75,9 @@ sylius_grid: sortable: total options: template: "@SyliusAdmin/order/grid/field/order_total.html.twig" + vars: + th_class: "w-1 text-end" + td_class: "text-end" currencyCode: type: string label: sylius.ui.currency diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment.yml index c588a5ec156..4b444fc54cf 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment.yml @@ -10,35 +10,44 @@ sylius_grid: sorting: createdAt: desc fields: - createdAt: - type: datetime - label: sylius.ui.date - sortable: ~ - options: - format: d-m-Y H:i:s number: type: twig label: sylius.ui.order path: order options: template: "@SyliusAdmin/shared/grid/field/order_number.html.twig" - channel: + vars: + th_class: "w-1" + createdAt: type: twig - label: sylius.ui.channel - path: order.channel + label: sylius.ui.date + sortable: ~ options: - template: "@SyliusAdmin/shared/grid/field/channel.html.twig" + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" customer: type: twig label: sylius.ui.customer path: order.customer options: template: "@SyliusAdmin/shared/grid/field/customer.html.twig" + vars: + th_class: "w-100" + channel: + type: twig + label: sylius.ui.channel + path: order.channel + options: + template: "@SyliusAdmin/shared/grid/field/channel.html.twig" state: type: twig label: sylius.ui.state options: template: "@SyliusAdmin/shared/grid/field/payment_state.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" filters: state: type: select diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml index 33a0bf44574..93f6185240c 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/payment_method.yml @@ -17,14 +17,21 @@ sylius_grid: sortable: ~ options: template: "@SyliusUi/Grid/Field/position.html.twig" - code: - type: string - label: sylius.ui.code - sortable: ~ + vars: + th_class: "w-1 text-center" + td_class: "text-center" name: - type: string + type: twig label: sylius.ui.name sortable: translation.name + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" gateway: type: twig path: gatewayConfig.factoryName @@ -38,6 +45,9 @@ sylius_grid: sortable: ~ options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product.yml index b17735e07da..57991468b4f 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product.yml @@ -17,16 +17,22 @@ sylius_grid: path: . options: template: "@SyliusAdmin/product/grid/field/product_image.html.twig" - code: - type: string - label: sylius.ui.code - sortable: ~ name: type: twig label: sylius.ui.name sortable: translation.name options: - template: "@SyliusAdmin/product/grid/field/name.html.twig" + 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" mainTaxon: type: twig label: sylius.ui.main_taxon diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_association_type.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_association_type.yml index 28d02f6ef5d..dc17978b74e 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_association_type.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_association_type.yml @@ -11,13 +11,21 @@ sylius_grid: sorting: code: asc fields: + name: + type: twig + label: sylius.ui.name + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + vars: + th_class: "w-75" code: - type: string + type: twig label: sylius.ui.code sortable: ~ - name: - type: string - label: sylius.ui.name + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" + vars: + th_class: "w-25" filters: code: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml index 74b99c1ab8f..c55b49b63f6 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_attribute.yml @@ -8,23 +8,29 @@ sylius_grid: sorting: position: asc fields: + name: + type: twig + label: sylius.ui.name + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + vars: + th_class: "w-75" code: - type: string + type: twig label: sylius.ui.code sortable: ~ - name: - type: string - label: sylius.ui.name + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" + vars: + th_class: "w-25" position: type: string enabled: false sortable: ~ type: - type: twig + type: string label: sylius.ui.type sortable: ~ - options: - template: "@SyliusAdmin/shared/grid/field/label.html.twig" translatable: type: twig label: sylius.ui.translatable diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml index 8538f382a01..4ddcb533438 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_option.yml @@ -17,14 +17,25 @@ sylius_grid: sortable: ~ options: template: "@SyliusUi/Grid/Field/position.html.twig" - code: - type: string - label: sylius.ui.code - sortable: ~ + vars: + th_class: "w-1 text-center" + td_class: "text-center" name: - type: string + 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 diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_review.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_review.yml index ab1c1c6d9f1..6474b76a62f 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_review.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/product_review.yml @@ -8,37 +8,45 @@ sylius_grid: sorting: date: desc fields: - date: - type: datetime - label: sylius.ui.date - path: createdAt - sortable: createdAt - options: - format: d-m-Y H:i:s - title: - type: string - label: sylius.ui.title - sortable: ~ rating: type: twig label: sylius.ui.rating sortable: ~ options: template: "@SyliusAdmin/product_review/grid/field/rating.html.twig" - status: + vars: + th_class: "w-1 text-center" + td_class: "text-center" + author: type: twig - label: sylius.ui.status - sortable: ~ + label: sylius.ui.customer options: - template: "@SyliusAdmin/product_review/grid/field/state.html.twig" + template: '@SyliusAdmin/shared/grid/field/customer.html.twig' + title: + type: string + label: sylius.ui.title + sortable: ~ reviewSubject: type: string label: sylius.ui.product - author: + date: type: twig - label: sylius.ui.customer + label: sylius.ui.date + path: createdAt + sortable: createdAt options: - template: '@SyliusAdmin/shared/grid/field/customer.html.twig' + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "text-center" + status: + type: twig + label: sylius.ui.status + sortable: ~ + options: + template: "@SyliusAdmin/product_review/grid/field/state.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" filters: title: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml index 6504348c250..0d681a4176e 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/promotion.yml @@ -14,10 +14,9 @@ sylius_grid: sortable: ~ options: template: "@SyliusAdmin/promotion/grid/field/priority.html.twig" - code: - type: string - label: sylius.ui.code - sortable: ~ + vars: + th_class: "w-1 text-center" + td_class: "text-center" name: type: twig label: sylius.ui.name @@ -25,11 +24,22 @@ sylius_grid: sortable: ~ options: template: "@SyliusUi/Grid/Field/nameAndDescription.html.twig" + vars: + th_class: "w-100" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" couponBased: type: twig label: sylius.ui.coupons options: template: "@SyliusAdmin/shared/grid/field/boolean.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" usage: type: twig label: sylius.ui.usage diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipment.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipment.yml index 80c786d8f13..8914d844fdc 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipment.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipment.yml @@ -10,24 +10,30 @@ sylius_grid: sorting: createdAt: desc fields: + number: + type: twig + label: sylius.ui.order + path: order + options: + template: "@SyliusAdmin/shared/grid/field/order_number.html.twig" + vars: + th_class: "w-1" createdAt: - type: datetime + type: twig label: sylius.ui.created_at sortable: ~ options: - format: d-m-Y H:i:s + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" shippedAt: - type: datetime + type: twig label: sylius.ui.shipped_at sortable: ~ options: - format: d-m-Y H:i:s - number: - type: twig - label: sylius.ui.order - path: order - options: - template: "@SyliusAdmin/shared/grid/field/order_number.html.twig" + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" channel: type: twig label: sylius.ui.channel @@ -39,6 +45,9 @@ sylius_grid: label: sylius.ui.state options: template: "@SyliusAdmin/shared/grid/field/shipment_state.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" filters: state: type: select diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_category.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_category.yml index 8f475b6132e..04191d62bc6 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_category.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_category.yml @@ -8,22 +8,30 @@ sylius_grid: repository: method: createListQueryBuilder fields: - code: - type: string - label: sylius.ui.code name: - type: string + type: twig label: sylius.ui.name + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" createdAt: - type: datetime + type: twig label: sylius.ui.creation_date options: - format: d-m-Y H:i + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" updatedAt: - type: datetime + type: twig label: sylius.ui.updating_date options: - format: d-m-Y H:i + template: "@SyliusAdmin/shared/grid/field/date.html.twig" + vars: + th_class: "w-1 text-center" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml index e1520de5cce..5391ee350cf 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/shipping_method.yml @@ -12,17 +12,26 @@ sylius_grid: position: asc fields: position: - type: string + type: twig label: sylius.ui.position sortable: ~ - code: - type: string - label: sylius.ui.code - sortable: ~ + options: + template: "@SyliusUi/Grid/Field/position.html.twig" + vars: + th_class: "w-1 text-center" + td_class: "text-center" name: - type: string + type: twig label: sylius.ui.name sortable: translation.name + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" zone: type: string label: sylius.ui.zone diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml index 505fe9a5a7d..000758bf32d 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_category.yml @@ -8,10 +8,6 @@ sylius_grid: sorting: nameAndDescription: asc fields: - code: - type: string - label: sylius.ui.code - sortable: ~ nameAndDescription: type: twig label: sylius.ui.name @@ -19,6 +15,12 @@ sylius_grid: sortable: name options: template: "@SyliusUi/Grid/Field/nameAndDescription.html.twig" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" filters: search: type: string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml index e0e06a8b669..f2301c44a53 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/tax_rate.yml @@ -8,14 +8,18 @@ sylius_grid: sorting: name: asc fields: - code: - type: string - label: sylius.ui.code - sortable: ~ name: - type: string + type: twig label: sylius.ui.name sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + sortable: ~ + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" zone: type: string label: sylius.ui.zone diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/zone.yml b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/zone.yml index 858ae01000d..7712f7470d2 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/grids/zone.yml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/grids/zone.yml @@ -6,12 +6,16 @@ sylius_grid: options: class: "%sylius.model.zone.class%" fields: - code: - type: string - label: sylius.ui.code name: - type: string + type: twig label: sylius.ui.name + options: + template: "@SyliusAdmin/shared/grid/field/name.html.twig" + code: + type: twig + label: sylius.ui.code + options: + template: "@SyliusAdmin/shared/grid/field/code.html.twig" type: type: twig label: sylius.ui.type