示例#1
0
class NewTripStartForm(Form):
    start_dt = f.DateField(widget=w.DateInput(),
                           label='Departure Date',
                           help_text='Date of your trip')
    start_tm = f.TimeField(widget=w.TimeInput(),
                           label='Departure Time',
                           help_text='Expected time of departure')
    start_address_name = f.CharField(required=True,
                                     max_length=50,
                                     label='Departing Place',
                                     help_text='Where are you leaving from?')
    start_address_1 = f.CharField(required=True,
                                  max_length=50,
                                  label='Departure Address',
                                  help_text='Address of the departure place')
    start_address_2 = f.CharField(required=False,
                                  max_length=50,
                                  label='Departure Address Continued',
                                  help_text='Additional address information')
    start_address_city = f.CharField(
        required=True,
        max_length=50,
        label='Departing City',
        help_text='Enter the city from which your trip will begin')
    start_address_state = f.CharField(
        required=True,
        max_length=50,
        widget=USStateSelect(),
        label='Departing State',
        help_text='Enter the state where your trip will begin')
    start_address_postal = f.CharField(
        required=True,
        max_length=50,
        label='Departing Postal Code',
        help_text='Enter the postal code where your trip will begin')
示例#2
0
class EditTripArriveForm(Form):
    arrive_dt = f.DateField(
        widget=w.DateInput(),
        label='Arrival Date',
        help_text='Enter the date you will arrive at your destination')
    arrive_tm = f.TimeField(
        widget=w.TimeInput(),
        label='Arrival Time',
        help_text='Enter the time you will arrive at your destination')
    arrive_address_name = f.CharField(
        required=True,
        max_length=50,
        label='Arrive To',
        help_text='Enter the name where your trip will arrive at.')
    arrive_address_1 = f.CharField(
        required=True,
        max_length=50,
        label='Arrival Address',
        help_text='Enter the address you will arrive at.')
    arrive_address_2 = f.CharField(
        required=False,
        max_length=50,
        label='Arrival Address Continued',
        help_text='Enter additional address information.')
    arrive_address_city = f.CharField(
        required=True,
        max_length=50,
        label='Arriving City',
        help_text='Enter the city you will arrive at.')
    arrive_address_state = f.CharField(
        required=True,
        max_length=50,
        widget=USStateSelect(),
        label='Arriving State',
        help_text='Enter the state you will arrive at.')
    arrive_address_postal = f.CharField(
        required=True,
        max_length=50,
        label='Arriving Postal Code',
        help_text='Enter the postal code for the arriving area.')
示例#3
0
class EditTripReturnAddressForm(Form):
    return_dt = f.DateField(
        widget=w.DateInput(),
        label='Returning Date',
        help_text='Enter the date you will leave your destination.')
    return_tm = f.TimeField(
        widget=w.TimeInput(),
        label='Returning Time',
        help_text='Enter the time you will leave your destination')
    return_address_name = f.CharField(
        required=True,
        max_length=50,
        label='Returning Name',
        help_text='Enter the name where your trip will be returning to.')
    return_address_1 = f.CharField(
        required=True,
        max_length=50,
        label='Returning Address',
        help_text='Enter the address you will be returning to.')
    return_address_2 = f.CharField(
        required=False,
        max_length=50,
        label='Returning Address Continued',
        help_text='Enter additional address information.')
    return_address_city = f.CharField(
        required=True,
        max_length=50,
        label='Returning City',
        help_text='Enter the city you will be returning to.')
    return_address_state = f.CharField(
        required=True,
        max_length=50,
        widget=USStateSelect(),
        label='Returning State',
        help_text='Enter the state you will be returning to.')
    return_address_postal = f.CharField(
        required=True,
        max_length=50,
        label='Returning Postal Code',
        help_text='Enter the postal code you will be returning to.')
示例#4
0
class NewTripReturnForm(Form):
    return_dt = f.DateField(widget=w.DateInput(),
                            label='Returning Date',
                            help_text='Date you will leave your destination')
    return_tm = f.TimeField(widget=w.TimeInput(),
                            label='Returning Time',
                            help_text='Time you will leave your destination')
    return_home = f.BooleanField(
        required=False,
        label='Returning Home',
        help_text=
        'Will you be returning to your starting location or to a different address?'
    )
    trip_car = f.BooleanField(
        required=False,
        label='Car',
        help_text=
        'Do you have a car that could be used for this trip? You must have a valid driver license and insurance.'
    )
    trip_gas = f.BooleanField(required=False,
                              label='Gas',
                              help_text='Can you help pay for gas?')
示例#5
0
class EditTripStartForm(Form):
    start_dt = f.DateField(widget=w.DateInput(),
                           label='Departure Date',
                           help_text='Enter the date your trip will begin.')
    start_tm = f.TimeField(widget=w.TimeInput(),
                           label='Departure Time',
                           help_text='Enter the time your trip will begin.')
    start_address_name = f.CharField(
        required=True,
        max_length=50,
        label='Departure From',
        help_text='Enter the name where your trip will begin from.')
    start_address_1 = f.CharField(
        required=True,
        max_length=50,
        label='Departure Address',
        help_text='Enter the address where your trip will begin from.')
    start_address_2 = f.CharField(
        required=False,
        max_length=50,
        label='Departure Address Continued',
        help_text='Enter additional address information.')
    start_address_city = f.CharField(
        required=True,
        max_length=50,
        label='Departing City',
        help_text='Enter the city from which your trip will begin.')
    start_address_state = f.CharField(
        required=True,
        max_length=50,
        widget=USStateSelect(),
        label='Departing State',
        help_text='Enter the state where your trip will begin.')
    start_address_postal = f.CharField(
        required=True,
        max_length=50,
        label='Departing Postal Code',
        help_text='Enter the postal code where your trip will begin.')
示例#6
0
class NewTripArriveForm(Form):
    arrive_dt = f.DateField(widget=w.DateInput(),
                            label='Arrival Date',
                            help_text='Arrival date at the destination')
    arrive_tm = f.TimeField(widget=w.TimeInput(),
                            label='Arrival Time',
                            help_text='Expected time of arrival')
    arrive_address_name = f.CharField(required=True,
                                      max_length=50,
                                      label='Arrive To',
                                      help_text='Where are you arriving at?')
    arrive_address_1 = f.CharField(
        required=True,
        max_length=50,
        label='Arrival Address',
        help_text='Address of the place you will arrive at')
    arrive_address_2 = f.CharField(required=False,
                                   max_length=50,
                                   label='Arrival Address Continued',
                                   help_text='Additional address information.')
    arrive_address_city = f.CharField(
        required=True,
        max_length=50,
        label='Arriving City',
        help_text='Enter the city you will arrive at')
    arrive_address_state = f.CharField(
        required=True,
        max_length=50,
        widget=USStateSelect(),
        label='Arriving State',
        help_text='Enter the state you will arrive at')
    arrive_address_postal = f.CharField(
        required=True,
        max_length=50,
        label='Arriving Postal Code',
        help_text='Enter the postal code for the arriving area')