diff options
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_11e.ts')
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/902_11e.ts | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_11e.ts b/packages/aml-backoffice-ui/src/forms/902_11e.ts index 932971ef2..258f75135 100644 --- a/packages/aml-backoffice-ui/src/forms/902_11e.ts +++ b/packages/aml-backoffice-ui/src/forms/902_11e.ts @@ -1,21 +1,21 @@ -import { TranslatedString } from "@gnu-taler/taler-util"; -import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js"; +import type { TranslatedString } from "@gnu-taler/taler-util"; +import type { FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser"; +import { BaseForm } from "./index.js"; import { resolutionSection } from "./simplest.js"; -import { FlexibleForm, FormState } from "@gnu-taler/web-util/browser"; -export const v1 = (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ +export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ design: [ { title: - "Establishing of the controlling person of operating legal entities and partnerships both not quoted on the stock exchange" as TranslatedString, + i18n.str`Establishing of the controlling person of operating legal entities and partnerships both not quoted on the stock exchange`, description: - "for operating legal entities and partnership that are contracting partner as well as analogously for operating legal entities and partnership that are beneficial owners." as TranslatedString, + i18n.str`for operating legal entities and partnership that are contracting partner as well as analogously for operating legal entities and partnership that are beneficial owners.`, fields: [ { type: "textArea", props: { name: "contractingPartner", - label: "Contracting partner" as TranslatedString, + label: i18n.str`Contracting partner`, }, }, { @@ -23,22 +23,22 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ props: { name: "declares", label: - "The contracting partner hereby declares that" as TranslatedString, + i18n.str`The contracting partner hereby declares that`, required: true, choices: [ { label: - "the person(s) listed below is/are holding 25% or more of the contracting partner's shares (capital shares or voting rights)" as TranslatedString, + i18n.str`the person(s) listed below is/are holding 25% or more of the contracting partner's shares (capital shares or voting rights)`, value: "25-or-more", }, { label: - "if the capital shares or voting rights cannot be determined or in case there are no capital shares or voting rights 25% or more, the contracting partner hereby declares that the person(s) listed below is/are controlling the contracting partner in other ways" as TranslatedString, + i18n.str`if the capital shares or voting rights cannot be determined or in case there are no capital shares or voting rights 25% or more, the contracting partner hereby declares that the person(s) listed below is/are controlling the contracting partner in other ways`, value: "controlling-in-other-ways", }, { label: - "in case this/these person(s) cannot be determined or this/these person(s) does/do not exist, the contracting partner hereby declares that the person(s) listed below is/are the managing director(s)" as TranslatedString, + i18n.str`in case this/these person(s) cannot be determined or this/these person(s) does/do not exist, the contracting partner hereby declares that the person(s) listed below is/are the managing director(s)`, value: "managing-director", }, ], @@ -48,15 +48,15 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ type: "array", props: { name: "people", - label: "People" as TranslatedString, + label: i18n.str`People`, required: true, - placeholder: "this is the placeholder" as TranslatedString, + placeholder: i18n.str`this is the placeholder`, fields: [ { type: "text", props: { name: "lastName", - label: "Last name(s)" as TranslatedString, + label: i18n.str`Last name(s)`, required: true, }, }, @@ -64,7 +64,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ type: "text", props: { name: "firstName", - label: "First name(s)" as TranslatedString, + label: i18n.str`First name(s)`, required: true, }, }, @@ -72,7 +72,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ type: "text", props: { name: "address", - label: "Actual address of domicile" as TranslatedString, + label: i18n.str`Actual address of domicile`, required: true, }, }, @@ -84,26 +84,26 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_11.Form> => ({ type: "choiceStacked", props: { name: "fiduciaryAssets", - label: "Fiduciary holding assets" as TranslatedString, - help: "Is a third person the beneficial owner of the assets held in the account/securities account?" as TranslatedString, + label: i18n.str`Fiduciary holding assets`, + help: i18n.str`Is a third person the beneficial owner of the assets held in the account/securities account?`, required: true, choices: [ { - label: "No" as TranslatedString, + label: i18n.str`No`, value: "no", }, { - label: "Yes" as TranslatedString, + label: i18n.str`Yes`, value: "yes", description: - "The relevant information regarding the beneficial owner has to be obtained by filling in a separate VQF doc. No. 902.9" as TranslatedString, + i18n.str`The relevant information regarding the beneficial owner has to be obtained by filling in a separate VQF doc. No. 902.9`, }, ], }, }, ], }, - resolutionSection(current), + resolutionSection(current, i18n), ], behavior: function formBehavior( v: Partial<Form902_11.Form>, |