Skip to content

Commit

Permalink
DRYD-1496: Add objectCountUnit (#236)
Browse files Browse the repository at this point in the history
Co-authored-by: Ray Lee <[email protected]>
  • Loading branch information
mikejritter and ray-lee authored Sep 11, 2024
1 parent 4a51efa commit 949b70c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/plugins/recordTypes/collectionobject/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -6318,6 +6318,26 @@ export default (configContext) => {
},
},
},
objectCountUnit: {
[config]: {
messages: defineMessages({
fullName: {
id: 'field.collectionobjects_common.objectCountUnit.fullName',
defaultMessage: 'Object count unit',
},
name: {
id: 'field.collectionobjects_common.objectCountUnit.name',
defaultMessage: 'Unit',
},
}),
view: {
type: TermPickerInput,
props: {
source: 'objectcountunit',
},
},
},
},
objectCountCountedBy: {
[config]: {
messages: defineMessages({
Expand Down
1 change: 1 addition & 0 deletions src/plugins/recordTypes/collectionobject/forms/default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const template = (configContext) => {
<Field name="objectCountGroupList">
<Field name="objectCountGroup">
<Field name="objectCount" />
<Field name="objectCountUnit" />
<Field name="objectCountType" />
<Field name="objectCountCountedBy" />
<Field name="objectCountDate" />
Expand Down
1 change: 1 addition & 0 deletions src/plugins/recordTypes/collectionobject/forms/photo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const template = (configContext) => {
<Field name="objectCountGroupList">
<Field name="objectCountGroup">
<Field name="objectCount" />
<Field name="objectCountUnit" />
<Field name="objectCountType" />
<Field name="objectCountCountedBy" />
<Field name="objectCountDate" />
Expand Down
1 change: 1 addition & 0 deletions src/plugins/recordTypes/collectionobject/forms/public.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const template = (configContext) => {
<Field name="objectCountGroupList">
<Field name="objectCountGroup">
<Field name="objectCount" />
<Field name="objectCountUnit" />
<Field name="objectCountType" />
<Field name="objectCountCountedBy" />
<Field name="objectCountDate" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const template = (configContext) => {
<Field name="objectCountGroupList">
<Field name="objectCountGroup">
<Field name="objectCount" />
<Field name="objectCountUnit" />
<Field name="objectCountType" />
<Field name="objectCountCountedBy" />
<Field name="objectCountDate" />
Expand Down

0 comments on commit 949b70c

Please sign in to comment.