Skip to content

Commit 9c6e8b3

Browse files
authored
Events v2: add FILE input (#348)
1 parent 93294a7 commit 9c6e8b3

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

src/client-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ window.config = {
1414
LOGIN_URL: 'http://localhost:3020',
1515
AUTH_URL: 'http://localhost:7070/auth/',
1616
MINIO_BUCKET: 'ocrvs',
17+
MINIO_URL: 'http://localhost:3535/ocrvs/',
1718
COUNTRY_CONFIG_URL: 'http://localhost:3040',
1819
// Country code in uppercase ALPHA-3 format
1920
COUNTRY: 'FAR',

src/client-config.prod.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ window.config = {
1313
CONFIG_API_URL: 'https://config.{{hostname}}',
1414
LOGIN_URL: 'https://login.{{hostname}}',
1515
AUTH_URL: 'https://gateway.{{hostname}}/auth/',
16+
MINIO_URL: 'https://minio.{{hostname}}/ocrvs/',
1617
MINIO_BUCKET: 'ocrvs',
1718
COUNTRY_CONFIG_URL: 'https://countryconfig.{{hostname}}',
1819
// Country code in uppercase ALPHA-3 format

src/form/tennis-club-membership.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,27 @@ const TENNIS_CLUB_FORM = defineForm({
9090
description: 'This is the label for the field',
9191
id: 'event.tennis-club-membership.action.declare.form.section.who.field.dob.label'
9292
}
93+
},
94+
{
95+
id: 'applicant.image',
96+
type: 'FILE',
97+
required: false,
98+
label: {
99+
defaultMessage: "Applicant's profile picture",
100+
description: 'This is the label for the field',
101+
id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label'
102+
}
103+
},
104+
{
105+
id: 'applicant.image.label',
106+
type: 'TEXT',
107+
required: false,
108+
label: {
109+
defaultMessage: "Applicant's profile picture description",
110+
description: 'This is the label for the field',
111+
id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label'
112+
}
93113
}
94-
// {
95-
// id: 'applicant.image',
96-
// type: 'FILE',
97-
// required: false,
98-
// label: {
99-
// defaultMessage: "Applicant's profile picture",
100-
// description: 'This is the label for the field',
101-
// id: 'event.tennis-club-membership.action.declare.form.section.who.field.image.label'
102-
// }
103-
// }
104114
]
105115
},
106116
{

0 commit comments

Comments
 (0)