<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" EnableEventValidation="false"
    CodeBehind="hr_location.aspx.cs" Inherits="HRMS.hr_location" %>
<%-- <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>--%>

<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-lg-12">
                <section class="panel">
                          <header class="panel-heading">Location Setup
                            <div class="action pull-right">
                                 <asp:Button ID="btnSave" class="btn btn-info" runat="server" Text="Save" 
                                              onclick="btnSave_Click" ></asp:Button>
                                            
                                      <a href="#" id="aCancel" runat="server" class="btn btn-info" >Back</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">
                                    <div class="col-md-7 col-md-offset-1">
                                         <label  class="col-md-4 control-label">Scope</label>
                                        <div class="col-md-4">
                                      <asp:DropDownList ID="ddl_scope" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                        <asp:RadioButton  Visible="false" ID="RadioButton2" runat="server" Text="Global" GroupName="location"></asp:RadioButton>
                                            
                                        <asp:RadioButton  Visible="false" ID="RadioButton1" runat="server" Text="Local" GroupName="location"></asp:RadioButton>
                                        
                                        </div>
                                    </div>
                                </div>
                            
                                <div class="row">
                                    <div class="col-md-7 col-md-offset-1">
                                        <label  class=" col-md-4 control-label">Name</label>
                                        <div class="col-md-4">
                                          <asp:HiddenField ID="hid_LOCATION_ID" runat="server"></asp:HiddenField>
                                          <asp:TextBox ID="txt_LOCATION_CODE" runat="server" CssClass="form-control"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                            
                                <div class="row">
                                    <div class="col-md-7 col-md-offset-1">
                                        <label  class="col-md-4 control-label">Description</label>
                                        <div class="col-md-8">
                                        <asp:TextBox ID="txt_DESCRIPTION" runat="server" CssClass="form-control"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                               
                                <div class="row">
                                    <div class="col-md-7 col-md-offset-1">
                                        <label  class=" col-md-4 control-label">Inactive Date</label>
                                        <div class="col-md-3">
                                         <asp:TextBox ID="txt_INACTIVE_DATE" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                        
                                        </div>
                                        <div class="col-md-5">
                                          <label  class=" col-md-10 control-label">Legal address</label>
                                           <asp:CheckBox id="chk_legalAddr"  runat="server" CssClass="checkbox" />
                                         </div>
                                    </div>
                                </div>
                                <br />
                                
                                <hr class="divider"/>
                                <div class="row">
                                     <div class="col-md-4">
                                        <label  class=" col-md-4 control-label">Country</label>
                                        <div class="col-md-8">
                                       <asp:DropDownList ID="ddl_country" CssClass="form-control select2" runat="server" 
                                                AutoPostBack="True" onselectedindexchanged="ddl_country_SelectedIndexChanged"></asp:DropDownList>
                                        </div>
                                     </div>
                                     <div class="col-md-4">
                                       <label  class=" col-md-4 control-label">City</label>
                                        <div class="col-md-8">
                                            <asp:DropDownList ID="ddl_city" CssClass="form-control select2" runat="server"></asp:DropDownList>
                                        </div>
                                     </div>
                                     <div class="col-md-4">
                                      <label  class=" col-md-4 control-label">PostalCode</label>
                                       <div class="col-md-8">
                                          <asp:TextBox ID="txt_POSTAL_CODE" runat="server" CssClass="form-control" 
                                               AutoPostBack="True"></asp:TextBox>
                                        </div>
                                     </div>
                                </div>
                                <br />

                                <div class="row">
                                    <div class="col-md-8">
                                      <h5>Address</h5>
                                       <hr class="divider"/>   
                                          <div class="row">
                                            <label  class=" col-md-2 control-label">Line 1</label>  
                                             <div class="col-md-8">
                                               <asp:TextBox ID="txt_ADDRESS_LINE_1" runat="server" CssClass="form-control"></asp:TextBox>
                                              </div>
                                          </div>
                                           <div class="row">
                                            <label  class=" col-md-2 control-label">Line 2</label>  
                                              <div class="col-md-8">
                                               <asp:TextBox ID="txt_ADDRESS_LINE_2" runat="server" CssClass="form-control"></asp:TextBox>
                                              </div>
                                          </div>
                                           <div class="row">
                                            <label  class=" col-md-2 control-label">Line 3</label>  
                                              <div class="col-md-8">
                                                <asp:TextBox ID="txt_ADDRESS_LINE_3" runat="server"  CssClass="form-control"></asp:TextBox>
                                              </div>
                                          </div>
                                    </div>
                                    <div class="col-md-4">
                                      <h5> Phone Numbers</h5>
                                       <hr class="divider"/>
                                       <div class="row">
                                           <label  class=" col-md-2 control-label">1st</label>
                                           <div class="col-md-9">
                                              <asp:TextBox ID="txt_TELEPHONE_NUMBER_1" runat="server" CssClass="form-control"></asp:TextBox>
                                           </div>  
                                       </div>
                                       <div class="row">
                                           <label  class=" col-md-2 control-label">2nd</label>  
                                           <div class="col-md-9">
                                             <asp:TextBox ID="txt_TELEPHONE_NUMBER_2" runat="server"  CssClass="form-control"></asp:TextBox>
                                           </div>
                                       </div>
                                       <div class="row">
                                           <label  class=" col-md-2 control-label">3rd</label>  
                                            <div class="col-md-9">
                                             <asp:TextBox ID="txt_TELEPHONE_NUMBER_3" runat="server" CssClass="form-control"></asp:TextBox> 
                                            </div>
                                       </div>
                                    
                                    </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-lg-1">
                                  <asp:Label ID="r_lbl" runat="server" class="col-lg-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
                                      <div class="col-lg-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>
                            </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>
