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


    
    <header>
        <h3>Unemployment Information</h3>
    </header>

    <section>
        <ul class="formFields">
            <li>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="ynUnemployed"
                    Text="required" Display="Dynamic" CssClass="required" />
                <asp:Label runat="server" AssociatedControlID="ynUnemployed"
                    Text="Have you been unemployed at any time within the last 3 years?" />
                <ctrl:YesNoPicker ID="ynUnemployed" runat="server" />
            </li>
        </ul>
    </section>
    
    <ctrl:FormList ID="rptUnemp" runat="server" AddText="Add Unemployment" TargetCount="0"><ItemTemplate>
        <asp:HiddenField ID="hidUnempId" runat="server" Value="0" />
        <section>
            <div style="float: right; display: inline-block;">
                <asp:Button ID="btnRemoveUnemp" runat="server" 
                    CausesValidation="false" OnClick="btnRemoveUnemp_Click" 
                    Text="Remove" />
            </div>
            <h1><%# If(Container.ItemIndex = 0,
                                                    "Most Recent",
                                                    "Unemployment " & 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="txtComments"
                        Text="required" Display="Dynamic" CssClass="required" />
                    <asp:Label runat="server" AssociatedControlID="txtComments"
                        Text="Comments" />
                    <asp:TextBox ID="txtComments" runat="server" MaxLength="500" TextMode="MultiLine" />
                </li>
            </ul>
        </section>
    </ItemTemplate></ctrl:FormList>


</asp:Content>