Skip to content

Commit

Permalink
Merge pull request #197 from art-institute-of-chicago/feature/main-re…
Browse files Browse the repository at this point in the history
…ference-number

Update Objects display and search
  • Loading branch information
zachgarwood authored Aug 11, 2023
2 parents e66bb62 + 776f092 commit d4bc3d6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/Http/Controllers/Twill/ArtworkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function setUpController(): void
{
parent::setUpController();

$this->setSearchColumns(['title', 'artist_display', 'catalogue_display']);
$this->setSearchColumns(['title', 'artist_display', 'datahub_id', 'main_reference_number']);

$this->eagerLoadListingRelations(['gallery']);
}
Expand All @@ -43,6 +43,10 @@ protected function additionalIndexTableColumns(): TableColumns
->field('gallery_id')
->title('Gallery')
->relation('gallery'))
->add(Text::make()
->field('main_reference_number')
->optional()
->hide())
->add(Text::make()
->field('credit_line')
->optional()
Expand Down Expand Up @@ -88,6 +92,11 @@ protected function additionalFormFields($artwork, $apiArtwork): Form
->add(Checkbox::make()
->name('is_on_view')
->default($apiValues['is_on_view']))
->add(Input::make()
->name('main_reference_number')
->placeholder($apiValues['main_reference_number'])
->disabled()
->note('readonly'))
->add(Input::make()
->name('credit_line')
->placeholder($apiValues['credit_line']))
Expand Down

0 comments on commit d4bc3d6

Please sign in to comment.