Skip to content

Commit

Permalink
chore: suggestion of new look
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnigs committed Dec 3, 2024
1 parent 02f2aa4 commit cc4f00a
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import { m } from '../../../lib/messages'
import { opperatingCostSubSection } from './opperatingCostSubSection'
import { capitalNumberSubSection } from './capitalNumberSubSection'
import { equityAndLiabilitiesSubSection } from './equityAndLiabilitySubSection'
import { newOpperatingCostSubSection } from './newOpperatingCostSubsection'

export const cemeteryKeyNumbersSection = buildSection({
id: 'cemeteryKeyNumbers',
title: m.keynumbers,
children: [
opperatingCostSubSection,
newOpperatingCostSubSection,
capitalNumberSubSection,
equityAndLiabilitiesSubSection,
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
import {
buildMultiField,
buildSubSection,
buildDescriptionField,
buildTextField,
buildDisplayField,
} from '@island.is/application/core'
import { m } from '../../../lib/messages'

export const newOpperatingCostSubSection = buildSubSection({
id: 'newOperatingCost',
title: m.expensesIncome,
children: [
buildMultiField({
id: 'newOperatingCostMultiField',
title: '',
children: [
buildDescriptionField({
id: 'testDescription',
title: 'Lykiltölur - Tekjur og gjöld',
titleVariant: 'h2',
description: 'Vinsamlegast fylltu út þá reiti sem eiga við',
marginBottom: 4,
}),
buildDescriptionField({
id: 'testDescription',
title: 'Tekjur',
titleVariant: 'h4',
}),
buildTextField({
id: 'testTextField',
title: 'Umhirðutekjur',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Grafartekjur',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Styrkur frá Kirkjugarðasjóði',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Aðrar tekjur',
width: 'half',
variant: 'currency',
}),
buildDisplayField({
id: 'testDisplayField',
title: '',
label: 'Tekjur samtals',
variant: 'currency',
rightAlign: true,
value: (_) => '200.000',
}),

buildDescriptionField({
id: 'testDescription',
title: 'Gjöld',
titleVariant: 'h4',
}),
buildTextField({
id: 'testTextField',
title: 'Laun og launatengd gjöld',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Úfararkostnaður',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Rekstur útfararkapellu',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Framlög til kirkjugarðasjóðs',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Framlög og styrkir til annara',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Annar rekstrarkostnaður',
width: 'half',
variant: 'currency',
}),
buildTextField({
id: 'testTextField',
title: 'Afskriftir',
width: 'half',
variant: 'currency',
}),
buildDisplayField({
id: 'testDisplayField2',
title: '',
label: 'Gjöld samtals',
variant: 'currency',
rightAlign: true,
value: (_) => '50.000',
}),

buildDisplayField({
id: 'testDisplayField3',
title: 'Rekstrarniðurstaða fyrir fjármagnsliði',
// label: 'Rekstrarniðurstaða fyrir fjármagnsliði',
variant: 'currency',
rightAlign: true,
value: (_) => '150.000',
}),
],
}),
],
})

0 comments on commit cc4f00a

Please sign in to comment.