<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="True" CodeBehind="PER_ABS_ATTENDANCE_TYPES.aspx.cs"
    Inherits="HRMS.PER_ABS_ATTENDANCE_TYPES" Title="Cloud HR - Absense Attendance Type" %>

<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">Absence Attendance Type

<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">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-10 col-md-offset-1">
      
       <label class="control-label col-md-2">Business Group</label>
       <div class="col-md-6">
        <asp:DropDownList ID="ddl_BUSINESS_GROUP_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="req_ddl_BUSINESS_GROUP_ID" controltovalidate="ddl_BUSINESS_GROUP_ID" errormessage="Business Group is Required!" />
       </div>

    </div>

</div>
<div class="row">

    <div class="col-md-10 col-md-offset-1">
      
       <label class="control-label col-md-2">Name</label>
       <div class="col-md-8">
         <asp:TextBox ID="txt_NAME" runat="server"  CssClass="form-control"></asp:TextBox>
         <asp:HiddenField ID="hid_ABSENCE_ATTENDANCE_TYPE_ID" runat="server"></asp:HiddenField>
         <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_NAME" controltovalidate="txt_NAME" errormessage="Name is Required!" />
       </div>

    </div>

</div>

<div class="row">

    <div class="col-md-10 col-md-offset-1">
      
       <label class="control-label col-md-2">Category</label>
       <div class="col-md-3">
        <asp:DropDownList ID="ddl_ABSENCE_CATEGORY" runat="server" CssClass="form-control select2"></asp:DropDownList>
       </div>
       <label class="control-label col-md-3">Allow Absence Overlaps</label>
       <div class="col-md-2">
        <asp:RadioButton ID="rdo_allow_absence_yes" GroupName="allow_absence" Text="Yes" runat="server" CssClass="radio"></asp:RadioButton>
       </div>
       <div class="col-md-2">
        <asp:RadioButton ID="rdo_allow_absence_no" GroupName="allow_absence" Text="No" runat="server" CssClass="radio"></asp:RadioButton>
       </div>
        
    </div>

</div>

<br />

<div class="row">

 <div class="col-md-10 col-md-offset-1">
  <h5>Associated Element</h5>
  <hr />
    <div class="row">
      <div class="col-md-10 col-md-offset-1">
          <label class="control-label col-md-2">Name</label>
           <div class="col-md-4">
            <asp:DropDownList ID="ddl_ELEMENT_TYPE_ID" runat="server" CssClass="form-control select2" 
                   AutoPostBack="True" 
                   onselectedindexchanged="ddl_ELEMENT_TYPE_ID_SelectedIndexChanged"></asp:DropDownList>
           </div>
           <label class="control-label col-md-2">Input Value</label>
           <div class="col-md-4">
            <asp:DropDownList ID="ddl_INPUT_VALUE_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
           </div>
      </div>
    </div>
   <br />
    <div class="row">
   
      <div class="col-md-3 col-md-offset-3">
       <h5>Units</h5>
       <hr style="margin:0px !important;"/>
       <asp:RadioButtonList ID="rdo_uom" runat="server" CssClass="radio"></asp:RadioButtonList>
      </div>
      <div class="col-md-3 col-md-offset-1">
       <h5>Balances</h5>
       <hr style="margin:0px !important;"/>
       <asp:RadioButtonList ID="rdo_balance" runat="server" CssClass="radio"></asp:RadioButtonList>
      </div>
   
    </div>

 </div>

</div>

<div class="row">

 <div class="col-md-10 col-md-offset-1">
  <h5>Effective Dates</h5>
  <hr />

   <div class="row">
      <div class="col-md-10 col-md-offset-1">
          <label class="control-label col-md-2">From Date</label>
           <div class="col-md-4">
           <div class="col-md-11">
                <asp:TextBox ID="txt_EFFECTIVE_START_DATE" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_EFFECTIVE_START_DATE" controltovalidate="txt_EFFECTIVE_START_DATE" errormessage="Effective Date is Required!" />
           </div>
           </div>
           <label class="control-label col-md-2">To Date</label>
           <div class="col-md-4">
           <div class="col-md-11">
                <asp:TextBox ID="txt_EFFECTIVE_END_DATE" runat="server"  CssClass="form-control datetime"></asp:TextBox>
           </div>
           </div>
      </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"></div>
<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>
</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>
