From 6138846050563e0dca95b0b6d792776925e4c35f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 20 Nov 2023 12:38:16 -0300 Subject: new forms api --- packages/aml-backoffice-ui/src/forms/902_13e.ts | 32 +++++++++---------------- 1 file changed, 11 insertions(+), 21 deletions(-) (limited to 'packages/aml-backoffice-ui/src/forms/902_13e.ts') diff --git a/packages/aml-backoffice-ui/src/forms/902_13e.ts b/packages/aml-backoffice-ui/src/forms/902_13e.ts index 666cf35d4..f03364de0 100644 --- a/packages/aml-backoffice-ui/src/forms/902_13e.ts +++ b/packages/aml-backoffice-ui/src/forms/902_13e.ts @@ -1,10 +1,10 @@ import { AbsoluteTime, 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 } from "./index.js"; -import { Simplest, resolutionSection } from "./simplest.js"; +import { resolutionSection } from "./simplest.js"; -export const v1 = (current: State): FlexibleForm => ({ +export const v1 = (current: BaseForm): FlexibleForm => ({ versionId: "2023-05-15", design: [ { @@ -104,7 +104,7 @@ export const v1 = (current: State): FlexibleForm => ({ name: "dateOfBirth", label: "Date of birth" as TranslatedString, pattern: "dd/MM/yyyy", - help: "format 'dd/MM/yyyy'" as TranslatedString, + // help: "format 'dd/MM/yyyy'" as TranslatedString, }, }, { @@ -120,7 +120,8 @@ export const v1 = (current: State): FlexibleForm => ({ name: "dateOfDeath", label: "Date of death" as TranslatedString, pattern: "dd/MM/yyyy", - help: "if deceased. format 'dd/MM/yyyy'" as TranslatedString, + // help: "if deceased. format 'dd/MM/yyyy'" as TranslatedString, + help: "if deceased'" as TranslatedString, }, }, { @@ -182,7 +183,7 @@ export const v1 = (current: State): FlexibleForm => ({ name: "dateOfBirth", label: "Date of birth" as TranslatedString, pattern: "dd/MM/yyyy", - help: "format 'dd/MM/yyyy'" as TranslatedString, + // help: "format 'dd/MM/yyyy'" as TranslatedString, }, }, { @@ -198,7 +199,8 @@ export const v1 = (current: State): FlexibleForm => ({ name: "dateOfDeath", label: "Date of death" as TranslatedString, pattern: "dd/MM/yyyy", - help: "if deceased. format 'dd/MM/yyyy'" as TranslatedString, + help: "if deceased." as TranslatedString, + // help: "if deceased. format 'dd/MM/yyyy'" as TranslatedString, }, }, ], @@ -241,7 +243,7 @@ export const v1 = (current: State): FlexibleForm => ({ name: "dateOfBirth", label: "Date of birth" as TranslatedString, pattern: "dd/MM/yyyy", - help: "format 'dd/MM/yyyy'" as TranslatedString, + // help: "format 'dd/MM/yyyy'" as TranslatedString, }, }, { @@ -423,15 +425,6 @@ export const v1 = (current: State): FlexibleForm => ({ ], }, }, - { - type: "date", - props: { - name: "when", - label: "Date" as TranslatedString, - pattern: "dd/MM/yyyy", - help: "format 'dd/MM/yyyy'" as TranslatedString, - }, - }, { type: "text", props: { @@ -474,9 +467,6 @@ export const v1 = (current: State): FlexibleForm => ({ }; }), }, - when: { - disabled: true, - }, }; }, }); @@ -507,7 +497,7 @@ namespace Form902_13 { type Founder = WithRevoke>; type Beneficiary = WithClaim; - export interface Form extends Simplest.WithResolution { + export interface Form extends BaseForm { contractingPartner: string; knownAs: string; boardMember: string; -- cgit v1.2.3