Created a base template for login / signup, Fixed some html design issues on login / signup pages, Added Billing Address Form to payment page, Handle Billing Address Form validation, Created VirtualMachinePlan model in order to store user purchased VM, Create method in order to create a stripe plan , Investigated about stripe payment workflows
This commit is contained in:
commit
5456c4c341
17 changed files with 573 additions and 415 deletions
|
|
@ -3,6 +3,23 @@ from .models import ContactMessage
|
|||
from django.template.loader import render_to_string
|
||||
from django.core.mail import EmailMultiAlternatives
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from utils.fields import CountryField
|
||||
|
||||
|
||||
class BillingAddressForm(forms.Form):
|
||||
street_address = forms.CharField()
|
||||
city = forms.CharField()
|
||||
postal_code = forms.CharField()
|
||||
country = CountryField()
|
||||
token = forms.CharField(widget=forms.HiddenInput())
|
||||
|
||||
class Meta:
|
||||
labels = {
|
||||
'street_address': _('Street Address'),
|
||||
'city': _('City'),
|
||||
'postal_code': _('Postal Code'),
|
||||
'Country': _('Country'),
|
||||
}
|
||||
|
||||
|
||||
class ContactUsForm(forms.ModelForm):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue