-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3498 from bcgov/NDT-359-edit-cbc-geographic-name-…
…economic-region-and-regional-district feat: edit cbc geographic name
- Loading branch information
Showing
29 changed files
with
1,551 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { RJSFSchema } from '@rjsf/utils'; | ||
|
||
const locations: RJSFSchema = { | ||
title: 'Locations', | ||
description: '', | ||
type: 'object', | ||
required: [], | ||
properties: { | ||
projectLocations: { | ||
type: 'string', | ||
title: 'Project Locations', | ||
}, | ||
geographicNames: { | ||
type: 'string', | ||
title: 'Geographic Names', | ||
}, | ||
regionalDistricts: { | ||
type: 'string', | ||
title: 'Regional Districts', | ||
}, | ||
economicRegions: { | ||
type: 'string', | ||
title: 'Economic Regions', | ||
}, | ||
communitySourceData: { | ||
type: 'array', | ||
default: [], | ||
items: { | ||
type: 'integer', | ||
enum: [], | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default locations; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const locationsUiSchema = { | ||
'ui:field': 'SectionField', | ||
'ui:options': { | ||
dividers: true, | ||
}, | ||
projectLocations: { | ||
'ui:widget': 'TextAreaWidget', | ||
'ui:label': 'Project Locations', | ||
}, | ||
geographicNames: { | ||
'ui:hidden': true, | ||
'ui:widget': 'HiddenWidget', | ||
}, | ||
regionalDistricts: { | ||
'ui:hidden': true, | ||
'ui:widget': 'HiddenWidget', | ||
}, | ||
economicRegions: { | ||
'ui:hidden': true, | ||
'ui:widget': 'HiddenWidget', | ||
}, | ||
communitySourceData: { | ||
'ui:field': 'ArrayLocationDataField', | ||
'ui:label': 'Community Location Data', | ||
items: { | ||
'ui:widget': 'CommunitySourceWidget', | ||
'ui:options': { | ||
excludeTableFormat: true, | ||
}, | ||
}, | ||
'ui:options': { | ||
excludeTableFormat: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default locationsUiSchema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const locationsUiSchema = { | ||
'ui:field': 'SectionField', | ||
'ui:options': { | ||
dividers: true, | ||
}, | ||
projectLocations: { | ||
'ui:widget': 'TextAreaWidget', | ||
'ui:label': 'Project Locations', | ||
}, | ||
geographicNames: { | ||
'ui:widget': 'TextAreaWidget', | ||
'ui:label': 'Geographic Names', | ||
}, | ||
regionalDistricts: { | ||
'ui:widget': 'TextAreaWidget', | ||
'ui:label': 'Regional Districts', | ||
}, | ||
economicRegions: { | ||
'ui:widget': 'TextAreaWidget', | ||
'ui:label': 'Economic Regions', | ||
}, | ||
communitySourceData: { | ||
'ui:hidden': true, | ||
}, | ||
}; | ||
|
||
export default locationsUiSchema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.