ProductPaymentForm: Set input fields input-no-border style

This commit is contained in:
PCoder 2018-10-05 08:58:10 +02:00
parent 8758cd1cd8
commit e3ec67d32c
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ class ProductPaymentForm(GenericPaymentForm):
payment_type=_('One time payment')
)
self.fields['recurring'].widget = forms.HiddenInput()
self.fields['product_name'].widget.attrs['class'] = 'input-no-border'
self.fields['amount'].widget.attrs['class'] = 'input-no-border'
self.fields['description'].widget.attrs['class'] = 'input-no-border'
def clean_amount(self):
amount = self.cleaned_data.get('amount')