<%@ Page Language="C#"  MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PER_JOBS.aspx.cs" Inherits="HRMS.PER_JOBS" Title="Cloud HR - Job Setup" %>
<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" style="padding-bottom:30px">
                           <span class="label label-primary">Job Setup</span>
                    <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" style="padding-top:10px;">
                                <div class="col-md-5 col-md-offset-1">
                                  <label class="col-md-4 control-label">Business Group</label>
                                  <div class="col-md-8">
                                        <asp:DropDownList ID="ddl_BUSINESS_GROUP_ID" runat="server" CssClass="form-control text-align-top select2"></asp:DropDownList><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="ddl_BUSINESS_GROUP_ID" ErrorMessage="Business Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                  </div>
                                </div>
                                 <div class="col-md-5">
                                  <label class="col-md-4 control-label">Job Group</label>
                                   <div class="col-md-8">
                                        <asp:DropDownList ID="ddl_job_group" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_job_group" ControlToValidate="ddl_job_group" ErrorMessage="Job Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                     
                                   </div>
                                </div>
                               </div>

                               <hr />

                              

                                  <div class="row" style="padding-top:10px;">
                                     <div class="col-md-8 col-md-offset-1">
                                        <label class="col-md-3 control-label">Job Name</label>
                                        <div class="col-md-8">
                                            <asp:HiddenField ID="hid_JOB_ID" runat="server"></asp:HiddenField>
                                            <asp:TextBox ID="txt_NAME" runat="server" placeholder="Name" CssClass="form-control"></asp:TextBox>
                                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_NAME" ControlToValidate="txt_NAME" ErrorMessage="Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>

                                         </div>
                                    </div>
                                  </div>

                                  <div class="row" style="padding-top:10px;">
                                     <div class="col-md-8 col-md-offset-1">
                                        <label class="col-md-3 control-label">Benchmark Job</label>
                                        <div class="col-md-8">
                                           <asp:CheckBox runat="server" ID ="chk_benchmark_job" CssClass="checkbox" Text=""/>
                                         </div>
                                    </div>
                                  </div>

                                  <div class="row" style="padding-top:10px;">
                                     <div class="col-md-8  col-md-offset-1">
                                        <label class="col-md-3 control-label">Comments</label>
                                        <div class="col-md-8">
                                            <asp:TextBox ID="txt_COMMENTS" runat="server" CssClass="form-control" TextMode="MultiLine"></asp:TextBox>
                                         </div>
                                    </div>
                                  </div>

                                  <div class="row" style="padding-top:10px;">
                                   <div class="col-md-8  col-md-offset-1">
                                     <label class="col-md-3 control-label">Date From</label>
                                     <div class="col-md-9" style="padding-left : 0px !important;">
                                          <div class="col-md-4">
                                                <asp:TextBox ID="Txtfdate" runat="server"  MaxLength="10" 
                                                 CssClass="form-control datetime"></asp:TextBox>
                                                 <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_Txtfdate" ControlToValidate="Txtfdate" 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-4">
                                             <asp:TextBox ID="Txttdate" runat="server" MaxLength="10" CssClass="form-control datetime"></asp:TextBox>
                                          </div>

                                      </div>
                                   </div>
                                 </div>



        <asp:Panel runat="server" Visible="false" ID="pnl_vis"> 
                                        <div class="form-group" >
                                        <div class="col-md-1"></div>
                                        <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">BENCHMARK_JOB_ID</label>
                                        <div class="col-md-4">
                                        <asp:TextBox ID="txt_BENCHMARK_JOB_ID" runat="server" placeholder="BENCHMARK_JOB_ID" CssClass="form-control"></asp:TextBox>
                                        </div>
                                        </div>                                                                                                                                                                                                                                          

                                        <div class="form-group" >
                                        <div class="col-md-1"></div>
                                        <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">EMP_RIGHTS_FLAG</label>
                                        <div class="col-md-4">
                                        <asp:TextBox ID="txt_EMP_RIGHTS_FLAG" runat="server" placeholder="EMP_RIGHTS_FLAG" CssClass="form-control"></asp:TextBox>
                                        </div>
                                        </div>
         </asp:Panel>                
                    
                           
   <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 class="form-group">
<div class="col-md-1"></div>
<div class="col-md-offset-2 col-md-8">

</div>
</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>