Skip to content

Commit

Permalink
Events v2: add FILE input (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa authored Jan 3, 2025
1 parent 93294a7 commit 9c6e8b3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/client-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/client-config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 20 additions & 10 deletions src/form/tennis-club-membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
// }
// }
]
},
{
Expand Down

0 comments on commit 9c6e8b3

Please sign in to comment.