-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional questions Japanse duizendknoop (#2908)
- Loading branch information
Showing
6 changed files
with
59 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1017,4 +1017,4 @@ | |
"shortLabel": "Liever geen contact" | ||
} | ||
} | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/signals/incident/definitions/wizard-step-2-vulaan/japanse-duizendknoop.test.ts
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,13 @@ | ||
import japanseDuizendknoop from './japanse-duizendknoop' | ||
|
||
describe('definition Japanse duizendknoop', () => { | ||
it('has a defined set of controls', () => { | ||
const keys = Object.keys(japanseDuizendknoop) | ||
|
||
expect(keys).toStrictEqual([ | ||
'locatie', | ||
'extra_japanse_duizendknoop_onveilig', | ||
'extra_japanse_duizendknoop_onveilig_uitleg', | ||
]) | ||
}) | ||
}) |
38 changes: 38 additions & 0 deletions
38
src/signals/incident/definitions/wizard-step-2-vulaan/japanse-duizendknoop.ts
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,38 @@ | ||
// SPDX-License-Identifier: MPL-2.0 | ||
// Copyright (C) 2018 - 2024 Gemeente Amsterdam | ||
import { QuestionFieldType } from 'types/question' | ||
|
||
import locatie from './locatie' | ||
|
||
const japanseDuizendknoop = { | ||
locatie, | ||
|
||
extra_japanse_duizendknoop_onveilig: { | ||
meta: { | ||
values: { | ||
ja: 'Ja', | ||
nee: 'Nee', | ||
}, | ||
label: 'Zorgt de plant voor een onveilige situatie in het verkeer?', | ||
shortLabel: 'Onveilige situatie in het verkeer', | ||
subtitle: | ||
'Bijvoorbeeld door slecht zicht of omdat de plant over de rijweg of het fietspad hangt?', | ||
pathMerge: 'extra_properties', | ||
}, | ||
render: QuestionFieldType.RadioInput, | ||
}, | ||
|
||
extra_japanse_duizendknoop_onveilig_uitleg: { | ||
meta: { | ||
ifAllOf: { | ||
extra_japanse_duizendknoop_onveilig: 'ja', | ||
}, | ||
label: 'Wat is er onveilig aan de situatie?', | ||
shortLabel: 'Wat is er onveilig aan de situatie?', | ||
pathMerge: 'extra_properties', | ||
}, | ||
render: QuestionFieldType.TextareaInput, | ||
}, | ||
} | ||
|
||
export default japanseDuizendknoop |
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