<div class="col-sm-12">
    <h3 class="text-center">Update Work Experience</h3><hr>
    <div class="col-sm-12">
        <div class="row gray_ttc">
            <div class="col-sm-12 ">
                <div class="col-sm-12">
                    <form name="edit_work_experience" method="post" action="javascript:void(0)"
                          onsubmit="updateWorkExperiencs('<?php echo base_url() ?>update-work-experience/<?php echo $work_value->person_work_details_id; ?>', '<?php echo $work_value->person_work_details_id; ?>')"
                          >
                        <div class="col-sm-12 ">
                            <div class="col-sm-12"><br></div>
                            <div class="form-group col-sm-12">
                                <input type="hidden" name="person_id" id="person_id" value="<?php echo $work_value->person_id; ?>">
                                <div class="input-group">
                                    <input type="text" 
                                           class="form-control validate[required] text-input" 
                                           placeholder="Please Type Company Name"
                                           name="company_name"
                                           id="company_name"
                                           value="<?php echo $work_value->company_name; ?>"
                                           aria-describedby="basic-addon1"
                                           data-errormessage-value-missing="Company Name is required!" >
                                    <span class="input-group-addon" id="basic-addon1"><i class="fa fa-briefcase"></i></span>
                                </div>
                                <span id="company_error1" style="color:red"></span>
                            </div>
                           
                            <div class="form-group col-sm-6">
                                <div class="input-group">
                                    <input type="text" 
                                           class="form-control validate[required, custom[Designation], custom[Designation_length]] text-input" 
                                           placeholder="Please Type Your Designation" 
                                           aria-describedby="basic-addon1"
                                           name="designation"
                                           id="designation"
                                           value="<?php echo $work_value->designation; ?>"
                                           data-errormessage-value-missing="Designation is required!" >
                                    <span class="input-group-addon" id="basic-addon1"><i class="fa fa-user"></i></span>
                                </div>
                                <span id="designation_error1" style="color:red"></span>
                            </div>
                            <div class="form-group col-sm-6">
                                <div class="input-group">
                                    <input type="text" 
                                           class="form-control validate[required, custom[url]] text-input" 
                                           placeholder="Please Type Your Company Website URL" 
                                           name="company_website_url"
                                           id="company_website_url"
                                           value="<?php echo $work_value->company_website_url; ?>"                                           
                                           aria-describedby="basic-addon1"
                                           data-errormessage-value-missing="Company Website URL is required!" >
                                    <span class="input-group-addon" id="basic-addon1"><i class="fa fa-link"></i></span>
                                </div>
                                <span id="url_error1" style="color:red"></span>
                            </div>
                           

                            <div class="form-group col-sm-12">
                                <div class="form-group">
                                    <textarea name="company_address" id="company_address" 
                                              data-errormessage-value-missing="Company  Address is required!"
                                              class="form-control col-sm-4 validate[required] text-input" 
                                              placeholder="Please Type Your Company  Address"><?php echo $work_value->company_address; ?></textarea>
                                    <span id="address_error1" style="color:red"></span>
                                </div>
                            </div>
                           

                            <div class="form-group col-sm-12">
                                <div class="form-group">
                                    <textarea name="job_responsibility_details" id="job_responsibility_details" 
                                              data-errormessage-value-missing="Job Responsibility is required!"
                                              class="form-control col-sm-4 validate[required] text-input" 
                                              placeholder="Please Type Your Job Responsibility"><?php echo $work_value->job_responsibility_details; ?></textarea>
                                    <span id="responsibility_error1" style="color:red"></span>
                                </div>
                            </div>
                           
                            <div class="form-group col-sm-6">
                                <div class='input-group' id='datetimepicker2'>
                                    <input type='text' 
                                           data-errormessage-value-missing="Job Start Date is Required!" 
                                           class="form-control validate[required,custom[maxdate]] text-input"
                                           id="start_time_period1"
                                           name="job_start_date"
                                           value="<?php echo $work_value->job_start_date; ?>"
                                           onblur="checkWorkStartCurrentDate(this.value);
                                               compareWorkDate('start_time_period1', 'end_time_period', 'start_date_error1', 'update_work_button');"
                                           placeholder=" Start date"/>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span><br>
                                    </span>
                                </div>
                                <span id="start_date_error1" style="color:red"></span>
                            </div>

                            <div class="form-group col-sm-12"  style="padding-left: 0">
                               
                                <div class="col-sm-4 text-left">
                                    <label for="work_current_here" class=" " >
                                        Work Currently Here  :  &nbsp;&nbsp;
                                    </label>
                                </div>
                                
                                <div class="radio radio-success col-sm-8  text-left margin-zero " id="status" style="padding-left: 30px">
                                    <input type="radio" 
                                           onclick="WorkStatusCheck(this.value)"
                                           onblur="compareWorkDate('start_time_period1', 'end_time_period', 'end_date_error1', 'update_work_button')"
                                           name="work_currently_here" 
                                           id="yes" 
                                           value="1" 
                                           checked="">
                                    <label for="yes">Yes</label>
                                    <span style="margin-right: 30px"></span>
                                    <input type="radio" 
                                           onclick="WorkStatusCheck(this.value)"
                                           onblur="compareWorkDate('start_time_period1', 'end_time_period', 'end_date_error1', 'update_work_button')"
                                           name="work_currently_here" 
                                           id="no" 
                                           value="2">
                                    <label for="no">No</label>
                                </div>
                                <span id="current_work_error1" style="color:red"></span>
                                <input type="hidden" id="hidden_work_currently_here" value="<?php echo $work_value->work_currently_here; ?>" >
                            </div>
                          
                            <div class="form-group col-sm-6" id="workEndDate11" style="display: none">
                                <div class='input-group' id='datetimepicker1'>
                                    <input type='text' 
                                           data-errormessage-value-missing="Person Birth Date is Required!" 
                                           class="form-control validate[required] text-input"
                                           id="end_time_period"
                                           name="job_end_date"
                                           value="<?php echo $work_value->job_end_date; ?>"
                                           onblur="compareWorkDate('start_time_period1', 'end_time_period', 'end_date_error1', 'update_work_button')"
                                           placeholder="Finished date"/>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span><br>
                                    </span>
                                </div>
                                <span id="end_date_error1" style="color:red"></span>
                            </div>
                            <div class="form-group col-sm-6">
                                <select class="form-control validate[required]" 
                                        id="account_type" 
                                        name="person_work_view_status"
                                        data-errormessage-value-missing="Who can see my Education details is required!">
                                    <option value=""> -Who can see my Education details- </option>
                                    <option value="1">Public</option>
                                    <option value="2">Talha Training User</option>
                                    <option value="3">Link</option>
                                    <option value="4">Only Me</option>
                                </select>
                                <span id="view_status_error1" style="color:red"></span>
                                <input type="hidden" id="hidden_person_work_view_status" value="<?php echo $work_value->person_work_view_status; ?>" >
                            </div>
                            <div class="col-sm-12"><br></div>
                            
                            <div class="form-group col-sm-5"></div>
                            <div class="form-group col-sm-1 ">
                                <button type="submit" id="update_work_button" class=" btn btn-default">
                                   <i class="fa fa-save" title="Update Work Experience"></i>
                                </button>
                            </div>
                            
                            <div class="form-group col-sm-1">
                                <a class=" btn btn-default" href="javascript:void(0)"
                                   onclick="cancelUpdateWorkExperience('<?php echo base_url() ?>cancel-update-work-experience', '<?php echo $work_value->person_work_details_id; ?>')" >
                                   <i class="fa fa-times" title="Cancel"></i></a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div> 
    </div>
</div>
<div><input type="hidden" id="check_work_form_view" value="1"></div>