Skip to content

Commit

Permalink
Merge pull request #33 from art-institute-of-chicago/drift/add-storti…
Browse files Browse the repository at this point in the history
…ng-artwork

Add ability to sort on `artist` and `is_on_view`
  • Loading branch information
driftingly authored May 8, 2024
2 parents 57a6724 + 9121d4f commit 3ae039a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Http/Controllers/Twill/ArtworkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ protected function additionalIndexTableColumns(): TableColumns
{
return parent::additionalIndexTableColumns()
->add(Text::make()
->field('artist'))
->field('artist')
->sortable()
)
->add(Boolean::make()
->field('is_on_view'))
->field('is_on_view')
->sortable()
)
->add(Text::make()
->field('Themes')
->customRender(fn ($artwork) => $artwork->themePrompts()->with('theme')->get()->pluck('theme')
Expand Down

0 comments on commit 3ae039a

Please sign in to comment.