generated from digitalservicebund/java-application-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
decisionName
a text input field
Addresses RISDEV-212
- Loading branch information
1 parent
bada131
commit 0c27a30
Showing
2 changed files
with
31 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
function defineTextEntry(name: string, label: string) { | ||
return { name, label } | ||
import TextAreaInput from "@/shared/components/input/TextAreaInput.vue" | ||
import TextInput from "@/shared/components/input/TextInput.vue" | ||
|
||
function defineTextEntry( | ||
name: string, | ||
label: string, | ||
fieldType: typeof TextInput | typeof TextAreaInput, | ||
) { | ||
return { name, label, fieldType } | ||
} | ||
export const texts = [ | ||
defineTextEntry("decisionName", "Entscheidungsname"), | ||
defineTextEntry("headline", "Titelzeile"), | ||
defineTextEntry("guidingPrinciple", "Leitsatz"), | ||
defineTextEntry("headnote", "Orientierungssatz"), | ||
defineTextEntry("tenor", "Tenor"), | ||
defineTextEntry("reasons", "Gründe"), | ||
defineTextEntry("caseFacts", "Tatbestand"), | ||
defineTextEntry("decisionReasons", "Entscheidungsgründe"), | ||
defineTextEntry("decisionName", "Entscheidungsname", TextInput), | ||
defineTextEntry("headline", "Titelzeile", TextAreaInput), | ||
defineTextEntry("guidingPrinciple", "Leitsatz", TextAreaInput), | ||
defineTextEntry("headnote", "Orientierungssatz", TextAreaInput), | ||
defineTextEntry("tenor", "Tenor", TextAreaInput), | ||
defineTextEntry("reasons", "Gründe", TextAreaInput), | ||
defineTextEntry("caseFacts", "Tatbestand", TextAreaInput), | ||
defineTextEntry("decisionReasons", "Entscheidungsgründe", TextAreaInput), | ||
] |