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, 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder':\n    '123 Tech St, Silicon Valley, CA 00000'}"}), False, 'from django import forms\n'), (8, 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder':\n    '123 Tech St, Silicon Valley, CA 00000'}"}), False, 'from django import forms\n'), (11, 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '1.23'}"}), False, 'from django import forms\n'), (14, 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '12'}"}), False, 'from django import forms\n'), (17, 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder':\n    '1 (default is 1 if left blank)'}"}), False, 'from django import forms\n'), (20, 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '15.2'}"}), False, 'from django import forms\n'), (5, 'django.core.validators.MinLengthValidator', 'MinLengthValidator', (['(1)'], {}), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), (8, 'django.core.validators.MinLengthValidator', 'MinLengthValidator', (['(1)'], {}), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), (11, 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(0.01)'], {}), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), (14, 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(0.01)'], {}), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), (17, 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(1)'], {}), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), (20, 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(0.01)'], {}), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n')]