Commit 07aae561 authored by Oleksii Savran's avatar Oleksii Savran

Merge branch '120-inventory-details-display-inventory-maintenance-policy' into 'master'

Resolve "Inventory details: Display inventory maintenance policy"

Closes #120

See merge request !96
parents f93a6b27 b0bba4a7
......@@ -130,6 +130,16 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
<PrintSpecies taxonomySpecies={ inventory.accession.taxonomySpecies } />
</PropertiesItem>
}
{ inventory.systemInventory !== undefined &&
<PropertiesItem title={ t('client:model.Inventory.systemInventory') }>
{ inventory.systemInventory === true ? 'Y' : 'N' }
</PropertiesItem>
}
{ inventory.inventoryMaintPolicy &&
<PropertiesItem title={ t('client:model.Inventory.inventoryMaintPolicy') }>
{ inventory.inventoryMaintPolicy.maintenanceName }
</PropertiesItem>
}
{ inventory.formTypeCode &&
<PropertiesItem title={ t('client:model.Inventory.formTypeCode') }>
<CodeValueDisplay codeGroup={ Inventory.CodeGroup.formTypeCode } value={ inventory.formTypeCode } description />
......@@ -313,16 +323,6 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
{ inventory.webAvailabilityNote }
</PropertiesItem>
}
{ inventory.inventoryMaintPolicy &&
<PropertiesItem title={ t('client:model.Inventory.inventoryMaintPolicy') }>
{ inventory.inventoryMaintPolicy.maintenanceName }
</PropertiesItem>
}
{ inventory.systemInventory !== undefined &&
<PropertiesItem title={ t('client:model.Inventory.systemInventory') }>
{ inventory.systemInventory }
</PropertiesItem>
}
{ inventory.note &&
<PropertiesItem title={ t(['client:model.Inventory.note', 'client:model._.note']) }>
{ inventory.note }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment