Skip to content

Commit

Permalink
Merge pull request #138 from partio-scout/bugfix/country-nickname-labels
Browse files Browse the repository at this point in the history
Add labels to nickname and country on ParticipantDetailsPage
  • Loading branch information
googol authored Jul 18, 2016
2 parents cb105d8 + 4978d08 commit 1c8e825
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function getParticipantDetailsPage(participantStore, participantActions)
} = this.state.participantDetails;

const participantName = `${firstName} ${lastName}`;
const participantStatus = internationalGuest ? `KV-osallistuja, ${country}` : ( nonScout ? 'EVP' : `Partiolainen (jäsennumero: ${memberNumber})` );
const participantStatus = internationalGuest ? 'KV-osallistuja' : ( nonScout ? 'EVP' : `Partiolainen (jäsennumero: ${memberNumber})` );

const formattedBilledDate = billedDate ? moment(billedDate).format('D.M.YYYY') : '–';
const formattedPaidDate = paidDate ? moment(paidDate).format('D.M.YYYY') : '–';
Expand All @@ -119,7 +119,6 @@ export function getParticipantDetailsPage(participantStore, participantActions)
<Col md={ 12 }>
<h2>
{ participantName }
<small> { nickname || '' } </small>
<small> (synt. { moment(dateOfBirth).format('D.M.YYYY') })</small>
</h2>
<h4 className="text-muted margin-bottom">{ participantStatus }</h4>
Expand Down Expand Up @@ -152,12 +151,16 @@ export function getParticipantDetailsPage(participantStore, participantActions)
</Panel>
<Panel header="Osallistujan tiedot">
<dl>
<dt>Partionimi</dt>
<dd>{ nickname || '' }</dd>
<dt>Ikäkausi</dt>
<dd>{ ageGroup }</dd>
{ swimmingSkill ? <dt>Uimataito</dt> : '' }
{ swimmingSkill ? <dd>{ swimmingSkill }</dd> : '' }
<dt>Lippukunta</dt>
<dd>{ `${localGroup}, ${country}` }</dd>
<dd>{ localGroup }</dd>
<dt>Maa</dt>
<dd>{ country }</dd>
<dt>Leirilippukunta</dt>
<dd>{ campGroup }</dd>
<dt>Kylä</dt>
Expand Down

0 comments on commit 1c8e825

Please sign in to comment.