<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Driver2/Application/Application2.master" CodeBehind="DrivingExperience.aspx.vb" Inherits="Web.DrivingExperience1" %>
<%@ MasterType VirtualPath="Application2.Master" %>
<%@ Register TagPrefix="ctrl" Namespace="Web" Assembly="Web" %>
<%@ Register Src="~/_include/controls/StatePicker.ascx" TagPrefix="ctrl" TagName="StatePicker" %>
<%@ Register Src="~/_include/controls/YesNoPicker.ascx" TagPrefix="ctrl" TagName="YesNoPicker" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phContent" runat="server">

    <h1>Driving Experience</h1>


    <h3>Driving Experience in the Operation of Motor Vehicles</h3>

    <ctrl:FormList ID="rptVehicles" runat="server" AddText="Add Vehicle"><ItemTemplate>
        <asp:HiddenField ID="hidVehicleId" runat="server" Value="0" />
        <section>
            <div style="float: right; display: inline-block;">
                <asp:Button ID="btnRemoveVehicle" runat="server" 
                    CausesValidation="false" OnClick="btnRemoveVehicle_Click" 
                    Text="Remove" />
            </div>
            <h1>Vehicle <%# Container.ItemIndex + 1 %></h1>

            <ul class="formFields">
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlEquipmentType"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ddlEquipmentType"
                        Text="Equipment Type" />
                    <asp:DropDownList ID="ddlEquipmentType" runat="server">
                        <asp:ListItem Text="Bus" />
                        <asp:ListItem Text="Straight Truck" />
                        <asp:ListItem Text="Truck Tractor" />
                        <asp:ListItem Text="Other" />
                    </asp:DropDownList>
                    <ul class="dependent"
                        data-dependency='<asp:Literal ID="litId_ddlEquipmentType" runat="server"/>'
                        data-value="Other">
                        <li>
                            <asp:Label runat="server" AssociatedControlID="txtEquipmentType"
                                Text="Other" style="min-width: 69px;" />
                            <asp:TextBox ID="txtEquipmentType" runat="server" MaxLength="50" />
                        </li>
                    </ul>
                </li>
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtEquipmentYears"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtEquipmentYears"
                        Text="# of Years Experience" />
                    <asp:TextBox ID="txtEquipmentYears" runat="server" MaxLength="50" TextMode="Number" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="txtEquipmentMiles"
                        Text="Approximate Number of Miles Driven (Total)" />
                    <asp:TextBox ID="txtEquipmentMiles" runat="server" MaxLength="50" TextMode="Number" />
                </li>
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynRequiredCDL"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynRequiredCDL"
                        Text="Does this vehicle required a CDL?" />
                    <ctrl:YesNoPicker ID="ynRequiredCDL" runat="server" />
                </li>
            </ul>
        </section>
    </ItemTemplate></ctrl:FormList>


</asp:Content>
