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


    <section>
        <h2>General Questions</h2>

        <section>
            <ul class="formFields">
                <li class="big">
                    <asp:Label runat="server" AssociatedControlID="txtPosition"
                        Text="Position Applying For" />
                    <asp:TextBox ID="txtPosition" runat="server"
                        MaxLength="128" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="ddlSchedule"
                        Text="Schedule" />
                    <asp:DropDownList ID="ddlSchedule" runat="server">
                        <asp:ListItem Text="" />
                        <asp:ListItem Text="Full Time" />
                        <asp:ListItem Text="Part Time" />
                        <asp:ListItem Text="Temporary" />
                    </asp:DropDownList>
                </li>
            </ul>

            <ul class="formFields">
                <li>
                    <asp:Label runat="server" AssociatedControlID="txtReferredBy"
                        Text="Referred By" />
                    <asp:TextBox ID="txtReferredBy" runat="server"
                        MaxLength="128" CssClass="big" />
                </li>
                <li class="left">
                    <asp:Label runat="server" AssociatedControlID="txtPayExpected"
                        Text="Pay Expected" />
                    <asp:TextBox ID="txtPayExpected" runat="server"
                        MaxLength="50" TextMode="Number" step="0.01" />
                </li>
                <li class="right">
                    <asp:DropDownList ID="ddlPaySchedule" runat="server">
                        <asp:ListItem Text="Annual Salary" />
                        <asp:ListItem Text="Weekly" />
                        <asp:ListItem Text="Hourly" />
                        <asp:ListItem Text="Per Mile" />
                    </asp:DropDownList>
                </li>
            </ul>

            <ul class="formFields">
                <li>
                    <asp:Label runat="server" AssociatedControlID="ynPreviousEmployee"
                        Text="Have you worked here before?" />
                    <ctrl:YesNoPicker ID="ynPreviousEmployee" runat="server" />

                    <ul class="dependent"
                        data-dependency="<%= ynPreviousEmployee.ClientID %>"
                        data-value="true">
                        <li>
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtPreviousEmployeeDateStart"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtPreviousEmployeeDateStart"
                                Text="If yes, from" />
                            <asp:TextBox ID="txtPreviousEmployeeDateStart" runat="server"
                                MaxLength="50" TextMode="Date" />
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtPreviousEmployeeDateEnd"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtPreviousEmployeeDateEnd"
                                Text="to" />
                            <asp:TextBox ID="txtPreviousEmployeeDateEnd" runat="server"
                                MaxLength="50" TextMode="Date" />
                        </li>
                        <li class="big">
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtPreviousEmployeeLocation"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtPreviousEmployeeLocation"
                                Text="Which location" />
                            <asp:TextBox ID="txtPreviousEmployeeLocation" runat="server"
                                MaxLength="128" />
                        </li>
                        <li>
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtPreviousEmployeePosition"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtPreviousEmployeePosition"
                                Text="Position Held" />
                            <asp:TextBox ID="txtPreviousEmployeePosition" runat="server"
                                MaxLength="128" />
                        </li>
                        <li class="left">
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtPreviousEmployeePay"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtPreviousEmployeePay"
                                Text="Rate of Pay" />
                            <asp:TextBox ID="txtPreviousEmployeePay" runat="server"
                                MaxLength="50" TextMode="Number" step="0.01" />
                        </li>
                        <li class="right">
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="ddlPreviousEmployeePaySchedule"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:DropDownList ID="ddlPreviousEmployeePaySchedule" runat="server">
                                <asp:ListItem Text="Annual Salary" />
                                <asp:ListItem Text="Weekly" />
                                <asp:ListItem Text="Hourly" />
                                <asp:ListItem Text="Per Mile" />
                            </asp:DropDownList>
                        </li>
                        <li>
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtPreviousEmployeeReasonLeft"
                                DependencyControl="ynPreviousEmployee" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtPreviousEmployeeReasonLeft"
                                Text="Reason for Leaving" />
                            <asp:TextBox ID="txtPreviousEmployeeReasonLeft" runat="server"
                                TextMode="MultiLine" MaxLength="256" />
                        </li>
                    </ul>
                </li>
            </ul>

            <ul class="formFields">
                <li>
                    <asp:Label runat="server" AssociatedControlID="txtRelativesEmployed"
                        Text="Names of any relatives employed by this company" />
                    <asp:TextBox ID="txtRelativesEmployed" runat="server"
                        TextMode="MultiLine" Maxlength="256" />
                </li>
            </ul>

            <ul class="formFields">
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynCurrentlyEmployed"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynCurrentlyEmployed"
                        Text="Are you employed now?" />
                    <ctrl:YesNoPicker ID="ynCurrentlyEmployed" runat="server" />
                    <ul class="dependent"
                        data-dependency="<%= ynCurrentlyEmployed.ClientID %>"
                        data-value="false">
                        <li>
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtTimeSinceEmployed"
                                DependencyControl="ynCurrentlyEmployed" WhenValue="false"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtTimeSinceEmployed"
                                Text="If not, how long since leaving last employment?" />
                            <asp:TextBox ID="txtTimeSinceEmployed" runat="server"
                                MaxLength="50" />
                        </li>
                    </ul>
                </li>
            </ul>

            <ul class="formFields">
                <li>
                    <script>
                        function valLegallyEmployable_ClientValidate(sender, args) {
                            args.IsValid = args.Value == "true";
                        }
                    </script>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynLegallyEmployable"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynLegallyEmployable"
                        Text="Are you legally authorized to work in the United States?" />
                    <ctrl:YesNoPicker ID="ynLegallyEmployable" runat="server" />
                    <asp:CustomValidator ID="valLegallyEmployable" runat="server" Display="Dynamic" CssClass="required"
                        ControlToValidate="ynLegallyEmployable" ClientValidationFunction="valLegallyEmployable_ClientValidate"
                        Text="We apologize, but you are not eligible to be hired due to not being legally qualified to work in the United States." />
                </li>
            </ul>

            <ul class="formFields">
                <li>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ynFelonyConviction"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="ynFelonyConviction"
                        Text="Have you ever been convicted of a felony?" />
                    <ctrl:YesNoPicker ID="ynFelonyConviction" runat="server" />
                    <ul class="dependent"
                        data-dependency="<%= ynFelonyConviction.ClientID %>"
                        data-value="true">
                        <li>
                            <ctrl:RequiredDependentFieldValidator runat="server" ControlToValidate="txtFelonyConvictionExplanation"
                                DependencyControl="ynFelonyConviction" WhenValue="true"
                                Text="required" Display="Dynamic" CssClass="required" />
                            <asp:Label runat="server" AssociatedControlID="txtFelonyConvictionExplanation"
                                Text="If yes, please explain" />

							<!--Please Correct this!!! -->
                            <asp:TextBox ID="txtFelonyConvictionExplanation" runat="server"
                                TextMode="MultiLine" MaxLength="256" />
                        </li>
                    </ul>
                </li>
            </ul>

        </section>
    </section>

</asp:Content>
