From 114dbd8242042565365c9c5d5ab6f5f768c4013d Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 24 Sep 2018 08:32:33 +0200 Subject: [PATCH] Make recurring monthly and amount in chf explicit --- hosting/forms.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hosting/forms.py b/hosting/forms.py index fb3ce98a..2deb04dc 100644 --- a/hosting/forms.py +++ b/hosting/forms.py @@ -54,9 +54,14 @@ class HostingUserLoginForm(forms.Form): class GenericPaymentForm(forms.Form): amount = forms.FloatField( - widget=forms.TextInput(), max_value=999999, min_value=1 - ) - recurring = forms.BooleanField(required=False) + widget=forms.TextInput( + attrs={'placeholder': _('Amount in CHF')} + ), + max_value=999999, + min_value=1 + ) + recurring = forms.BooleanField(required=False, + label=_("Recurring monthly")) description = forms.CharField( widget=forms.Textarea(attrs={'style': "height: 150px;"}), required=False