-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from City-of-Helsinki/UHF-7484_service_housin…
…g_service_voucher UHF-7484: Add initial version of service housing service voucher calculator
- Loading branch information
Showing
6 changed files
with
377 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
34 changes: 34 additions & 0 deletions
34
src/js/calculator/service_housing_service_voucher/_form.js
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,34 @@ | ||
function getFormData(id, t) { | ||
return { | ||
form_id: id, | ||
has_required_fields: true, | ||
items: [ | ||
{ | ||
input_float: { | ||
id: 'net_income_per_month', | ||
label: t('net_income_per_month'), | ||
unit: t('unit_euro'), | ||
min: 0, | ||
size: 8, | ||
required: true, | ||
strip: '[€eE ]', | ||
helper_text: t('net_income_per_month_explanation'), | ||
}, | ||
}, | ||
{ | ||
input_float: { | ||
id: 'service_provider_price', | ||
label: t('service_provider_price'), | ||
unit: t('unit_euro'), | ||
min: 0, | ||
size: 8, | ||
required: true, | ||
strip: '[€eE ]', | ||
helper_text: t('service_provider_price_explanation'), | ||
}, | ||
}, | ||
] | ||
}; | ||
} | ||
|
||
export default { getFormData }; |
86 changes: 86 additions & 0 deletions
86
src/js/calculator/service_housing_service_voucher/_translations.js
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,86 @@ | ||
/* eslint-disable no-template-curly-in-string */ | ||
|
||
const translations = { | ||
net_income_per_month: { | ||
fi: 'Nettotulot kuukaudessa', | ||
sv: null, | ||
en: null, | ||
}, | ||
net_income_per_month_explanation: { | ||
fi: 'Nettotulot tarkoittavat tuloja verojen vähentämisen jälkeen. Tuloihin lasketaan eläkkeet, elatusavut, elinkorot, elatustuki sekä muut jatkuvat henkilökohtaiset tulot ja pääomasta tai omaisuudesta(kuten korko-, osinko- ja vuokratulot). Eläkkeen saajan hoitotukea, asumistukea, rintamalisää tai sotavammalain mukaista elinkorkoa ei huomioida.', | ||
sv: null, | ||
en: null, | ||
}, | ||
service_provider_price: { | ||
fi: 'Palveluntuottajan kuukausihinta', | ||
sv: null, | ||
en: null, | ||
}, | ||
service_provider_price_explanation: { | ||
fi: 'Valitsemasi palveluntuottajan perimä palveluasumisen kuukausihinta.', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_estimate_of_payment: { | ||
fi: 'Arvio palveluasumisen palvelusetelistä', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_estimated_payment_prefix: { | ||
fi: 'Omavastuuosuus eli sinulle maksettavaksi jäävä asiakasmaksu on', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_estimated_payment_suffix: { | ||
fi: 'euroa kuukaudessa.', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_estimated_payment_explanation: { | ||
fi: 'Tämä arvio on suuntaa antava. Tarkka arvo lasketaan kotihoidon tekemän päätöksen mukaan.', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_estimate_is_based_on: { | ||
fi: 'Palveluasumisen hinta palvelusetelillä ostettuna muodostuu seuraavasti:', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_subtotal_full_price: { | ||
fi: 'Palveluasumisen kokonaiskustannus', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_subtotal_city_price: { | ||
fi: 'Kaupunki maksaa palvelusetelillä yksityiselle tuottajalle ', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_subtotal_self_price: { | ||
fi: 'Sinulle maksettavaksi jäävä osuus eli omavastuu', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_subtotal_euros_per_month: { | ||
fi: '${value} €/kk', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_subtotal_euros_per_month_screenreader: { | ||
fi: '${value} euroa kuukaudessa', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_additional_details: { | ||
fi: 'Lisähuomiot:', | ||
sv: null, | ||
en: null, | ||
}, | ||
receipt_aria_live: { | ||
fi: 'Omavastuuosuus eli sinulle maksettavaksi jäävä asiakasmaksu on ${payment} euroa kuukaudessa, lue lisätietoja lomakkeen alta.', | ||
sv: null, | ||
en: null, | ||
}, | ||
}; | ||
|
||
export default translations; |
Oops, something went wrong.