from django import forms
from django.core.validators import MinValueValidator, MinLengthValidator

class OriginForm(forms.Form):
    origin_address = forms.CharField(validators=[MinLengthValidator(1)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '123 Tech St, Silicon Valley, CA 00000'}))

class DestinationForm(forms.Form):
    destination_address = forms.CharField(validators=[MinLengthValidator(1)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '123 Tech St, Silicon Valley, CA 00000'}))

class GasPriceForm(forms.Form):
    gas_price = forms.FloatField(validators=[MinValueValidator(0.01)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '1.23'}))

class MpgForm(forms.Form):
    mpg = forms.FloatField(validators=[MinValueValidator(0.01)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '12'}))

class NumPeopleForm(forms.Form):
    num_people = forms.IntegerField(validators=[MinValueValidator(1)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '1 (default is 1 if left blank)'}))

class DistanceForm(forms.Form):
    distance = forms.FloatField(validators=[MinValueValidator(0.01)], widget=forms.TextInput(attrs={'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '15.2'}))

[((5, 80, 5, 214), 'django.forms.TextInput', 'forms.TextInput', (), '', False, 'from django import forms\n'), ((8, 85, 8, 219), 'django.forms.TextInput', 'forms.TextInput', (), '', False, 'from django import forms\n'), ((11, 78, 11, 179), 'django.forms.TextInput', 'forms.TextInput', (), '', False, 'from django import forms\n'), ((14, 72, 14, 171), 'django.forms.TextInput', 'forms.TextInput', (), '', False, 'from django import forms\n'), ((17, 78, 17, 205), 'django.forms.TextInput', 'forms.TextInput', (), '', False, 'from django import forms\n'), ((20, 77, 20, 178), 'django.forms.TextInput', 'forms.TextInput', (), '', False, 'from django import forms\n'), ((5, 49, 5, 70), 'django.core.validators.MinLengthValidator', 'MinLengthValidator', ({(5, 68, 5, 69): '1'}, {}), '(1)', False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((8, 54, 8, 75), 'django.core.validators.MinLengthValidator', 'MinLengthValidator', ({(8, 73, 8, 74): '1'}, {}), '(1)', False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((11, 45, 11, 68), 'django.core.validators.MinValueValidator', 'MinValueValidator', ({(11, 63, 11, 67): '0.01'}, {}), '(0.01)', False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((14, 39, 14, 62), 'django.core.validators.MinValueValidator', 'MinValueValidator', ({(14, 57, 14, 61): '0.01'}, {}), '(0.01)', False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((17, 48, 17, 68), 'django.core.validators.MinValueValidator', 'MinValueValidator', ({(17, 66, 17, 67): '1'}, {}), '(1)', False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((20, 44, 20, 67), 'django.core.validators.MinValueValidator', 'MinValueValidator', ({(20, 62, 20, 66): '0.01'}, {}), '(0.01)', False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n')]