Enhance Document Template Management with Referenced Templates Support

- Updated NewDocumentTemplate component to include 'referencedTemplates' in visible properties and object data management, improving template handling.
- Modified DocumentTemplate model to add 'referencedTemplates' field, allowing for better data structure and management of related templates.
- Adjusted App.css to refine styling for object display tags, enhancing visual consistency across the application.
This commit is contained in:
Tom Butcher 2026-08-22 16:39:07 +01:00
parent cc1048fcaa
commit 39d5206130
3 changed files with 23 additions and 2 deletions

View File

@ -691,6 +691,11 @@ body {
top: 1.5px;
}
.object-select .ant-select-selection-item .object-display-tag .iddisplay,
.ant-select-dropdown .object-display-tag .iddisplay {
margin-bottom: -1px;
}
.ant-select-tree-title .object-display-tag {
top: 0.5px;
}

View File

@ -36,7 +36,11 @@ const NewDocumentTemplate = ({ onOk, defaultValues }) => {
bordered={false}
isEditing={true}
required={false}
visibleProperties={{ content: false, testObject: false }}
visibleProperties={{
content: false,
testObject: false,
referencedTemplates: false
}}
objectData={objectData}
/>
)
@ -53,7 +57,8 @@ const NewDocumentTemplate = ({ onOk, defaultValues }) => {
_id: false,
_reference: false,
createdAt: false,
updatedAt: false
updatedAt: false,
referencedTemplates: false
}}
isEditing={false}
objectData={objectData}

View File

@ -106,6 +106,7 @@ export const DocumentTemplate = {
'tags',
'parent',
'documentSize',
'referencedTemplates',
'createdAt',
'updatedAt'
],
@ -116,6 +117,7 @@ export const DocumentTemplate = {
'global',
'parent',
'documentSize',
'referencedTemplates',
'objectType',
'createdAt',
'updatedAt',
@ -234,6 +236,15 @@ export const DocumentTemplate = {
objectType: 'documentPrinter',
showHyperlink: true
},
{
name: 'referencedTemplates',
label: 'Referenced Templates',
required: false,
type: 'objectList',
objectType: 'documentTemplate',
readOnly: true,
showHyperlink: true
},
{
name: 'content',
label: 'Content',