Create ProductPaymentForm from GenericPaymentForm

This commit is contained in:
PCoder 2018-10-03 08:18:45 +02:00
parent 1cdc9ea657
commit 530bbcd5f6

View file

@ -97,6 +97,14 @@ class GenericPaymentForm(forms.Form):
return recurring
class ProductPaymentForm(GenericPaymentForm):
def __init__(self, *args, **kwargs):
super(GenericPaymentForm, self).__init__(*args, **kwargs)
self.fields['product_name'].widget = forms.TextInput(
attrs={'placeholder': _('Product name'), 'readonly': 'readonly'}
)
class HostingUserSignupForm(forms.ModelForm):
confirm_password = forms.CharField(label=_("Confirm Password"),
widget=forms.PasswordInput())