<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Driver2/Application/Application2.master" CodeBehind="DriverTraining.aspx.vb" Inherits="Web.DriverTraining" %>
<%@ 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>Driver Training</h1>


    
    <header>
        <h3>Driver Training</h3>
    </header>

    <section>
        <ul class="formFields">
            <li>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="ynDriverTraining"
                    Text="required" Display="Dynamic" CssClass="required" />
                <asp:Label runat="server" AssociatedControlID="ynDriverTraining"
                    Text="Have you attended a driver training school?" />
                <ctrl:YesNoPicker ID="ynDriverTraining" runat="server" />
            </li>
        </ul>
    </section>
    
    <ctrl:FormList ID="rptTraining" runat="server" AddText="Add Training" TargetCount="0"><ItemTemplate>
        <asp:HiddenField ID="hidTrainingId" runat="server" Value="0" />
        <section>
            <div style="float: right; display: inline-block;">
                <asp:Button ID="btnRemoveTraining" runat="server" 
                    CausesValidation="false" OnClick="btnRemoveTraining_Click" 
                    Text="Remove" />
            </div>
            <h1><%# If(Container.ItemIndex = 0,
                                        "Most Recent",
                                        "Training " & CStr(Container.ItemIndex + 1)) %></h1>

            <ul class="formFields">
                <li class="left">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtStartDate"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtStartDate"
                        Text="Start Date" />
                    <asp:TextBox ID="txtStartDate" runat="server" MaxLength="50" TextMode="Date" />
                </li>
                <li class="left">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtEndDate"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtEndDate"
                        Text="End Date" />
                    <asp:TextBox ID="txtEndDate" runat="server" MaxLength="50" TextMode="Date" />
                </li>
                <li class="left">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlTrainingState"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ddlTrainingState" 
                        Text="Location" />
                    <ctrl:StatePicker ID="ddlTrainingState" runat="server" />
                </li>
                <li class="left">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtSchoolName"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtSchoolName"
                        Text="School" />
                    <asp:TextBox ID="txtSchoolName" runat="server" MaxLength="128" />
                </li>
                <li class="left">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtTrainingCity"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtTrainingCity"
                        Text="City" />
                    <asp:TextBox ID="txtTrainingCity" runat="server" MaxLength="128" />
                </li>
                <li class="left">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtPhone"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtPhone"
                        Text="Phone Number" />
                    <asp:TextBox ID="txtPhone" runat="server" MaxLength="128" />
                </li>
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynGraduate"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynGraduate"
                        Text="Did you graduate?" />
                    <ctrl:YesNoPicker ID="ynGraduate" runat="server" />
                </li>
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynSafetyReg"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynSafetyReg"
                        Text="Were you subject to the Federal Motor Carrier or Transport Canada Safety Regulations while attending this truck school?" />
                    <ctrl:YesNoPicker ID="ynSafetyReg" runat="server" />
                </li>
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynSafetyFunctions"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynSafetyFunctions"
                        Text="Did you perform any safety sensitive functions at this truck school, regulated by DOT, and subject to drug and alcohol testing?" />
                    <ctrl:YesNoPicker ID="ynSafetyFunctions" runat="server" />
                </li>
                  <li class="right">
                    <asp:Label runat="server" AssociatedControlID="txtGPA"
                        Text="GPA" />
                    <asp:TextBox ID="txtGPA" runat="server" MaxLength="128" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="ddlHours"
                        Text="Hours of Instruction" />
                    <asp:DropDownList ID="ddlHours" runat="server">
                        <asp:ListItem Text="??" />
                    </asp:DropDownList>
                </li>
                <li class="small">
                    <label>Which of the following skills were trained in your program? (Select all that apply)</label>
                    <asp:CheckBox ID="chkBorderCrossing" runat="server" Text="Border Crossing" />
                    <asp:CheckBox ID="chkLogBooks" runat="server" Text="Log Books" />
                    <asp:CheckBox ID="chkFMCR" runat="server" Text="Federal Motor Carrier Regulations" />
                    <asp:CheckBox ID="chkHaz" runat="server" Text="Hazardous Materials" />
                </li>
            </ul>
        </section>
    </ItemTemplate></ctrl:FormList>


</asp:Content>
