-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement VAR for C24_WMDE_Desktop_DE_10
- The payment intervals "vierteljährlich" (quarterly) and "jährlich" are removed - The font size of the radio button labels and the custom amount placeholder is increased to 1em - The custom amount placeholder is changed from "Wunschbetrag" to "Wahlbetrag" - The size of the radio buttons is slightly increased (+2px for each dimension) Ticket: https://phabricator.wikimedia.org/T378803
- Loading branch information
1 parent
3144b2d
commit a3dfbbd
Showing
2 changed files
with
22 additions
and
1 deletion.
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
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,21 @@ | ||
import FormItemsBuilder from '@src/utils/FormItemsBuilder/FormItemsBuilder'; | ||
import { Translator } from '@src/Translator'; | ||
import { DonationFormItems } from '@src/utils/FormItemsBuilder/DonationFormItems'; | ||
import { Intervals } from '@src/utils/FormItemsBuilder/fields/Intervals'; | ||
import { PaymentMethods } from '@src/utils/FormItemsBuilder/fields/PaymentMethods'; | ||
import { NumberFormatter } from '@src/utils/DynamicContent/formatters/NumberFormatter'; | ||
|
||
export function createFormItems( translations: Translator, amountFormatter: NumberFormatter ): DonationFormItems { | ||
return new FormItemsBuilder( translations, amountFormatter ) | ||
.setIntervals( | ||
Intervals.ONCE, | ||
Intervals.MONTHLY | ||
) | ||
.setAmounts( 5, 10, 20, 25, 50, 100 ) | ||
.setPaymentMethods( | ||
PaymentMethods.PAYPAL, | ||
PaymentMethods.BANK_TRANSFER, | ||
PaymentMethods.CREDIT_CARD, | ||
PaymentMethods.DIRECT_DEBIT | ||
).getItems(); | ||
} |