Skip to content

Commit

Permalink
add code,startAt,endAt field to grid + add code and name filters
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhero committed Jul 17, 2023
1 parent ea12f54 commit a21f389
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Resources/config/grids/admin/catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ sylius_grid:
name:
type: string
label: sylius.ui.name
code:
type: string
label: sylius.ui.code
startDate:
type: datetime
label: sylius.ui.starts_at
endDate:
type: datetime
label: sylius.ui.ends_at
actions:
main:
create:
Expand All @@ -18,3 +27,14 @@ sylius_grid:
type: update
delete:
type: delete
filters:
code:
type: string
label: sylius.ui.code
options:
fields: [ customer.email ]
name:
type: string
label: sylius.ui.search
options:
fields: [translations.name]

0 comments on commit a21f389

Please sign in to comment.