aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/902_9e.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-04-30 14:21:01 -0300
committerSebastian <sebasjm@gmail.com>2024-04-30 14:21:15 -0300
commit20d2861508df18da18e66c94a5a268067565121b (patch)
tree24421fb8c797d50d5ad6bc7c6ff6460f469b5e11 /packages/aml-backoffice-ui/src/forms/902_9e.ts
parent84adb1e78e49057cdcee15c71ad788f56bb0fff9 (diff)
downloadwallet-core-20d2861508df18da18e66c94a5a268067565121b.tar.gz
wallet-core-20d2861508df18da18e66c94a5a268067565121b.tar.bz2
wallet-core-20d2861508df18da18e66c94a5a268067565121b.zip
testing aml form as json
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_9e.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/902_9e.ts30
1 files changed, 15 insertions, 15 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_9e.ts b/packages/aml-backoffice-ui/src/forms/902_9e.ts
index 62fca5647..297ec86b1 100644
--- a/packages/aml-backoffice-ui/src/forms/902_9e.ts
+++ b/packages/aml-backoffice-ui/src/forms/902_9e.ts
@@ -14,11 +14,11 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
import { AbsoluteTime } from "@gnu-taler/taler-util";
-import { FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
-import { BaseForm } from "./declaration.js";
+import { FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
+import { BaseForm } from "../context/ui-forms.js";
import { resolutionSection } from "./simplest.js";
-export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Form902_9.Form> => ({
+export const v1 = (i18n: InternationalizationAPI) =>({
design: [
{
title:
@@ -26,42 +26,42 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
fields: [
{
type: "textArea",
- props: {
+ properties: {
name: "contractingPartner",
label: i18n.str`Contracting partner`,
},
},
{
type: "caption",
- props: {
+ properties: {
label:
i18n.str`The contracting partner hereby declares that the person(s) listed below is/are the beneficial owner(s) of the assets involved in the business relationship. If the contracting partner is also the sole beneficial owner of the assets, the contracting partner's detail must be set out below`,
},
},
{
type: "array",
- props: {
+ properties: {
label: i18n.str`Persons`,
labelField: "surname",
name: "persons",
fields: [
{
type: "text",
- props: {
+ properties: {
name: "surname",
label: i18n.str`Surname(s)`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "firstName",
label: i18n.str`First name(s)`,
},
},
{
type: "absoluteTime",
- props: {
+ properties: {
name: "dateOfBirth",
label: i18n.str`Date of birth`,
pattern: "dd/MM/yyyy",
@@ -70,14 +70,14 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "text",
- props: {
+ properties: {
name: "nationality",
label: i18n.str`Nationality`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "address",
label: i18n.str`Actual address of domicile`,
},
@@ -87,28 +87,28 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
},
{
type: "caption",
- props: {
+ properties: {
label:
i18n.str`The contracting partner hereby undertakes to inform automatically of any changes to the information contained herein`,
},
},
{
type: "text",
- props: {
+ properties: {
name: "signature",
label: i18n.str`Signature`,
},
},
{
type: "caption",
- props: {
+ properties: {
label:
i18n.str`It is a criminal offense to deliberately provide false information on this form (article 251 of the Swiss Criminal Code, document forgery)`,
},
},
],
},
- resolutionSection(current, i18n),
+ resolutionSection(i18n),
],
behavior: function formBehavior(
// v: Partial<Form902_9.Form>,