From 949b70cf35df528c2cac03dda7e889abbaf0af47 Mon Sep 17 00:00:00 2001 From: Michael Ritter Date: Wed, 11 Sep 2024 14:55:51 -0600 Subject: [PATCH] DRYD-1496: Add objectCountUnit (#236) Co-authored-by: Ray Lee --- .../recordTypes/collectionobject/fields.js | 20 +++++++++++++++++++ .../collectionobject/forms/default.jsx | 1 + .../collectionobject/forms/photo.jsx | 1 + .../collectionobject/forms/public.jsx | 1 + .../collectionobject/forms/timebased.jsx | 1 + 5 files changed, 24 insertions(+) diff --git a/src/plugins/recordTypes/collectionobject/fields.js b/src/plugins/recordTypes/collectionobject/fields.js index 94183346..4d940e12 100644 --- a/src/plugins/recordTypes/collectionobject/fields.js +++ b/src/plugins/recordTypes/collectionobject/fields.js @@ -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({ diff --git a/src/plugins/recordTypes/collectionobject/forms/default.jsx b/src/plugins/recordTypes/collectionobject/forms/default.jsx index f9b81bfd..93a16af2 100644 --- a/src/plugins/recordTypes/collectionobject/forms/default.jsx +++ b/src/plugins/recordTypes/collectionobject/forms/default.jsx @@ -129,6 +129,7 @@ const template = (configContext) => { + diff --git a/src/plugins/recordTypes/collectionobject/forms/photo.jsx b/src/plugins/recordTypes/collectionobject/forms/photo.jsx index 223aa6e4..ae7933c9 100644 --- a/src/plugins/recordTypes/collectionobject/forms/photo.jsx +++ b/src/plugins/recordTypes/collectionobject/forms/photo.jsx @@ -90,6 +90,7 @@ const template = (configContext) => { + diff --git a/src/plugins/recordTypes/collectionobject/forms/public.jsx b/src/plugins/recordTypes/collectionobject/forms/public.jsx index f16e15da..86bad9ac 100644 --- a/src/plugins/recordTypes/collectionobject/forms/public.jsx +++ b/src/plugins/recordTypes/collectionobject/forms/public.jsx @@ -78,6 +78,7 @@ const template = (configContext) => { + diff --git a/src/plugins/recordTypes/collectionobject/forms/timebased.jsx b/src/plugins/recordTypes/collectionobject/forms/timebased.jsx index 6c21b584..7d33ba88 100644 --- a/src/plugins/recordTypes/collectionobject/forms/timebased.jsx +++ b/src/plugins/recordTypes/collectionobject/forms/timebased.jsx @@ -112,6 +112,7 @@ const template = (configContext) => { +