diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
commit | 6138846050563e0dca95b0b6d792776925e4c35f (patch) | |
tree | b33cd36acf4b38d3a016506d4f7fa681c83beb63 /packages/aml-backoffice-ui/src/forms/902_5e.ts | |
parent | 7ed3e78f790837479fc2bb2eb6ddc40c78ce59b5 (diff) | |
download | wallet-core-6138846050563e0dca95b0b6d792776925e4c35f.tar.gz wallet-core-6138846050563e0dca95b0b6d792776925e4c35f.tar.bz2 wallet-core-6138846050563e0dca95b0b6d792776925e4c35f.zip |
new forms api
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_5e.ts')
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/902_5e.ts | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_5e.ts b/packages/aml-backoffice-ui/src/forms/902_5e.ts index 501a3b23c..c3948e1c7 100644 --- a/packages/aml-backoffice-ui/src/forms/902_5e.ts +++ b/packages/aml-backoffice-ui/src/forms/902_5e.ts @@ -1,10 +1,10 @@ import { TranslatedString } from "@gnu-taler/taler-util"; import { FormState } from "../handlers/FormProvider.js"; -import { State } from "../pages/AntiMoneyLaunderingForm.js"; +import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js"; import { FlexibleForm, currencyList } from "./index.js"; -import { Simplest, resolutionSection } from "./simplest.js"; +import { resolutionSection } from "./simplest.js"; -export const v1 = (current: State): FlexibleForm<Form902_5.Form> => ({ +export const v1 = (current: BaseForm): FlexibleForm<Form902_5.Form> => ({ versionId: "2023-05-15", design: [ { @@ -20,22 +20,6 @@ export const v1 = (current: State): FlexibleForm<Form902_5.Form> => ({ help: "Pursuant Identification Form (VQF doc. No. 902.1) numeral 1" as TranslatedString, }, }, - { - type: "text", - props: { - name: "fullName", - label: "Full name" as TranslatedString, - }, - }, - { - type: "date", - props: { - name: "when", - pattern: "dd/MM/yyyy", - label: "Date" as TranslatedString, - help: "format 'dd/MM/yyyy'" as TranslatedString, - }, - }, ], }, { @@ -232,9 +216,6 @@ export const v1 = (current: State): FlexibleForm<Form902_5.Form> => ({ v: Partial<Form902_5.Form>, ): FormState<Form902_5.Form> { return { - when: { - disabled: true, - }, originOfAssets: { categoryOther: { hidden: v.originOfAssets?.category !== "other", @@ -245,7 +226,7 @@ export const v1 = (current: State): FlexibleForm<Form902_5.Form> => ({ }); namespace Form902_5 { - export interface Form extends Simplest.WithResolution { + export interface Form extends BaseForm { customer: string; fullName: string; businessActivity: string; |