aboutsummaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src/forms/902_9e.ts
blob: d68caba23bbe1b8ffc6ce4f5a023358ee8826e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
import { FlexibleForm, languageList } from "./index.js";
import { FormState } from "../handlers/FormProvider.js";

export const v1: FlexibleForm<Form902_12e.Form> = {
  versionId: "2023-05-15",
  design: [
    {
      title: "9" as TranslatedString,
      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,
      fields: [
        {
          type: "textArea",
          props: {
            name: "contractingPartner",
            label: "Contracting partner" as TranslatedString,
          },
        },
        {
          type: "date",
          props: {
            name: "when",
            pattern: "dd/MM/yyyy",
            label: "Date" as TranslatedString,
            help: "format 'dd/MM/yyyy'" as TranslatedString,
          },
        },
      ],
    },
  ],
  behavior: function formBehavior(
    v: Partial<Form902_12e.Form>,
  ): FormState<Form902_12e.Form> {
    return {
      when: {
        disabled: true,
      },
    };
  },
};

namespace Form902_12e {
  export interface Form {
    contractingPartner: string;
    when: AbsoluteTime;
  }
}