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

  
    <section>
        <h2>Education</h2>

        <ctrl:FormList ID="rptSchools" runat="server" AddText="Add School" TargetCount="0"><ItemTemplate>
            <asp:HiddenField ID="hidSchoolId" runat="server" Value="0" />
            <section>
                <div style="float: right; display: inline-block;">
                    <asp:Button ID="btnRemoveSchool" runat="server" 
                        CausesValidation="false" OnClick="btnRemoveSchool_Click" 
                        Text="Remove" />
                </div>
                <h1>School <%# Container.ItemIndex + 1 %></h1>

                <ul class="formFields">
                    <li>
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlSchoolType"
                            Text="required" Display="Dynamic" CssClass="required" />
                        <asp:Label runat="server" AssociatedControlID="ddlSchoolType"
                            Text="Type of School" />
                        <asp:DropDownList ID="ddlSchoolType" runat="server">
                            <asp:ListItem Text="" />
                            <asp:ListItem Text="Elementary School" />
                            <asp:ListItem Text="High School" />
                            <asp:ListItem Text="Technical School" />
                            <asp:ListItem Text="College" />
                        </asp:DropDownList>
                    </li>
                    <li class="left">
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="txtSchoolName"
                            Text="required" Display="Dynamic" CssClass="required" />
                        <asp:Label runat="server" AssociatedControlID="txtSchoolName"
                            Text="Institution Name" />
                        <asp:TextBox ID="txtSchoolName" runat="server" MaxLength="128" Width="170px" />
                    </li>
                    <li class="left">
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="txtSchoolCity"
                            Text="required" Display="Dynamic" CssClass="required" />
                        <asp:Label runat="server" AssociatedControlID="txtSchoolCity"
                            Text="City" />
                        <asp:TextBox ID="txtSchoolCity" runat="server" MaxLength="50" />
                    </li>
                    <li class="left">
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlSchoolState"
                            Text="required" Display="Dynamic" CssClass="required" />
                        <asp:Label runat="server" AssociatedControlID="ddlSchoolState"
                            Text="State" />
                        <ctrl:StatePicker ID="ddlSchoolState" runat="server" />
                    </li>
                    <li>
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="txtSchoolHighestLevel"
                            Text="required" Display="Dynamic" CssClass="required" />
                        <asp:Label runat="server" AssociatedControlID="txtSchoolHighestLevel"
                            Text="Highest Grade Completed or Degree Earned" />
                        <asp:TextBox ID="txtSchoolHighestLevel" runat="server" MaxLength="50" />
                    </li>
                </ul>
            </section>
        </ItemTemplate></ctrl:FormList>

    </section>

</asp:Content>

