2021-04-13 12:44:22 +00:00
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from django_countries.fields import CountryField
|
|
|
|
|
|
|
|
from .models import Inquiry
|
|
|
|
|
|
|
|
class InquiryProcessForm(forms.ModelForm):
|
|
|
|
first_name = forms.CharField(max_length=64, required=True)
|
|
|
|
last_name = forms.CharField(max_length=64, required=True)
|
|
|
|
street = forms.CharField(max_length=64, required=True)
|
|
|
|
city = forms.CharField(max_length=64, required=True)
|
|
|
|
zip = forms.CharField(max_length=16)
|
|
|
|
state = forms.CharField(max_length=64)
|
|
|
|
country = CountryField().formfield(required=True)
|
|
|
|
terms = forms.BooleanField(required=True)
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
model = Inquiry
|
2021-04-20 11:37:36 +00:00
|
|
|
fields = ["gateway"]
|
|
|
|
|
|
|
|
class OfferSelectionForm(forms.Form):
|
|
|
|
terms = forms.BooleanField(required=True)
|
|
|
|
offer = forms.UUIDField(required=True)
|