Skip to content

Commit

Permalink
Add associated authorities to forms (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejritter authored Feb 28, 2024
1 parent 0a97fed commit 427c0cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugins/recordTypes/person/forms/default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const template = (configContext) => {
Subrecord,
} = configContext.recordComponents;

const {
extensions,
} = configContext.config;

return (
<Field name="document">
<Panel name="info" collapsible>
Expand Down Expand Up @@ -216,6 +220,10 @@ const template = (configContext) => {
</Field>
</Panel>

<Panel name="authorities" collapsible collapsed>
{extensions.associatedAuthority.form}
</Panel>

<Panel name="hierarchy" collapsible collapsed>
<Field name="relation-list-item" subpath="rel:relations-common-list" />
</Panel>
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/recordTypes/place/forms/default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ const template = (configContext) => {
</Field>
</Panel>

<Panel name="authorities" collapsible collapsed>
{extensions.associatedAuthority.form}
</Panel>

<Panel name="hierarchy" collapsible collapsed>
<Field name="relation-list-item" subpath="rel:relations-common-list" />
</Panel>
Expand Down

0 comments on commit 427c0cd

Please sign in to comment.