From 04ea6f6bf4ab52951d301951c283cf638b00cbfe Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Wed, 18 Dec 2024 16:01:30 +0200 Subject: [PATCH 1/2] add FILE input --- src/form/tennis-club-membership.ts | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/form/tennis-club-membership.ts b/src/form/tennis-club-membership.ts index efb0ec55..a25cedbe 100644 --- a/src/form/tennis-club-membership.ts +++ b/src/form/tennis-club-membership.ts @@ -90,17 +90,27 @@ const TENNIS_CLUB_FORM = defineForm({ description: 'This is the label for the field', id: 'event.tennis-club-membership.action.declare.form.section.who.field.dob.label' } + }, + { + id: 'applicant.image', + type: 'FILE', + required: false, + label: { + defaultMessage: "Applicant's profile picture", + description: 'This is the label for the field', + id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label' + } + }, + { + id: 'applicant.image.label', + type: 'TEXT', + required: false, + label: { + defaultMessage: "Applicant's profile picture description", + description: 'This is the label for the field', + id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label' + } } - // { - // id: 'applicant.image', - // type: 'FILE', - // required: false, - // label: { - // defaultMessage: "Applicant's profile picture", - // description: 'This is the label for the field', - // id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label' - // } - // } ] }, { From 5ed237d041191a84d765b0940996094e9dac1ead Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Thu, 19 Dec 2024 12:34:04 +0200 Subject: [PATCH 2/2] add minio url to window config --- src/client-config.js | 1 + src/client-config.prod.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client-config.js b/src/client-config.js index 19aa2a2d..d423e7c0 100644 --- a/src/client-config.js +++ b/src/client-config.js @@ -14,6 +14,7 @@ window.config = { LOGIN_URL: 'http://localhost:3020', AUTH_URL: 'http://localhost:7070/auth/', MINIO_BUCKET: 'ocrvs', + MINIO_URL: 'http://localhost:3535/ocrvs/', COUNTRY_CONFIG_URL: 'http://localhost:3040', // Country code in uppercase ALPHA-3 format COUNTRY: 'FAR', diff --git a/src/client-config.prod.js b/src/client-config.prod.js index 7b5e597b..6735e152 100644 --- a/src/client-config.prod.js +++ b/src/client-config.prod.js @@ -13,6 +13,7 @@ window.config = { CONFIG_API_URL: 'https://config.{{hostname}}', LOGIN_URL: 'https://login.{{hostname}}', AUTH_URL: 'https://gateway.{{hostname}}/auth/', + MINIO_URL: 'https://minio.{{hostname}}/ocrvs/', MINIO_BUCKET: 'ocrvs', COUNTRY_CONFIG_URL: 'https://countryconfig.{{hostname}}', // Country code in uppercase ALPHA-3 format