<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Branch.aspx.cs" Inherits="HRMS.Branch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="main_pnl" runat="server">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                <header class="panel-heading">Bank Branch Setup
                  <div class="pull-right">
                    <asp:Button ID="btnSave" class="btn btn-info" runat="server" Text="Save"  onclick="btnSave_Click" ValidationGroup="save" ></asp:Button>
                    <a href="#" id="aCancel" runat="server" class="btn btn-info">Bank</a>
                  </div>
                  
                
                </header>
                 <div class="panel-body">
                    <div class="span6">
                        <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                            <i class="icon-check-sign"></i>
                            <asp:Label ID="lblMessage" class="msg" runat="server" Text="" ></asp:Label>
                        </div>
                        <div class="span6">
                            <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                              <i class="icon-check-sign"></i>
                              <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text="" ></asp:Label>
                            </div>
                        </div>
                    </div>



                     <div class="row">
                      <label class="col-md-2 col-sm-2 control-label">Branch Name</label>
                      <div class="col-md-4">
                            <asp:HiddenField ID="hid_BRANCH_ID" runat="server"></asp:HiddenField>
                            <asp:HiddenField ID="hid_BANK_ID" runat="server"></asp:HiddenField>
                            <asp:HiddenField ID="hid_BUSINESS_GROUP_ID" runat="server"></asp:HiddenField>
                            <asp:TextBox ID="txt_BRANCH_NAME" runat="server" CssClass="form-control"></asp:TextBox>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_BRANCH_NAME" ControlToValidate="txt_BRANCH_NAME" ErrorMessage="Branch Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                      </div>

                          <label for="inputPassword1" class="col-md-1 col-sm-1 control-label">City</label>
                        <div class="col-md-3">
                          <asp:DropDownList ID="ddl_CITY" runat="server" CssClass="form-control select2"></asp:DropDownList>
                          <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_CITY" ControlToValidate="ddl_CITY" ErrorMessage="City is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                        </div>

                     </div>

                   


                     <div class="row">
                       <label class="col-md-2 col-sm-2 control-label">Address 1</label>
                       <div class="col-md-5">
                         <asp:TextBox ID="txt_ADDRESS_LINE_1" runat="server"  CssClass="form-control"></asp:TextBox>
                        </div>

                           <label class="col-md-2 col-sm-2 control-label">Enable</label>
                              <div class="col-md-1">
                                 <asp:CheckBox ID="chk_ENABLED" runat="server" CssClass="checkbox"></asp:CheckBox>
                               </div>
                     </div>

                     <div class="row">
                         <label class="col-md-2 col-sm-2 control-label">Address 2</label>
                         <div class="col-md-5">
                             <asp:TextBox ID="txt_ADDRESS_LINE_2" runat="server"  CssClass="form-control"></asp:TextBox>
                         </div>
                     </div>

                     <div class="row">
                         <label class="col-md-2 col-md-2 control-label">Date From</label>
                          <div class="col-md-2">
                                        <asp:TextBox ID="txt_DATE_START" runat="server" MaxLength="10" CssClass="form-control datetime"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_DATE_START" ControlToValidate="txt_DATE_START" ErrorMessage="Date From is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                      </div>

                         <label class="col-md-3 control-label">Date To</label>
                                        <div class="col-md-2">
                                          <asp:TextBox ID="txt_DATE_END" runat="server" MaxLength="10" CssClass="form-control datetime"></asp:TextBox>
                                        </div>
                      </div>


                     <div class="form-group">
                        <asp:Repeater ID="add_info" runat="server">
                         <HeaderTemplate> <header class="panel-heading">Additional Information</header><br /></HeaderTemplate>
                             <ItemTemplate>
                                <div class="form-group">
                                  <div class="col-md-1"></div>
                                    <asp:Label ID="r_lbl" runat="server" class="col-md-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
                                      <div class="col-md-4">
                                        <asp:TextBox ID="txt_r_value" runat="server"  placeholder='<%# Eval("PROMPT") %>' Text='<%# Eval("value") %>' CssClass="form-control"></asp:TextBox>
                                        <asp:HiddenField ID="hid_field_name" runat="server" Value='<%# Eval("col_name") %>' ></asp:HiddenField>
                                       </div>
                                  </div>
                             </ItemTemplate>
                        </asp:Repeater>
                      </div>

                 </div>
            </section>
            </div>
        </div>
    </asp:Panel>

    <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css" rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
</asp:Content>
