Traits tab for Inventory and Accession
Implement a component that will load the CropTraitObservations
for the selected filter: InventoryFilter
: <TraitObservationsDisplay filter={ { inventory: { id: [ 1 ] } } />
.
The component uses CropTraitService#filterObservations
method to load the data and displays the CropTraitObservations
in a <Table
.
Adding or editing is not supported with this component, only display of existing data.
The new component is added as Traits tab to /a/{id}
and /i/{id}
:
Trait name | Observation | Method | ... |
---|---|---|---|
Leaf color | Light green | Regeneration 2022 | ... |
- Method column links to the
Method
page in "Trait data"