Skip to content

Commit

Permalink
fix(samrit): digital license (#15979)
Browse files Browse the repository at this point in the history
* fix(samrit): digital license

* tweak

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
albinagu and kodiakhq[bot] authored Sep 13, 2024
1 parent 83f5725 commit b484a25
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const m = defineMessages({
description: 'Firearms step answer no',
},
firearmsApplicantHeader: {
id: 'aod.application:firearmsApplicantHeader',
id: 'aod.application:firearmsApplicantHeader#markdown',
defaultMessage: 'Skráning vörsluaðila:',
description: '',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { sectionPayment } from './applicationSections/sectionPayment'
import { m } from '../lib/messages'
import { sectionFakeData } from './applicationSections/sectionFakeData'
import { sectionReasonForApplication } from './applicationSections/sectionReasonForApplication'
import { sectionDigitalLicenseInfo } from './applicationSections/sectionDigitalLicenseInfo'

export const getApplication = ({ allowFakeData = false }): Form => {
return buildForm({
Expand All @@ -28,6 +29,7 @@ export const getApplication = ({ allowFakeData = false }): Form => {
sectionReasonForApplication,
sectionInformation,
sectionDelivery,
sectionDigitalLicenseInfo,
sectionOverview,
sectionPayment,
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {
buildAlertMessageField,
buildMultiField,
buildSection,
} from '@island.is/application/core'
import { m } from '../../lib/messages'

export const sectionDigitalLicenseInfo = buildSection({
id: 'digitalLicenseInfo',
title: m.digitalLicenseInfoTitle,
children: [
buildMultiField({
id: 'info',
title: m.digitalLicenseInfoTitle,
description: m.digitalLicenseInfoDescription,
children: [
buildAlertMessageField({
id: 'digitalLicenseInfo',
title: m.digitalLicenseInfoAlertTitle,
message: m.digitalLicenseInfoAlertMessage,
alertType: 'info',
}),
],
}),
],
})
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,28 @@ export const m = defineMessages({
description: 'Placeholder for office selection',
},

/* Digital License Section */
digitalLicenseInfoTitle: {
id: 'dld.application:digitalLicenseInfoTitle',
defaultMessage: 'Stafrænt ökuskírteini',
description: 'Digital driving license',
},
digitalLicenseInfoDescription: {
id: 'dld.application:digitalLicenseInfoDescription',
defaultMessage: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
description: 'Digital driving license',
},
digitalLicenseInfoAlertTitle: {
id: 'dld.application:digitalLicenseInfoAlertTitle',
defaultMessage: 'Athugið',
description: 'Digital driving license',
},
digitalLicenseInfoAlertMessage: {
id: 'dld.application:digitalLicenseInfoAlertMessage#markdown',
defaultMessage: 'Þú ert að sækja um samrit ökuskírteinis.',
description: 'Digital driving license',
},

/* Overview Section */
overviewTitle: {
id: 'dld.application:overview.title',
Expand Down

0 comments on commit b484a25

Please sign in to comment.