aboutsummaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src/Form.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-05-10 15:01:56 -0300
committerSebastian <sebasjm@gmail.com>2023-05-10 15:01:56 -0300
commit55a1e8c6e1ab34702525aadf18b1acce2d06e616 (patch)
treedf430fee9ba715fc64c342052b43c1b66a532cd7 /packages/exchange-backoffice-ui/src/Form.tsx
parentf281803f1e555b8e8c1e76612b1f6b7128033cd6 (diff)
fix form
Diffstat (limited to 'packages/exchange-backoffice-ui/src/Form.tsx')
-rw-r--r--packages/exchange-backoffice-ui/src/Form.tsx906
1 files changed, 449 insertions, 457 deletions
diff --git a/packages/exchange-backoffice-ui/src/Form.tsx b/packages/exchange-backoffice-ui/src/Form.tsx
index 53458824d..e8c6af369 100644
--- a/packages/exchange-backoffice-ui/src/Form.tsx
+++ b/packages/exchange-backoffice-ui/src/Form.tsx
@@ -1,8 +1,8 @@
import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, h } from "preact";
-import { useState } from "preact/hooks";
-import { FormProvider } from "./forms/FormProvider.js";
+import { useRef, useState } from "preact/hooks";
+import { FormProvider, FormState } from "./forms/FormProvider.js";
import { DoubleColumnForm, RenderAllFieldsByUiConfig } from "./forms/forms.js";
import { CircleStackIcon } from "@heroicons/react/24/outline";
@@ -218,232 +218,234 @@ const firstForm: DoubleColumnForm = [
name: "filler.when",
pattern: "dd/MM/yyyy",
label: "Date" as TranslatedString,
+ help: "format 'dd/MM/yyyy'" as TranslatedString,
},
},
],
},
- {
- title: "Information on customer" as TranslatedString,
- description:
- "The customer is the person with whom the member concludes the contract with regard to the financial service provided (civil law). Does the member act as director of a domiciliary company, this domiciliary company is the customer." as TranslatedString,
- fields: [
- {
- type: "choiceStacked",
- props: {
- name: "customerType",
- label: "Type of customer" as TranslatedString,
- required: true,
- choices: [
- {
- label: "Natural person" as TranslatedString,
- value: "natural",
- },
- {
- label: "Legal entity" as TranslatedString,
- value: "legal",
- },
- ],
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.fullName",
- label: "Full name" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.address",
- label: "Residential address" as TranslatedString,
- required: true,
- },
- },
- {
- type: "integer",
- props: {
- name: "naturalCustomer.telephone",
- label: "Telephone" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.email",
- label: "E-mail" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.dateOfBirth",
- label: "Date of birth" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.nationality",
- label: "Nationality" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.document",
- label: "Identification document" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.companyName",
- label: "Company name" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.office",
- label: "Registered office" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "naturalCustomer.companyDocument",
- label: "Company identification document" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "legalCustomer.companyName",
- label: "Company name" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "legalCustomer.domicile",
- label: "Domicile" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "legalCustomer.contactPerson",
- label: "Contact person" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "legalCustomer.telephone",
- label: "Telephone" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "legalCustomer.email",
- label: "E-mail" as TranslatedString,
- },
- },
- {
- type: "text",
- props: {
- name: "legalCustomer.document",
- label: "Identification document" as TranslatedString,
- },
- },
- ],
- },
- {
- title:
- "Information on the natural persons who establish the business relationship for legal entities and partnerships" as TranslatedString,
- description:
- "For legal entities and partnerships the identity of the natural persons who establish the business relationship must be verified." as TranslatedString,
- fields: [
- {
- type: "array",
- props: {
- name: "businessEstablisher",
- label: "Persons" as TranslatedString,
- required: true,
- tooltip: "hola" as TranslatedString,
- placeholder: "this is the placeholder" as TranslatedString,
- fields: [
- {
- type: "text",
- props: {
- name: "fullName",
- label: "Full name" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "address",
- label: "Residential address" as TranslatedString,
- required: true,
- },
- },
- {
- type: "date",
- props: {
- name: "dateOfBirth",
- label: "Date of birth" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "nationality",
- label: "Nationality" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "typeOfAuthorization",
- label:
- "Type of authorization (signatory of representation)" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "document",
- label: "Identification document" as TranslatedString,
- required: true,
- },
- },
- {
- type: "text",
- props: {
- name: "powerOfAttorneyArrangements",
- label: "Residential address" as TranslatedString,
- required: true,
- },
- },
- ],
- labelField: "fullName",
- },
- },
- ],
- },
+ // {
+ // title: "Information on customer" as TranslatedString,
+ // description:
+ // "The customer is the person with whom the member concludes the contract with regard to the financial service provided (civil law). Does the member act as director of a domiciliary company, this domiciliary company is the customer." as TranslatedString,
+ // fields: [
+ // {
+ // type: "choiceStacked",
+ // props: {
+ // name: "customerType",
+ // label: "Type of customer" as TranslatedString,
+ // required: true,
+ // choices: [
+ // {
+ // label: "Natural person" as TranslatedString,
+ // value: "natural",
+ // },
+ // {
+ // label: "Legal entity" as TranslatedString,
+ // value: "legal",
+ // },
+ // ],
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.fullName",
+ // label: "Full name" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.address",
+ // label: "Residential address" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "integer",
+ // props: {
+ // name: "naturalCustomer.telephone",
+ // label: "Telephone" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.email",
+ // label: "E-mail" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.dateOfBirth",
+ // label: "Date of birth" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.nationality",
+ // label: "Nationality" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.document",
+ // label: "Identification document" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.companyName",
+ // label: "Company name" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.office",
+ // label: "Registered office" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "naturalCustomer.companyDocument",
+ // label: "Company identification document" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "legalCustomer.companyName",
+ // label: "Company name" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "legalCustomer.domicile",
+ // label: "Domicile" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "legalCustomer.contactPerson",
+ // label: "Contact person" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "legalCustomer.telephone",
+ // label: "Telephone" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "legalCustomer.email",
+ // label: "E-mail" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "legalCustomer.document",
+ // label: "Identification document" as TranslatedString,
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // title:
+ // "Information on the natural persons who establish the business relationship for legal entities and partnerships" as TranslatedString,
+ // description:
+ // "For legal entities and partnerships the identity of the natural persons who establish the business relationship must be verified." as TranslatedString,
+ // fields: [
+ // {
+ // type: "array",
+ // props: {
+ // name: "businessEstablisher",
+ // label: "Persons" as TranslatedString,
+ // required: true,
+ // tooltip: "hola" as TranslatedString,
+ // placeholder: "this is the placeholder" as TranslatedString,
+ // fields: [
+ // {
+ // type: "text",
+ // props: {
+ // name: "fullName",
+ // label: "Full name" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "address",
+ // label: "Residential address" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "date",
+ // props: {
+ // name: "dateOfBirth",
+ // label: "Date of birth" as TranslatedString,
+ // required: true,
+ // help: "format 'dd/MM/yyyy'" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "nationality",
+ // label: "Nationality" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "typeOfAuthorization",
+ // label:
+ // "Type of authorization (signatory of representation)" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "document",
+ // label: "Identification document" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "powerOfAttorneyArrangements",
+ // label: "Residential address" as TranslatedString,
+ // required: true,
+ // },
+ // },
+ // ],
+ // labelField: "fullName",
+ // },
+ // },
+ // ],
+ // },
{
title: "Acceptance of business relationship" as TranslatedString,
fields: [
@@ -453,6 +455,7 @@ const firstForm: DoubleColumnForm = [
name: "acceptance.when",
pattern: "dd/MM/yyyy",
label: "Date (conclusion of contract)" as TranslatedString,
+ help: "format 'dd/MM/yyyy'" as TranslatedString,
},
},
{
@@ -522,6 +525,7 @@ const firstForm: DoubleColumnForm = [
name: "acceptance.language",
label: "Languages" as TranslatedString,
choices: languageList,
+ unique: true,
},
},
{
@@ -533,256 +537,244 @@ const firstForm: DoubleColumnForm = [
},
],
},
- {
- title:
- "Information on the beneficial owner of the assets and/or controlling person" as TranslatedString,
- description:
- "Establishment of the beneficial owner of the assets and/or controlling person" as TranslatedString,
- fields: [
- {
- type: "choiceStacked",
- props: {
- name: "establishment",
- label: "The customer is" as TranslatedString,
- required: true,
- choices: [
- {
- label:
- "a natural person and there are no doubts that this person is the sole beneficial owner of the assets" as TranslatedString,
- value: "natural",
- },
- {
- label:
- "a foundation (or a similar construct; incl. underlying companies)" as TranslatedString,
- value: "foundation",
- },
- {
- label: "a trust (incl. underlying companies)" as TranslatedString,
- value: "trust",
- },
- {
- label:
- "a life insurance policy with separately managed accounts/securities accounts" as TranslatedString,
- value: "insurance-wrapper",
- },
- {
- label: "all other cases" as TranslatedString,
- value: "other",
- },
- ],
- },
+ // {
+ // title:
+ // "Information on the beneficial owner of the assets and/or controlling person" as TranslatedString,
+ // description:
+ // "Establishment of the beneficial owner of the assets and/or controlling person" as TranslatedString,
+ // fields: [
+ // {
+ // type: "choiceStacked",
+ // props: {
+ // name: "establishment",
+ // label: "The customer is" as TranslatedString,
+ // required: true,
+ // choices: [
+ // {
+ // label:
+ // "a natural person and there are no doubts that this person is the sole beneficial owner of the assets" as TranslatedString,
+ // value: "natural",
+ // },
+ // {
+ // label:
+ // "a foundation (or a similar construct; incl. underlying companies)" as TranslatedString,
+ // value: "foundation",
+ // },
+ // {
+ // label: "a trust (incl. underlying companies)" as TranslatedString,
+ // value: "trust",
+ // },
+ // {
+ // label:
+ // "a life insurance policy with separately managed accounts/securities accounts" as TranslatedString,
+ // value: "insurance-wrapper",
+ // },
+ // {
+ // label: "all other cases" as TranslatedString,
+ // value: "other",
+ // },
+ // ],
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // title:
+ // "Evaluation with regard to embargo procedures/terrorism lists on establishing the business relationship" as TranslatedString,
+ // description:
+ // "Verification whether the customer, beneficial owners of the assets, controlling persons, authorized representatives or other involved persons are listed on an embargo/terrorism list (date of verification/result)" as TranslatedString,
+ // fields: [
+ // {
+ // type: "textArea",
+ // props: {
+ // name: "embargoEvaluation",
+ // help: "The evaluation must be made at the beginning of the business relationship and has to be repeated in the case of permanent business relationship every time the according lists are updated." as TranslatedString,
+ // label: "Evaluation" as TranslatedString,
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // title:
+ // "In the case of cash transactions/occasional customers: Information on type and purpose of business relationship" as TranslatedString,
+ // description:
+ // "These details are only necessary for occasional customers, i.e. money exchange, money and asset transfer or other cash transactions provided that no customer profile (VQF doc. No. 902.5) is created" as TranslatedString,
+ // fields: [
+ // {
+ // type: "choiceStacked",
+ // props: {
+ // name: "cashTransactions.typeOfBusiness",
+ // label: "Type of business relationship" as TranslatedString,
+ // choices: [
+ // {
+ // label: "Money exchange" as TranslatedString,
+ // value: "money-exchange",
+ // },
+ // {
+ // label: "Money and asset transfer" as TranslatedString,
+ // value: "money-and-asset-transfer",
+ // },
+ // {
+ // label:
+ // "Other cash transactions. Specify below" as TranslatedString,
+ // value: "other",
+ // },
+ // ],
+ // },
+ // },
+ // {
+ // type: "text",
+ // props: {
+ // name: "cashTransactions.otherTypeOfBusiness",
+ // required: true,
+ // label: "Specify other cash transactions:" as TranslatedString,
+ // },
+ // },
+ // {
+ // type: "textArea",
+ // props: {
+ // name: "cashTransactions.purpose",
+ // label:
+ // "Purpose of the business relationship (purpose of service requested)" as TranslatedString,
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // title: "Enclosures" as TranslatedString,
+ // fields: [
+ // {
+ // type: "text",
+ // props: {
+ // label: "Customer identification documents" as TranslatedString,
+ // name: "ASd",
+ // },
+ // },
+ // ],
+ // },
+];
+
+function formBehavior(v: Form902_1e.Form): FormState<Form902_1e.Form> {
+ return {
+ filler: {
+ fullName: {
+ disabled: true,
},
- ],
- },
- {
- title:
- "Evaluation with regard to embargo procedures/terrorism lists on establishing the business relationship" as TranslatedString,
- description:
- "Verification whether the customer, beneficial owners of the assets, controlling persons, authorized representatives or other involved persons are listed on an embargo/terrorism list (date of verification/result)" as TranslatedString,
- fields: [
- {
- type: "textArea",
- props: {
- name: "embargoEvaluation",
- help: "The evaluation must be made at the beginning of the business relationship and has to be repeated in the case of permanent business relationship every time the according lists are updated." as TranslatedString,
- label: "Evaluation" as TranslatedString,
- },
+ when: {
+ disabled: true,
},
- ],
- },
-
- {
- title:
- "In the case of cash transactions/occasional customers: Information on type and purpose of business relationship" as TranslatedString,
- description:
- "These details are only necessary for occasional customers, i.e. money exchange, money and asset transfer or other cash transactions provided that no customer profile (VQF doc. No. 902.5) is created" as TranslatedString,
- fields: [
- {
- type: "choiceStacked",
- props: {
- name: "cashTransactions.typeOfBusiness",
- label: "Type of business relationship" as TranslatedString,
- choices: [
- {
- label: "Money exchange" as TranslatedString,
- value: "money-exchange",
- },
- {
- label: "Money and asset transfer" as TranslatedString,
- value: "money-and-asset-transfer",
- },
- {
- label:
- "Other cash transactions. Specify below" as TranslatedString,
- value: "other",
- },
- ],
- },
+ },
+ acceptance: {
+ thirdPartyFullName: {
+ hidden: v.acceptance?.typeOfCorrespondence !== "correspondence-address",
},
- {
- type: "text",
- props: {
- name: "cashTransactions.otherTypeOfBusiness",
- required: true,
- label: "Specify other cash transactions:" as TranslatedString,
- },
+ thirdPartyAddress: {
+ hidden: v.acceptance?.typeOfCorrespondence !== "correspondence-address",
},
- {
- type: "textArea",
- props: {
- name: "cashTransactions.purpose",
- label:
- "Purpose of the business relationship (purpose of service requested)" as TranslatedString,
- },
+ },
+ cashTransactions: {
+ otherTypeOfBusiness: {
+ hidden: v.cashTransactions?.typeOfBusiness !== "other",
},
- ],
- },
- {
- title: "Enclosures" as TranslatedString,
- fields: [
- {
- type: "text",
- props: {
- label: "Customer identification documents" as TranslatedString,
- name: "ASd",
- },
+ },
+ naturalCustomer: {
+ fullName: {
+ hidden: v.customerType !== "natural",
},
- ],
- },
-];
+ address: {
+ hidden: v.customerType !== "natural",
+ },
+ telephone: {
+ hidden: v.customerType !== "natural",
+ },
+ email: {
+ hidden: v.customerType !== "natural",
+ },
+ dateOfBirth: {
+ hidden: v.customerType !== "natural",
+ },
+ nationality: {
+ hidden: v.customerType !== "natural",
+ },
+ document: {
+ hidden: v.customerType !== "natural",
+ },
+ companyName: {
+ hidden: v.customerType !== "natural",
+ },
+ office: {
+ hidden: v.customerType !== "natural",
+ },
+ companyDocument: {
+ hidden: v.customerType !== "natural",
+ },
+ },
+ legalCustomer: {
+ companyName: {
+ hidden: v.customerType !== "legal",
+ },
+ contactPerson: {
+ hidden: v.customerType !== "legal",
+ },
+ document: {
+ hidden: v.customerType !== "legal",
+ },
+ domicile: {
+ hidden: v.customerType !== "legal",
+ },
+ email: {
+ hidden: v.customerType !== "legal",
+ },
+ telephone: {
+ hidden: v.customerType !== "legal",
+ },
+ },
+ };
+}
-export function Form() {
+export function Form({ onUpdate }: { onUpdate: (d: any) => void }) {
const { i18n } = useTranslationContext();
- const formState = useState<Form902_1e.Form>({
+ const initial: Form902_1e.Form = {
filler: {
fullName: "Sebastian Marchano",
when: {
t_ms: Date.now(),
},
},
- // acceptance: {
- // language: ["spa"],
- // },
- // businessEstablisher: [
- // {
- // document: "2121",
- // fullName: "sebastian marchano",
- // },
- // {
- // document: "3131",
- // fullName: "romina cordoba",
- // },
- // ],
- } as Form902_1e.Form);
-
+ } as Form902_1e.Form;
return (
- <FormProvider
- state={formState}
- computeFormState={(v) => {
- return {
- filler: {
- fullName: {
- disabled: true,
- },
- when: {
- disabled: true,
- },
- },
- acceptance: {
- thirdPartyFullName: {
- hidden:
- v.acceptance?.typeOfCorrespondence !== "correspondence-address",
- },
- thirdPartyAddress: {
- hidden:
- v.acceptance?.typeOfCorrespondence !== "correspondence-address",
- },
- },
- cashTransactions: {
- otherTypeOfBusiness: {
- hidden: v.cashTransactions?.typeOfBusiness !== "other",
- },
- },
- naturalCustomer: {
- fullName: {
- hidden: v.customerType !== "natural",
- },
- address: {
- hidden: v.customerType !== "natural",
- },
- telephone: {
- hidden: v.customerType !== "natural",
- },
- email: {
- hidden: v.customerType !== "natural",
- },
- dateOfBirth: {
- hidden: v.customerType !== "natural",
- },
- nationality: {
- hidden: v.customerType !== "natural",
- },
- document: {
- hidden: v.customerType !== "natural",
- },
- companyName: {
- hidden: v.customerType !== "natural",
- },
- office: {
- hidden: v.customerType !== "natural",
- },
- companyDocument: {
- hidden: v.customerType !== "natural",
- },
- },
- legalCustomer: {
- companyName: {
- hidden: v.customerType !== "legal",
- },
- contactPerson: {
- hidden: v.customerType !== "legal",
- },
- document: {
- hidden: v.customerType !== "legal",
- },
- domicile: {
- hidden: v.customerType !== "legal",
- },
- email: {
- hidden: v.customerType !== "legal",
- },
- telephone: {
- hidden: v.customerType !== "legal",
- },
- },
- };
- }}
- >
- <div class="space-y-10 divide-y -mt-5 divide-gray-900/10">
- {firstForm.map((section) => {
- return (
- <div class="grid grid-cols-1 gap-x-8 gap-y-8 pt-5 md:grid-cols-3">
- <div class="px-4 sm:px-0">
- <h2 class="text-base font-semibold leading-7 text-gray-900">
- {section.title}
- </h2>
- {section.description && (
- <p class="mt-1 text-sm leading-6 text-gray-600">
- {section.description}
- </p>
- )}
- </div>
- <div class="bg-white shadow-sm ring-1 ring-gray-900/5 sm:rounded-xl md:col-span-2">
- <div class="px-4 py-6 sm:p-8">
- <div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">
- <RenderAllFieldsByUiConfig fields={section.fields} />
+ <Fragment>
+ <FormProvider
+ initialValue={initial}
+ onUpdate={onUpdate}
+ computeFormState={formBehavior}
+ >
+ <div class="space-y-10 divide-y -mt-5 divide-gray-900/10">
+ {firstForm.map((section) => {
+ return (
+ <div class="grid grid-cols-1 gap-x-8 gap-y-8 pt-5 md:grid-cols-3">
+ <div class="px-4 sm:px-0">
+ <h2 class="text-base font-semibold leading-7 text-gray-900">
+ {section.title}
+ </h2>
+ {section.description && (
+ <p class="mt-1 text-sm leading-6 text-gray-600">
+ {section.description}
+ </p>
+ )}
+ </div>
+ <div class="bg-white shadow-sm ring-1 ring-gray-900/5 sm:rounded-xl md:col-span-2">
+ <div class="px-4 py-6 sm:p-8">
+ <div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">
+ <RenderAllFieldsByUiConfig fields={section.fields} />
+ </div>
</div>
</div>
</div>
- </div>
- );
- })}
- </div>
- </FormProvider>
+ );
+ })}
+ </div>
+ </FormProvider>
+ </Fragment>
);
}