Skip to content

Commit

Permalink
Add info text for employers
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksson-daniel committed Dec 18, 2023
1 parent 1c79c35 commit eb8d886
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@navikt/ds-react';
import { BodyLong, Button, GuidePanel } from '@navikt/ds-react';
import React, { useEffect } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { useAnkeErrors } from '@app/hooks/use-errors';
Expand Down Expand Up @@ -87,6 +87,10 @@ const RenderAnkebegrunnelsePage = ({ anke }: Props) => {
title_fragment={title_fragment}
page_title={page_title}
>
<GuidePanel>
<BodyLong>{ankeskjema.employer_info}</BodyLong>
</GuidePanel>

<PersonligeOpplysningerSummary
{...user?.navn}
f_or_d_number={user?.folkeregisteridentifikator?.identifikasjonsnummer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ const RenderAnkebegrunnelsePage = ({ anke }: Props) => {
title_fragment={title_fragment}
>
<GuidePanel>
<BodyLong>{ankeskjema_post.should_log_in_digital}</BodyLong>
<BodyLong spacing>{ankeskjema_post.should_log_in_digital}</BodyLong>
<BodyLong>{ankeskjema_post.employer_info}</BodyLong>
</GuidePanel>

<UserInfo klageOrAnke={anke} update={updateAnke} onError={setError} errors={errors} />
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/components/ettersendelse/ettersendelse-page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GuidePanel } from '@navikt/ds-react';
import { BodyLong, BodyShort, GuidePanel } from '@navikt/ds-react';
import React, { useState } from 'react';
import { useAddress } from '@app/hooks/use-address';
import {
Expand Down Expand Up @@ -67,7 +67,7 @@ const InternalEttersendelsePage = ({ innsendingsytelse, authenticated, useErrors

const { errors, setError, isEverythingValid } = useErrors(caseData);

const { title, guide_text } = ettersendelse;
const { title, guide_text, send_by_post, employer_info_logged_in, employer_info_logged_out } = ettersendelse;

const [line1, line2, line3] = useAddress(innsendingsytelse);

Expand All @@ -76,7 +76,9 @@ const InternalEttersendelsePage = ({ innsendingsytelse, authenticated, useErrors
<FormTitleContainer tittel={title} undertittel={undertittel} />
<ContentContainer>
<GuidePanel>
{guide_text}
<BodyLong spacing>{guide_text}</BodyLong>
<BodyLong spacing>{authenticated ? employer_info_logged_in : employer_info_logged_out}</BodyLong>
<BodyShort>{send_by_post}</BodyShort>
<address>
{line1}
<br />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@navikt/ds-react';
import { BodyLong, Button, GuidePanel } from '@navikt/ds-react';
import React, { useEffect } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { useKlageErrors } from '@app/hooks/use-errors';
Expand Down Expand Up @@ -88,6 +88,10 @@ const RenderKlagebegrunnelsePage = ({ klage }: Props) => {
innsendingsytelse={klage.innsendingsytelse}
title_fragment={title_fragment}
>
<GuidePanel>
<BodyLong>{klageskjema.employer_info}</BodyLong>
</GuidePanel>

<PersonligeOpplysningerSummary
{...user?.navn}
f_or_d_number={user?.folkeregisteridentifikator?.identifikasjonsnummer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ const RenderKlagebegrunnelsePage = ({ klage }: Props) => {
title_fragment={title_fragment}
>
<GuidePanel>
<BodyLong>{klageskjema_post.should_log_in_digital}</BodyLong>
<BodyLong spacing>{klageskjema_post.should_log_in_digital}</BodyLong>
<BodyLong>{klageskjema_post.employer_info}</BodyLong>
</GuidePanel>

<UserInfo klageOrAnke={klage} update={updateKlage} onError={setError} errors={errors} />
Expand Down
24 changes: 15 additions & 9 deletions frontend/src/language/en.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@ export const en: Language = {
},
ettersendelse: {
title: 'Submit additional documentation to a complaint or appeal',
guide_text: [
<BodyShort key="1" spacing>
To submit additional documentation, first you have to print a cover page that NAV has generated for you. Put
this on top of the documentation. Follow the instructions on the cover page.
</BodyShort>,
<BodyShort key="2" spacing>
Send by post to:
</BodyShort>,
],
send_by_post: 'Send by post to:',
employer_info_logged_in:
'As an employer, you must log out and enter the national identity number or D-number of the employee to whom the additional documentation applies, print out the cover page, and sign as the employer.',
employer_info_logged_out:
'As an employer, you must enter the national identity number or D-number of the employee to whom the additional documentation applies, print out the cover page, and sign as the employer.',
guide_text:
'To submit additional documentation, first you have to print a cover page that NAV has generated for you. Put this on top of the documentation. Follow the instructions on the cover page.',
enhet: {
radio_title:
'Have you received a letter from NAV Klageinstans, or a letter from another unit within NAV that says that your case has been sent to NAV Klageinstans?',
Expand All @@ -97,6 +95,8 @@ export const en: Language = {
has_attachments_label: 'I will include attachments.',
should_log_in_digital:
'If you log in, you will be able to send the complaint and attachments digitally. You can continue without logging in, but you will have to print your complaint, sign it, and send it by post.',
employer_info:
'As an employer, you must send the complaint by post. You enter the national identity number or D-number of the employee to whom the decision applies, print out the complaint, and sign as the employer.',
innsending: {
title: 'What do you do now?',
steg: [
Expand All @@ -109,6 +109,8 @@ export const en: Language = {
},
},
klageskjema: {
employer_info:
'As an employer, you must log out and send the complaint by post. You enter the national identity number or D-number of the employee to whom the decision applies, print out the complaint, and sign as the employer.',
common: {
title_fragment: 'complain',
page_title: 'Complain against decision',
Expand Down Expand Up @@ -225,6 +227,8 @@ export const en: Language = {
has_attachments_label: 'I will include attachments.',
should_log_in_digital:
'If you log in, you will be able to send the appeal and attachments digitally. You can continue without logging in, but you will have to print your appeal, sign it, and send it by post.',
employer_info:
'As an employer, you must send the appeal by post. You enter the national identity number or D-number of the employee to whom the decision applies, print out the appeal, and sign as the employer.',
innsending: {
title: 'What do you do now?',
steg: [
Expand All @@ -237,6 +241,8 @@ export const en: Language = {
},
},
ankeskjema: {
employer_info:
'As an employer, you must log out and send the appeal by post. You enter the national identity number or D-number of the employee to whom the decision applies, print out the appeal, and sign as the employer.',
common: {
title_fragment: 'complain',
page_title: 'Complain against decision',
Expand Down
22 changes: 15 additions & 7 deletions frontend/src/language/nb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ export const nb = {
},
ettersendelse: {
title: 'Ettersende dokumentasjon på tidligere innsendt klage/anke',
guide_text: [
<BodyShort key="1" spacing>
For å kunne ettersende dokumentasjon må du først skrive ut en forside som NAV har laget for deg. Denne skal
ligge øverst. Følg oppskriften på forsiden.
</BodyShort>,
<BodyShort key="2">Send via post til:</BodyShort>,
],
send_by_post: 'Send via post til:',
employer_info_logged_out:
'Hvis du er en arbeidsgiver må legge inn fødselsnummeret eller D-nummeret til den arbeidstakeren som ettersendelsen gjelder for, skrive ut forsiden og signere som arbeidsgiver.',
employer_info_logged_in:
'Hvis du er en arbeidsgiver må du logge ut og legge inn fødselsnummeret eller D-nummeret til den arbeidstakeren som ettersendelsen gjelder for, skrive ut forsiden og signere som arbeidsgiver.',
guide_text:
'For å kunne ettersende dokumentasjon må du først skrive ut en forside som NAV har laget for deg. Denne skal ligge øverst. Følg oppskriften på forsiden.',
enhet: {
radio_title:
'Har du mottatt et brev fra NAV Klageinstans eller et brev fra en annen enhet i NAV om at saken din er sendt til NAV Klageinstans?',
Expand All @@ -97,6 +97,8 @@ export const nb = {
has_attachments_label: 'Jeg skal sende med vedlegg.',
should_log_in_digital:
'Hvis du logger deg inn kan du sende inn klagen og vedlegg digitalt her. Du kan fortsette uten å logge deg inn, men husk at du da må skrive ut klagen, signere den og sende den via post.',
employer_info:
'Som arbeidsgiver må du sende klagen i posten. Du legger inn fødselsnummeret eller D-nummeret til den arbeidstakeren som vedtaket gjelder for, skriver ut klagen og signerer som arbeidsgiver.',
innsending: {
title: 'Hva gjør du nå?',
steg: [
Expand All @@ -109,6 +111,8 @@ export const nb = {
},
},
klageskjema: {
employer_info:
'Hvis du er en arbeidsgiver må du logge ut og sende klagen i posten. Du legger inn fødselsnummeret eller D-nummeret til den arbeidstakeren som vedtaket gjelder for, skriver ut klagen og signerer som arbeidsgiver.',
common: {
title_fragment: 'klage',
page_title: 'Klage på vedtak',
Expand Down Expand Up @@ -230,6 +234,8 @@ export const nb = {
has_attachments_label: 'Jeg skal sende med vedlegg.',
should_log_in_digital:
'Hvis du logger deg inn kan du sende inn anken og vedlegg digitalt her. Du kan fortsette uten å logge deg inn, men husk at du da må skrive ut anken, signere den og sende den via post.',
employer_info:
'Som arbeidsgiver må du sende anken i posten. Du legger inn fødselsnummeret eller D-nummeret til den arbeidstakeren som vedtaket gjelder for, skriver ut anken og signerer som arbeidsgiver.',
innsending: {
title: 'Hva gjør du nå?',
steg: [
Expand All @@ -242,6 +248,8 @@ export const nb = {
},
},
ankeskjema: {
employer_info:
'Hvis du er en arbeidsgiver må du logge ut og sende anken i posten. Du legger inn fødselsnummeret eller D-nummeret til den arbeidstakeren som vedtaket gjelder for, skriver ut anken og signerer som arbeidsgiver.',
common: {
title_fragment: 'anke',
page_title: 'Anke på vedtak',
Expand Down

0 comments on commit eb8d886

Please sign in to comment.