diff --git a/src/client/components/ParticipantDetailsPage/ParticipantDetailsPage.jsx b/src/client/components/ParticipantDetailsPage/ParticipantDetailsPage.jsx index 1d646bea..6a21c3b3 100644 --- a/src/client/components/ParticipantDetailsPage/ParticipantDetailsPage.jsx +++ b/src/client/components/ParticipantDetailsPage/ParticipantDetailsPage.jsx @@ -61,12 +61,14 @@ export function getParticipantDetailsPage(participantStore, participantActions) const { firstName, lastName, + nickname, dateOfBirth, nonScout, billedDate, paidDate, memberNumber, homeCity, + country, email, phoneNumber, ageGroup, @@ -89,7 +91,7 @@ export function getParticipantDetailsPage(participantStore, participantActions) } = this.state.participantDetails; const participantName = `${firstName} ${lastName}`; - const participantStatus = internationalGuest ? 'KV-osallistuja' : ( nonScout ? 'EVP' : `Partiolainen (jäsennumero: ${memberNumber})` ); + const participantStatus = internationalGuest ? `KV-osallistuja, ${country}` : ( nonScout ? 'EVP' : `Partiolainen (jäsennumero: ${memberNumber})` ); const formattedBilledDate = billedDate ? moment(billedDate).format('D.M.YYYY') : '–'; const formattedPaidDate = paidDate ? moment(paidDate).format('D.M.YYYY') : '–'; @@ -115,6 +117,7 @@ export function getParticipantDetailsPage(participantStore, participantActions)

{ participantName } + { nickname || '' } (synt. { moment(dateOfBirth).format('D.M.YYYY') })

{ participantStatus }

@@ -152,7 +155,7 @@ export function getParticipantDetailsPage(participantStore, participantActions) { swimmingSkill ?
Uimataito
: '' } { swimmingSkill ?
{ swimmingSkill }
: '' }
Lippukunta
-
{ localGroup }
+
{ `${localGroup}, ${country}` }
Leirilippukunta
{ campGroup }
Kylä
diff --git a/src/client/components/ParticipantListPage/ParticipantListPage.jsx b/src/client/components/ParticipantListPage/ParticipantListPage.jsx index 4a238598..acd36671 100644 --- a/src/client/components/ParticipantListPage/ParticipantListPage.jsx +++ b/src/client/components/ParticipantListPage/ParticipantListPage.jsx @@ -213,7 +213,9 @@ export function getParticipantListPage(participantStore, participantActions, sea email: 'Sähköposti', phoneNumber: 'Puhelinnumero', ageGroup: 'Ikäkausi', + accommodation: 'Majoittuminen', localGroup: 'Lippukunta', + village: 'Kylä', subCamp: 'Alaleiri', campGroup: 'Leirilippukunta', }; diff --git a/src/client/components/ParticipantListPage/ParticipantRow.jsx b/src/client/components/ParticipantListPage/ParticipantRow.jsx index 282aedcc..221d4ee0 100644 --- a/src/client/components/ParticipantListPage/ParticipantRow.jsx +++ b/src/client/components/ParticipantListPage/ParticipantRow.jsx @@ -55,6 +55,8 @@ export class ParticipantRow extends React.Component { localGroup, subCamp, campGroup, + village, + accommodation, presence, } = this.props.participant; @@ -87,7 +89,9 @@ export class ParticipantRow extends React.Component { { formatNullableString(email) } { formatNullableString(phoneNumber) } { ageGroup } + { formatNullableString(accommodation) } { localGroup } + { village } { subCamp } { campGroup } diff --git a/src/client/components/ParticipantListPage/containers/QuickFilterContainer.jsx b/src/client/components/ParticipantListPage/containers/QuickFilterContainer.jsx index 661625fe..81ecfb64 100644 --- a/src/client/components/ParticipantListPage/containers/QuickFilterContainer.jsx +++ b/src/client/components/ParticipantListPage/containers/QuickFilterContainer.jsx @@ -25,7 +25,7 @@ export function getQuickFilterContainer(participantStore, participantActions, se } function QuickFilterContainer(props, context) { - const currentSelection = getCurrentSelection(['textSearch', 'ageGroup', 'subCamp', 'localGroup', 'campGroup', 'presence'], props.filter); + const currentSelection = getCurrentSelection(['textSearch', 'ageGroup', 'subCamp', 'localGroup', 'campGroup', 'presence', 'village'], props.filter); function resetFilters(event) { event.preventDefault(); @@ -66,6 +66,12 @@ export function getQuickFilterContainer(participantStore, participantActions, se label="Alaleiri" property="subCamp" /> +