Skip to content

Commit

Permalink
DRYD-1326: Update exit reasons list
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejritter committed Jan 17, 2024
1 parent 746de78 commit b8bd3d0
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/recordTypes/objectexit/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import forms from './forms';
import optionLists from './optionLists';

export default () => (configContext) => ({
optionLists,
recordTypes: {
objectexit: {
forms: forms(configContext),
Expand Down
50 changes: 50 additions & 0 deletions src/plugins/recordTypes/objectexit/optionLists.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { defineMessages } from 'react-intl';

export default {
exitReasons: {
values: [
'deaccession',
'disposal',
'returnofloan',
'temporary',
'transfer',
'painted out',
'covered by construction',
'lost to demolition',
],
messages: defineMessages({
deaccession: {
id: 'option.exitReasons.deaccession',
defaultMessage: 'deaccession',
},
disposal: {
id: 'option.exitReasons.disposal',
defaultMessage: 'disposal',
},
returnofloan: {
id: 'option.exitReasons.returnofloan',
defaultMessage: 'return of loan',
},
temporary: {
id: 'option.exitReasons.temporary',
defaultMessage: 'temporary',
},
transfer: {
id: 'option.exitReasons.transfer',
defaultMessage: 'transfer',
},
'painted out': {
id: 'option.exitReasons.painted out',
defaultMessage: 'painted out',
},
'covered by construction': {
id: 'option.exitReasons.covered by construction',
defaultMessage: 'covered by construction',
},
'lost to demolition': {
id: 'option.exitReasons.lost to demolition',
defaultMessage: 'lost to demolition',
},
}),
},
};

0 comments on commit b8bd3d0

Please sign in to comment.