-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
...metery/src/forms/applicationForm/cemeteryKeyNumbersSection/newOpperatingCostSubsection.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}), | ||
], | ||
}), | ||
], | ||
}) |