581 lines
39 KiB
HTML
Executable File
581 lines
39 KiB
HTML
Executable File
<form name="Form" id="form" novalidate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<!--<fieldset>
|
|
<legend>
|
|
Update Employee Details
|
|
</legend>-->
|
|
|
|
<!--<div class="row">
|
|
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.branchcode.$dirty && Form.branchcode.$invalid, 'has-success':Form.branchcode.$valid}">
|
|
<label>
|
|
Branch Code <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Branch Code"
|
|
tabindex="5" class="form-control" name="branchcode"
|
|
ng-model="p.BranchCode" ng-pattern="/^[a-zA-Z0-9.\s]*$/" readonly required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.required">Branch Code required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.pattern">Invalid Branch Code </span>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.branchname.$dirty && Form.branchname.$invalid, 'has-success':Form.branchname.$valid}">
|
|
<label>
|
|
Branch Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Branch Name"
|
|
tabindex="5" class="form-control" name="branchname"
|
|
ng-model="p.BranchName" ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchname.$dirty && Form.branchname.$error.required">Branch Name required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.branchname.$dirty && Form.branchname.$error.pattern">Invalid Branch Name </span>
|
|
|
|
</div>
|
|
|
|
<div class=" col-md-4 form-group"
|
|
ng-class="{'has-error':Form.Email.$dirty && Form.Email.$invalid, 'has-success':Form.Email.$valid}">
|
|
<label>
|
|
Email ID <span class="symbol required"></span>
|
|
</label>
|
|
<input type="email" tabindex="27"
|
|
placeholder="Enter Email ID"
|
|
class="form-control"
|
|
name="Email"
|
|
ng-pattern="/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i"
|
|
ng-model="p.EmailID" required>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Email.$dirty && Form.primaryEmail.$invalid"
|
|
ng-hide="Form.Email.$error.email">Email is required.</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Email.$error.email">Please, enter a valid email address.</span>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.primaryPhone.$dirty && Form.primaryPhone.$invalid, 'has-success':Form.primaryPhone.$valid}">
|
|
<label>
|
|
Mobile Number <span
|
|
class="symbol required"></span>
|
|
</label>
|
|
<input type="text" name="primaryPhone" tabindex="29"
|
|
placeholder="Enter Mobile Number"
|
|
class="form-control"
|
|
ng-model="p.MobileNumber"
|
|
ng-minlength="10" ng-maxlength="12"
|
|
ng-pattern="/^[0-9]*$/" required>
|
|
<span class="error text-small block"
|
|
ng-if="Form.primaryPhone.$dirty && Form.primaryPhone.$invalid"
|
|
ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Primary phone is required.</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid, 'has-success':Form.secondaryPhone.$valid}">
|
|
<label class="control-label">
|
|
Alternate Mobile Number
|
|
</label>
|
|
<input type="text" name="secondaryPhone" tabindex="30"
|
|
placeholder="Enter Alternate Mobile Number"
|
|
class="form-control"
|
|
ng-model="p.AlternateNumber"
|
|
ng-minlength="10" ng-maxlength="12"
|
|
ng-pattern="/^[0-9]*$/"/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
|
</div>
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.Landline.$dirty && Form.Landline.$invalid, 'has-success':Form.Landline.$valid}">
|
|
<label class="control-label">
|
|
Landline Number
|
|
</label>
|
|
<input type="text" name="Landline" tabindex="30"
|
|
placeholder="Enter Landline Number"
|
|
class="form-control"
|
|
ng-model="p.LandlineNumber"
|
|
ng-minlength="11" ng-maxlength="13"
|
|
ng-pattern="/^[0-9-]*$/"/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Landline.$error.maxlength || Form.Landline.$error.minlength || Form.Landline.$error.pattern">Enter a Valid Number</span>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.address.$dirty && Form.address.$invalid, 'has-success':Form.address.$valid}">
|
|
<label>
|
|
Address<span class="symbol required"></span>
|
|
</label>
|
|
<textarea placeholder="Enter Address" tabindex="31"
|
|
class="form-control textdsc" name="address"
|
|
ng-model="p.Address" required></textarea>
|
|
<span class="error text-small block"
|
|
ng-if="Form.address.$dirty && Form.address.$invalid">Address is required</span>
|
|
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label>
|
|
Active/De-Active
|
|
</label>
|
|
<div ng-if="p.IsActive==true">
|
|
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
|
|
</div>
|
|
<div ng-if="p.IsActive==false">
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
-->
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend>
|
|
Personal Details
|
|
</legend>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.employeeId.$dirty && Form.employeeId.$invalid, 'has-success':Form.employeeId.$valid}">
|
|
<label>
|
|
Employee ID <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Employee Id" tabindex="1" class="form-control" name="employeeId" ng-model="myModelEdit.StaffID"
|
|
ng-pattern="/^[a-zA-Z0-9.\s]*$/" ng-blur='checkEmpIdExist()' readonly required/>
|
|
<span class="error text-small block" ng-if="Form.employeeId.$dirty && Form.employeeId.$error.required">Employee Id required</span>
|
|
<span class="error text-small block" ng-if="Form.employeeId.$dirty && Form.employeeId.$error.pattern">Invalid Employee Id </span>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.firstname.$dirty && Form.firstname.$invalid, 'has-success':Form.firstname.$valid}">
|
|
<label>
|
|
First Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="myModelEdit.Firstname"
|
|
ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/>
|
|
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.required">First Name required</span>
|
|
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.lastname.$dirty && Form.lastname.$invalid, 'has-success':Form.lastname.$valid}">
|
|
<label>
|
|
Last Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="myModelEdit.Lastname"
|
|
ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/>
|
|
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.required">Last Name required</span>
|
|
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.fathername.$dirty && Form.fathername.$invalid}">
|
|
<label>
|
|
Father Name
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="myModelEdit.Fathername"
|
|
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
|
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.mothername.$dirty && Form.mothername.$invalid}">
|
|
<label>
|
|
Mother Name
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="myModelEdit.MotherName"
|
|
ng-pattern="/^[a-zA-Z0-9.\s]*$/" />
|
|
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Last Name </span>
|
|
</div>
|
|
|
|
<div data-ng-controller="DatepickerDemoCtrl">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofbirth.$dirty && Form.dateofbirth.$invalid, 'has-success':Form.dateofbirth.$valid}">
|
|
|
|
|
|
<label>
|
|
Date Of Birth <span
|
|
class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelEdit.DOB"
|
|
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
|
|
placeholder="Select Date of Birth" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
|
max-date="currentDate" />
|
|
|
|
|
|
<span class="error text-small block" ng-if="Form.dateofbirth.$dirty && Form.dateofbirth.$invalid" ng-hide="Form.dateofbirth.$error.maxlength">Date of Birth is required.</span>
|
|
<span class="error text-small block" ng-if="Form.dateofbirth.$error.maxlength">Enter a Valid Date of Birth</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.primaryPhone.$dirty && Form.primaryPhone.$invalid, 'has-success':Form.primaryPhone.$valid}">
|
|
<label>
|
|
Mobile Number <span
|
|
class="symbol required"></span>
|
|
</label>
|
|
<input type="text" name="primaryPhone" tabindex="7" placeholder="Enter Mobile Number" class="form-control" ng-model="myModelEdit.MobileNumber"
|
|
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"
|
|
required/>
|
|
<span class="error text-small block" ng-if="Form.primaryPhone.$dirty && Form.primaryPhone.$invalid" ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Mobile Number is required.</span>
|
|
<span class="error text-small block" ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
|
</div>
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid}">
|
|
<label class="control-label">
|
|
Alternate Mobile Number
|
|
</label>
|
|
<input type="text" name="secondaryPhone" tabindex="8" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="myModelEdit.AlternateNumber"
|
|
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" />
|
|
<span class="error text-small block" ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
|
</div>
|
|
<div class=" col-md-4 form-group" ng-class="{'has-error':Form.emailId.$dirty && Form.emailId.$invalid, 'has-success':Form.emailId.$valid}">
|
|
<label>
|
|
Email ID <span class="symbol required"></span>
|
|
</label>
|
|
<input type="email" tabindex="9" placeholder="Enter Email ID" class="form-control" name="emailId" ng-pattern="/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i"
|
|
ng-model="myModelEdit.EmailID" ng-blur='updateCheckEmailExist(myModelEdit)' required>
|
|
<span class="error text-small block" ng-if="Form.emailId.$dirty && Form.emailId.$invalid" ng-hide="Form.emailId.$error.email">Email is required.</span>
|
|
<span class="error text-small block" ng-if="Form.emailId.$error.email">Please, enter a valid email address.</span>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.gender.$invalid , 'has-success':Form.gender.$valid}">
|
|
<label class="block">
|
|
Gender <span class="symbol required"></span>
|
|
</label>
|
|
<div class="clip-radio radio-primary">
|
|
<input type="radio" id="female" name="gender" value="female" ng-model="myModelEdit.Gender" required>
|
|
<label for="female">
|
|
Female
|
|
</label>
|
|
<input type="radio" id="male" name="gender" value="male" ng-model="myModelEdit.Gender" required>
|
|
<label for="male">
|
|
Male
|
|
</label>
|
|
<span class="error text-small block" ng-if="Form.gender.$dirty && Form.gender.$invalid">Gender is required.</span>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.qualificaion.$dirty && Form.qualificaion.$invalid}">
|
|
<label>
|
|
Qualification
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Qualification" tabindex="10" class="form-control" name="qualificaion" ng-model="myModelEdit.Qualification"
|
|
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
|
<span class="error text-small block" ng-if="Form.qualificaion.$dirty && Form.qualificaion.$error.pattern">Enter a Valid Qualification</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.aadharNumber.$dirty && Form.aadharNumber.$invalid, 'has-success':Form.aadharNumber.$valid}">
|
|
<label>
|
|
Aadhar Number <span class="symbol required"></span>
|
|
</label>
|
|
<!--<input type="text" class="form-control" name="masked" placeholder="99/99/9999" ui-mask="99/99/9999" ng-model="x">-->
|
|
|
|
<input type="text" name="aadharNumber" tabindex="11" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
|
|
ng-model="myModelEdit.AadharNumber" ng-minlength="10" ng-maxlength="15" ng-pattern="/^[0-9]*$/" required>
|
|
<span class="error text-small block" ng-if="Form.aadharNumber.$dirty && Form.aadharNumber.$invalid" ng-hide="Form.aadharNumber.$error.maxlength || Form.aadharNumber.$error.minlength || Form.aadharNumber.$error.pattern">Aadhar Number is required.</span>
|
|
<span class="error text-small block" ng-if="Form.aadharNumber.$error.maxlength || Form.aadharNumber.$error.minlength || Form.aadharNumber.$error.pattern">Enter a Valid Aadhar Number</span>
|
|
</div>
|
|
<div class="col-md-4 form-group">
|
|
<div class="row">
|
|
<div class="col-md-6 form-group" ng-class="{'has-error':Form.otherId.$dirty && Form.otherId.$invalid}">
|
|
<label>
|
|
Other ID
|
|
</label>
|
|
<input type="text" name="otherId" tabindex="12" placeholder="Other Id" class="form-control" ng-model="myModelEdit.OtherID" ng-minlength="1"
|
|
ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
|
<span class="error text-small block" ng-if="Form.otherId.$dirty && Form.otherId.$invalid" ng-hide="Form.otherId.$error.maxlength || Form.otherId.$error.minlength || Form.otherId.$error.pattern">Aadhar Number is required.</span>
|
|
<span class="error text-small block" ng-if="Form.otherId.$error.maxlength || Form.otherId.$error.minlength || Form.otherId.$error.pattern">Enter a Valid Details</span>
|
|
</div>
|
|
<div class="col-md-6 form-group" ng-class="{'has-error':Form.otherIdDetails.$dirty && Form.otherIdDetails.$invalid}">
|
|
<label>
|
|
Other ID Details
|
|
</label>
|
|
<input type="text" name="otherIdDetails" tabindex="13" placeholder="Other Id Details" class="form-control" ng-model="myModelEdit.OtherIDDetails"
|
|
ng-minlength="1" ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
|
<span class="error text-small block" ng-if="Form.otherIdDetails.$dirty && Form.otherIdDetails.$invalid" ng-hide="Form.otherIdDetails.$error.maxlength || Form.otherIdDetails.$error.minlength || Form.otherIdDetails.$error.pattern">Aadhar Number is required.</span>
|
|
<span class="error text-small block" ng-if="Form.otherIdDetails.$error.maxlength || Form.otherIdDetails.$error.minlength || Form.otherIdDetails.$error.pattern">Enter a Valid Details</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address1.$dirty && Form.address1.$invalid}">
|
|
<label>
|
|
Permanent Address
|
|
</label>
|
|
<textarea placeholder="Enter Permanent Address" tabindex="14" class="form-control textdsc" name="address1" ng-model="myModelEdit.PermanentAddress"></textarea>
|
|
<span class="error text-small block" ng-if="Form.address1.$dirty && Form.address1.$invalid">Permanent Address is required</span>
|
|
</div>
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address2.$dirty && Form.address2.$invalid}">
|
|
<label>
|
|
Current Address
|
|
</label>
|
|
<textarea placeholder="Enter Current Address" tabindex="15" class="form-control textdsc" name="address2" ng-model="myModelEdit.PresentAddress"></textarea>
|
|
<span class="error text-small block" ng-if="Form.address2.$dirty && Form.address2.$invalid">Current Address is required</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div data-ng-controller="DatepickerDemoCtrl">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofjoining.$dirty && Form.dateofjoining.$invalid, 'has-success':Form.dateofjoining.$valid}">
|
|
<label>
|
|
Date Of Joining <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" tabindex="16" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelEdit.DOJ"
|
|
is-open="startOpen" ng-init="startOpen = false" name="dateofjoining" datepicker-options="dateOptions"
|
|
placeholder="Select Date of Birth" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
|
/>
|
|
|
|
<!--<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="p.DOJ"
|
|
is-open="startOpen" ng-init="startOpen = false" name="dateofjoining" datepicker-options="dateOptions"
|
|
placeholder="Select Date of Joining" close-text="Close" required="required"
|
|
/>-->
|
|
<span class="error text-small block" ng-if="Form.dateofjoining.$dirty && Form.dateofjoining.$error.required">Date of Joining is required</span>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<label>
|
|
Active/De-Active
|
|
</label>
|
|
|
|
<!--<div ng-if="p.IsActive==true">
|
|
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
|
|
</div>
|
|
<div ng-if="p.IsActive==false">
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
|
|
|
</div>-->
|
|
|
|
<div ng-if="myModelEdit.IsActive==true">
|
|
<switch ng-model="myModelEdit.IsActive" ng-init="myModelEdit.IsActive = true" class="green"></switch>
|
|
</div>
|
|
<div ng-if="myModelEdit.IsActive==false">
|
|
<switch ng-model="myModelEdit.IsActive" ng-init="myModelEdit.IsActive = false" class="green"></switch>
|
|
</div>
|
|
<!--<div ng-switch-default>
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
</div>-->
|
|
</div>
|
|
<div class="col-md-4">
|
|
<img class="thumb prof" ng-src="images/{{myModelEdit.ProfilePicPath}}" />
|
|
<style>
|
|
.thumb {
|
|
width: 130px;
|
|
height: 140px;
|
|
margin: 18px;
|
|
float: left;
|
|
}
|
|
.prof {
|
|
border: 2px solid #2C3543;
|
|
}
|
|
.uploader {
|
|
clear: both;
|
|
}
|
|
</style>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<form name="Form" id="form1" novalidate ng-submit="form.submit(Form,myModel)" method="post">
|
|
<div class="file-upload">
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
<h5>Update Profile Picture</h5>
|
|
<div class=" margin-bottom-5">
|
|
|
|
</div>
|
|
<input type="file" accept="image/*" ng-init="resetImage()" file-upload onchange="angular.element(this).scope().imageUpload(event)" />
|
|
</div>
|
|
<div class="col-md-6">
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="user-image">
|
|
|
|
</div>
|
|
<!--<input type="file" file-model="idProof"
|
|
accept="image/*" onchange="angular.element(this).scope().imageUpload(event)"/>-->
|
|
|
|
|
|
<div>
|
|
<div ng-repeat="step in stepsModel">
|
|
<!--<a class="close-thin"></a>-->
|
|
<img class="thumb" ng-src="{{step}}" />
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button class="btn btn-success btn-o btn-sm margin-right-15" type="button" ng-click="resetImage()">Reset
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.thumb {
|
|
width: 130px;
|
|
height: 140px;
|
|
margin: 18px;
|
|
float: left;
|
|
|
|
}
|
|
|
|
.uploader {
|
|
clear: both;
|
|
}
|
|
</style>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!--<pre>{{ p | json}}</pre>-->
|
|
<input type="hidden" ng-init="hidden_DOJ=p.DOJ" ng-model="hidden_DOJ">
|
|
<input type="hidden" ng-init="hidden_DOB=p.DOB" ng-model="hidden_DOB">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button type="button" ladda="ldloading1.zoom_in" tabindex="19" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateEmpDetails(Form, myModelEdit, hidden_DOB, hidden_DOJ)">
|
|
Save
|
|
</button>
|
|
<button type="reset" class="btn btn-warning btn-wide" tabindex="20" ng-click="cancel()">
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<!--<fieldset>
|
|
<legend>
|
|
Branch Details
|
|
</legend>
|
|
<div class="row">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.homeBranch.$dirty && Form.homeBranch.$invalid, 'has-success':Form.homeBranch.$valid}">
|
|
<label for="form-field-select-2">
|
|
Home Branch <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<select class="form-control" class="cs-select cs-skin-elastic" name="homeBranch" ng-model="p.BranchCode" required>
|
|
<option value="" disabled selected>Select Home Branch</option>
|
|
<option ng-repeat="item in branchDetails" value="{{item.BranchCode}}" ng-selected="p.BranchCode == item.BranchCode">{{item.BranchName}}</option>
|
|
</select>
|
|
<span class="error text-small block" ng-if="Form.homeBranch.$dirty && Form.homeBranch.$error.required">Home Branch is Required</span>
|
|
</div>
|
|
|
|
<div data-ng-controller="DatepickerDemoCtrl">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofjoining.$dirty && Form.dateofjoining.$invalid, 'has-success':Form.dateofjoining.$valid}">
|
|
<label>
|
|
Date Of Joining <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="yyyy-MM-dd" ng-model="p.DOJ"
|
|
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
|
|
placeholder="Select Date of Joining" close-text="Close" required="required"
|
|
/>
|
|
<span class="error text-small block" ng-if="Form.dateofjoining.$dirty && Form.dateofjoining.$error.required">Date of Joining required</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.role.$dirty && Form.role.$invalid, 'has-success':Form.role.$valid}">
|
|
<label>
|
|
Role <span class="symbol required"></span>
|
|
</label>
|
|
<select class="form-control" name="role" ng-model="p.ListCode" class="cs-select cs-skin-elastic" required>
|
|
|
|
<option value="" disabled selected>Select Role</option>
|
|
<option ng-repeat="item in roleDetails" value="{{item.ListCode}}" ng-selected="p.ListCode == item.ListCode">{{item.ListName}}</option>
|
|
</select>
|
|
<span class="error text-small block" ng-if="Form.role.$dirty && Form.role.$error.required">Role is required</span>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label>
|
|
Active/De-Active
|
|
</label>
|
|
|
|
<div ng-switch="p.IsActive">
|
|
<div ng-switch-when="true">
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
</div>
|
|
<div ng-switch-when="false">
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
|
</div>
|
|
<div ng-switch-default>
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<pre>{{ p | json}}</pre>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button type="button" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateEmpDetails(Form, p)">
|
|
Submit
|
|
</button>
|
|
<button type="reset" class="btn btn-warning btn-wide" tabindex="9" ng-click="branchForm.reset(Form)">
|
|
Reset
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>-->
|
|
|
|
</div>
|
|
</div>
|
|
<!--<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<input type="button" class="btn btn-warning btn-wide" tabindex="9" value="Cancel"
|
|
ng-click="cancel();">
|
|
</input>
|
|
</div>
|
|
</div>-->
|
|
<!--</fieldset>-->
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- class="editRowTd" --> |