taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit c9c4b6f06c57d42835c6f4cecb1371f7a884763b
parent 3553487f8041e666a5fbe9165c0642ddc866386b
Author: Florian Dold <florian@dold.me>
Date:   Thu, 22 May 2025 02:21:53 +0200

forms: put free-form industry in OTHER field

Diffstat:
Mpackages/taler-util/src/taler-form-attributes.ts | 8+++++++-
Mpackages/web-util/src/forms/gana/GLS_Onboarding.ts | 11++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/packages/taler-util/src/taler-form-attributes.ts b/packages/taler-util/src/taler-form-attributes.ts @@ -231,7 +231,7 @@ export const TalerFormAttributes = { */ PEP_ACCEPTANCE_DATE: "PEP_ACCEPTANCE_DATE" as const, /** - * Description: True if the person is in a country for which FATF requires increased dilegence. + * Description: True if the person is in a country for which FATF requires incresed dilegence. * * GANA Type: Boolean */ @@ -543,6 +543,12 @@ export const TalerFormAttributes = { */ BUSINESS_INDUSTRY: "BUSINESS_INDUSTRY" as const, /** + * Description: Free-form industry, when BUSINESS_INDUSTRY is OTHER. + * + * GANA Type: String + */ + BUSINESS_INDUSTRY_OTHER: "BUSINESS_INDUSTRY_OTHER" as const, + /** * Description: List of natural persons that are legal representatives or shareholders. * * GANA Type: GLS_BusinessRepresentative[] diff --git a/packages/web-util/src/forms/gana/GLS_Onboarding.ts b/packages/web-util/src/forms/gana/GLS_Onboarding.ts @@ -190,7 +190,16 @@ export function GLS_Onboarding( }, { id: TalerFormAttributes.BUSINESS_INDUSTRY, - label: i18n.str`Industry`, + type: "choiceHorizontal", + choices: [{ + value: "OTHER", + label: "Other (free-form selection)" + }], + label: i18n.str`Industry (choose from list)` + }, + { + id: TalerFormAttributes.BUSINESS_INDUSTRY_OTHER, + label: i18n.str`Industry (free-form entry for other)`, type: "text", required: true, },