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'}))

[((209, 351), 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder':\n    '123 Tech St, Silicon Valley, CA 00000'}"}), "(attrs={'class': 'form-control', 'id':\n    'inlineFormInputGroup', 'placeholder':\n    '123 Tech St, Silicon Valley, CA 00000'})\n", (224, 351), False, 'from django import forms\n'), ((466, 608), 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder':\n    '123 Tech St, Silicon Valley, CA 00000'}"}), "(attrs={'class': 'form-control', 'id':\n    'inlineFormInputGroup', 'placeholder':\n    '123 Tech St, Silicon Valley, CA 00000'})\n", (481, 608), False, 'from django import forms\n'), ((713, 818), 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '1.23'}"}), "(attrs={'class': 'form-control', 'id':\n    'inlineFormInputGroup', 'placeholder': '1.23'})\n", (728, 818), False, 'from django import forms\n'), ((916, 1019), 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '12'}"}), "(attrs={'class': 'form-control', 'id':\n    'inlineFormInputGroup', 'placeholder': '12'})\n", (931, 1019), False, 'from django import forms\n'), ((1129, 1260), 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder':\n    '1 (default is 1 if left blank)'}"}), "(attrs={'class': 'form-control', 'id':\n    'inlineFormInputGroup', 'placeholder': '1 (default is 1 if left blank)'})\n", (1144, 1260), False, 'from django import forms\n'), ((1368, 1473), 'django.forms.TextInput', 'forms.TextInput', ([], {'attrs': "{'class': 'form-control', 'id': 'inlineFormInputGroup', 'placeholder': '15.2'}"}), "(attrs={'class': 'form-control', 'id':\n    'inlineFormInputGroup', 'placeholder': '15.2'})\n", (1383, 1473), False, 'from django import forms\n'), ((178, 199), 'django.core.validators.MinLengthValidator', 'MinLengthValidator', (['(1)'], {}), '(1)\n', (196, 199), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((435, 456), 'django.core.validators.MinLengthValidator', 'MinLengthValidator', (['(1)'], {}), '(1)\n', (453, 456), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((680, 703), 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(0.01)'], {}), '(0.01)\n', (697, 703), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((883, 906), 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(0.01)'], {}), '(0.01)\n', (900, 906), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((1099, 1119), 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(1)'], {}), '(1)\n', (1116, 1119), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n'), ((1335, 1358), 'django.core.validators.MinValueValidator', 'MinValueValidator', (['(0.01)'], {}), '(0.01)\n', (1352, 1358), False, 'from django.core.validators import MinValueValidator, MinLengthValidator\n')]