DOB validation remove : kdk

This commit is contained in:
resicovenba 2018-03-07 09:44:34 +05:30
parent b56c0e0c8e
commit f3e7198134
5 changed files with 104 additions and 73 deletions

View File

@ -118,7 +118,7 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
$scope.getStudentList();
$scope.getUniversityList();
$scope.getUniversitySearchList();
$scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
// $scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
} else {
ipCookie.remove('cookiechk');
$window.localStorage.clear();
@ -1232,7 +1232,6 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
$scope.updateStuDetails = function (form, p, hidedob) {
$scope.editSaveButtonDisable = true;
var firstError = null;
// alert(form.$invalid);
if (form.$invalid) {
var field = null, firstError = null;
for (field in form) {
@ -1248,7 +1247,6 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
angular.element('.ng-invalid[name=' + firstError + ']').focus();
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
} else {
// alert(p.DOB);
var idProof = $scope.filesEdit[0];
@ -1381,7 +1379,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.getStudentList();
$scope.getUniversityList();
$scope.getUniversitySearchList();
$scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
// $scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
$scope.viewStudentDetailsPage = true;
}
@ -2329,7 +2327,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.studentDocumentsList = response.data.student_doc_details;
} else {
$scope.docNotFound = true;
$scope.studentDocumentsList.call();
// $scope.studentDocumentsList.call();
}
});
}
@ -2636,7 +2634,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.updateStuDetails = function (form, p, hidedob) {
var firstError = null;
$scope.editSaveButtonDisable = true;
if (form.$invalid) {
if (form.$invalid) { alert("invalid");
var field = null, firstError = null;
for (field in form) {
if (field[0] != '$') {
@ -2931,3 +2929,23 @@ app.directive('fileDownload', function($window){
}
}
})
app.directive('capitalizeFirst', function($parse) {
return {
require: 'ngModel',
link: function(scope, element, attrs, modelCtrl) {
var capitalize = function(inputValue) {
if (inputValue === undefined) { inputValue = ''; }
var capitalized = inputValue.charAt(0).toUpperCase() +
inputValue.substring(1);
if(capitalized !== inputValue) {
modelCtrl.$setViewValue(capitalized);
modelCtrl.$render();
}
return capitalized;
}
modelCtrl.$parsers.push(capitalize);
capitalize($parse(attrs.ngModel)(scope)); // capitalize initial value
}
};
});

View File

@ -107,7 +107,7 @@
First Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="p.Firstname"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.required">First Name is required</span>
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
</div>
@ -116,7 +116,7 @@
Last Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="p.Lastname"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.required">Last Name is required</span>
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
</div>
@ -127,7 +127,7 @@
Father Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="p.Fathername"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.required">Father Name is required</span>
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
</div>
@ -137,7 +137,7 @@
</label>
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="p.MotherName"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.required">Mother Name is required</span>
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Mother Name </span>
</div>
@ -171,7 +171,7 @@
<input type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="p.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)"
show-button-bar="false" max-date="currentDate" />
show-button-bar="true" />
<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>

View File

@ -329,7 +329,7 @@
<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="myModel.firstname" style="text-transform: capitalize;"
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="myModel.firstname" capitalize-first
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.required">First Name is required</span>
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
@ -338,7 +338,7 @@
<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="myModel.lastname" style="text-transform: capitalize;"
<input type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="myModel.lastname" capitalize-first
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.required">Last Name is required</span>
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
@ -349,7 +349,7 @@
<label>
Father Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="myModel.fathername" style="text-transform: capitalize;"
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="myModel.fathername" capitalize-first
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.required">Father Name is required</span>
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
@ -359,7 +359,7 @@
Mother Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="myModel.mothername" style="text-transform: capitalize;"
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="myModel.mothername" capitalize-first
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.required">Mother Name is required</span>
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Mother Name </span>
@ -394,7 +394,7 @@
<input type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModel.dateofbirth"
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
placeholder="Select Date of Birth" close-text="Close" required="required"
ng-change="getChangeDate()" show-button-bar="false" max-date="currentDate"
ng-change="getChangeDate()" show-button-bar="true"
/>
@ -922,7 +922,7 @@
ng-model="existingStuPersonalDetails.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)"
show-button-bar="false" max-date="currentDate" />
show-button-bar="true" 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>
@ -1014,7 +1014,7 @@
</label>
<input readonly type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="existingStuPersonalDetails.Category"
/>
capitalizeFirstLetter />
<span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
</div>
</div>

View File

@ -11,6 +11,12 @@
<!-- end: STUDENT TITLE -->
<!-- start: LIST GROUP -->
<div ng-controller="studentSuperAdminCtrl" class="container-fluid container-fullw bg-white">
<script>
$( document ).ready(function() {
$("#selectBranch").focus();
});
</script>
<style>
/*#wrapper {
@ -56,8 +62,8 @@
Select Branch
</label>
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="branch" ng-model="localBranchDetails" ng-change="changeBranch()"
required>
<select class="form-control" tabindex="0" class="cs-select cs-skin-elastic" name="branch" ng-model="localBranchDetails" ng-change="changeBranch()"
id="selectBranch" required>
<option value="" disabled selected>Select Branch</option>
<option ng-repeat="bdata in branchList_data" value="{{bdata.BranchCode}}">{{bdata.BranchName}}</option>
</select>
@ -76,7 +82,14 @@
<button ng-click="tabActive('0')" value="Tab1">Tab1</button>
<button ng-click="tabActive('1')" value="Tab2">Tab2</button>-->
<tabset id="here" class="tabbable" ng-init="tabActive('tabactive1')">
<tab active="tabactive1" ng-click="tabActive('tabactive1')" heading="View Student" id="studentbranch">
<tab tabindex="1" active="tabactive1" ng-click="tabActive('tabactive1')" heading="View Student" id="studentbranch">
<script>
$( "#selectBranch" ).change(function() {
$("#searchIn").focus();
}); $( "#selectBranch" ).click(function() {
$("#searchIn").focus();
});
</script>
<div class="container-fluid container-fullw">
<div class="row">
@ -103,7 +116,7 @@
<label for="form-field-select-2">
Search
</label>
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search" /><br><br>
<input class="form-control" type="text" ng-model="search" id="searchIn" autofocus tabindex="2" placeholder="Search" /><br><br>
</div>
<div class="col-md-3">
@ -111,7 +124,7 @@
University
</label>
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="myUnivSearch"
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="university" ng-model="myUnivSearch"
ng-change="getUniveId(myUnivSearch)">
<option value="" disabled selected>Select University</option>
<option ng-repeat="item in universitySearchData" value="{{item}}">{{item.UniversityName}}</option>
@ -124,7 +137,7 @@
Course
</label>
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
<option value="" selected>Select Course</option>
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
</select>
@ -135,7 +148,7 @@
Status
</label>
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Status" ng-change="getValueChange()">
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Status" ng-change="getValueChange()">
<option value="" selected>Select Status</option>
<option value="1">Active</option>
<option value="0">Deactive</option>
@ -245,7 +258,7 @@
</tbody>
</table>
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
<dir-pagination-controls max-size="10" tabindex="7" direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
@ -255,8 +268,8 @@
</div>
</tab>
<script>
$('#addbranch').click(function () {
$('#branchcode').focus();
$('#addstudent').click(function () {
$('#primaryPhone').focus();
});
</script>
<style>
@ -271,7 +284,7 @@
</style>
<tab active="tabactive2" ng-click="tabActive('tabactive1');addStudentView()" heading="Add Student" id="addstudent">
<tab tabindex="6" active="tabactive2" ng-click="tabActive('tabactive1');addStudentView()" heading="Add Student" id="addstudent">
<!--<button ng-click="tabActive('0')" value="Tab1">Tab1</button>-->
<div ng-if="existingStudentView == false">
<!--<button ng-click="myActivateDiv()">Click Me</button>-->
@ -299,7 +312,7 @@
<!--<input type="file" file-model="idProof"
accept="image/*" onchange="angular.element(this).scope().imageUpload(event)"/>-->
<input type="file" ng-init="resetImage()" accept="image/*" file-upload onchange="angular.element(this).scope().imageUpload(event)"
<input type="file" tabindex="1003" ng-init="resetImage()" accept="image/*" file-upload onchange="angular.element(this).scope().imageUpload(event)"
/>
<style>
@ -341,9 +354,9 @@
Mobile Number <span
class="symbol required"></span>
</label>
<input type="text" name="primaryPhone" tabindex="1" placeholder="Enter Mobile Number" class="form-control" ng-model="myModel.primaryPhone"
<input type="text" name="primaryPhone" tabindex="1000" placeholder="Enter Mobile Number" class="form-control" ng-model="myModel.primaryPhone"
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" ng-blur='checkMobileExist()'
required/>
required id="primaryPhone"/>
<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>
@ -351,8 +364,8 @@
<label>
First Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" style="text-transform: capitalize;" name="firstname" ng-model="myModel.firstname"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter First Name" tabindex="1001" class="form-control" name="firstname" ng-model="myModel.firstname"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.required">First Name is required</span>
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
</div>
@ -360,8 +373,8 @@
<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="myModel.lastname" style="text-transform: capitalize;"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter Last Name" tabindex="1002" class="form-control" name="lastname" ng-model="myModel.lastname"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.required">Last Name is required</span>
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
</div>
@ -371,8 +384,8 @@
<label>
Father Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="myModel.fathername" style="text-transform: capitalize;"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter Father Name" tabindex="1004" class="form-control" name="fathername" ng-model="myModel.fathername"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.required">Father Name is required</span>
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
</div>
@ -381,8 +394,8 @@
Mother Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="myModel.mothername" style="text-transform: capitalize;"
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter Mother Name" tabindex="1005" class="form-control" name="mothername" ng-model="myModel.mothername"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.required">Mother Name is required</span>
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Mother Name </span>
</div>
@ -390,7 +403,7 @@
<label>
Email ID <span class="symbol required"></span>
</label>
<input type="email" tabindex="6" 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"
<input type="email" tabindex="1006" 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="myModel.emailId" 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>
@ -401,7 +414,7 @@
<label class="control-label">
Alternate Mobile Number <span class="symbol required"></span>
</label>
<input type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="myModel.secondaryPhone"
<input type="text" name="secondaryPhone" tabindex="1007" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="myModel.secondaryPhone"
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" required/>
<span class="error text-small block" ng-if="Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid" ng-hide="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Alternate Mobile Number is required.</span>
<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>
@ -413,10 +426,10 @@
Date Of Birth <span
class="symbol required"></span>
</label>
<input type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModel.dateofbirth"
<input type="text" tabindex="1008" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModel.dateofbirth"
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
placeholder="Select Date of Birth" close-text="Close" required="required"
ng-change="getChangeDate()" show-button-bar="false" max-date="currentDate"
ng-change="getChangeDate()" show-button-bar="true"
/>
@ -429,7 +442,7 @@
Gender <span class="symbol required"></span>
</label>
<div class="clip-radio radio-primary">
<input type="radio" tabindex="9" id="female" name="gender" value="female" ng-model="myModel.gender" required>
<input type="radio" tabindex="1009" id="female" name="gender" value="female" ng-model="myModel.gender" required>
<label for="female">
Female
</label>
@ -448,21 +461,21 @@
<label>
Permanent Address
</label>
<textarea placeholder="Enter Permanent Address" tabindex="10" class="form-control textdsc" name="address1" ng-model="myModel.address1"></textarea>
<textarea placeholder="Enter Permanent Address" tabindex="1010" class="form-control textdsc" name="address1" ng-model="myModel.address1"></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="11" class="form-control textdsc" name="address2" ng-model="myModel.address2"></textarea>
<textarea placeholder="Enter Current Address" tabindex="1011" class="form-control textdsc" name="address2" ng-model="myModel.address2"></textarea>
<span class="error text-small block" ng-if="Form.address2.$dirty && Form.address2.$invalid">Current Address is required</span>
</div>
<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" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
<input type="text" name="aadharNumber" tabindex="1012" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
ng-model="myModel.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>
@ -480,7 +493,7 @@
<label>
Other ID
</label>
<input type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="myModel.otherId" ng-minlength="1"
<input type="text" name="otherId" tabindex="1013" placeholder="Other Id" class="form-control" ng-model="myModel.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>
@ -489,7 +502,7 @@
<label>
Other ID Details
</label>
<input type="text" name="otherIdDetails" tabindex="14" placeholder="Other Id Details" class="form-control" ng-model="myModel.otherIdDetails"
<input type="text" name="otherIdDetails" tabindex="1014" placeholder="Other Id Details" class="form-control" ng-model="myModel.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>
@ -501,7 +514,7 @@
Caste
</label>
<input type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="myModel.caste" ng-pattern="/^[a-zA-Z.\s]*$/"
<input type="text" placeholder="Enter Caste" tabindex="1015" class="form-control" name="caste" ng-model="myModel.caste" ng-pattern="/^[a-zA-Z.\s]*$/"
/>
<span class="error text-small block" ng-if="Form.caste.$dirty && Form.caste.$error.pattern">Invalid Caste Name </span>
</div>
@ -510,7 +523,7 @@
Category
</label>
<input type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="myModel.category"
<input type="text" placeholder="Enter Category" tabindex="1016" class="form-control" name="category" ng-model="myModel.category"
/>
<span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
</div>
@ -522,7 +535,7 @@
Religion
</label>
<input type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="myModel.religion"
<input type="text" placeholder="Enter Religion" tabindex="1017" class="form-control" name="religion" ng-model="myModel.religion"
ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.religion.$dirty && Form.religion.$error.pattern">Invalid Religion Name </span>
</div>
@ -531,7 +544,7 @@
Nationality
</label>
<input type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="myModel.nationality"
<input type="text" placeholder="Enter Nationality" tabindex="1018" class="form-control" name="nationality" ng-model="myModel.nationality"
ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.nationality.$dirty && Form.nationality.$error.pattern">Invalid Nationality Name </span>
</div>
@ -540,7 +553,7 @@
Pre Qualification
</label>
<input type="text" placeholder="Enter Qualification" tabindex="19" class="form-control" name="qualificaion" ng-model="myModel.prequalification"
<input type="text" placeholder="Enter Qualification" tabindex="1019" class="form-control" name="qualificaion" ng-model="myModel.prequalification"
/>
<span class="error text-small block" ng-if="Form.qualificaion.$dirty && Form.qualificaion.$error.pattern">Enter a Valid Qualification</span>
</div>
@ -552,7 +565,7 @@
Occupation
</label>
<input type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="myModel.occupation"
<input type="text" placeholder="Enter Occupation" tabindex="1020" class="form-control" name="occupation" ng-model="myModel.occupation"
ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.occupation.$dirty && Form.occupation.$error.pattern">Invalid Occupation </span>
</div>
@ -561,7 +574,7 @@
Designation
</label>
<input type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="myModel.designation"
<input type="text" placeholder="Enter Designation" tabindex="1021" class="form-control" name="designation" ng-model="myModel.designation"
ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.designation.$dirty && Form.designation.$error.pattern">Invalid Designation </span>
</div>
@ -570,7 +583,7 @@
Company Name
</label>
<input type="text" placeholder="Enter Company Name" tabindex="22" class="form-control" name="companyname" ng-model="myModel.companyname"
<input type="text" placeholder="Enter Company Name" tabindex="1022" class="form-control" name="companyname" ng-model="myModel.companyname"
/>
<span class="error text-small block" ng-if="Form.companyname.$dirty && Form.companyname.$error.pattern">Invalid Company </span>
</div>
@ -581,7 +594,7 @@
Referred By
</label>
<input type="text" placeholder="Enter Refer's Name" tabindex="23" class="form-control" name="referredby" ng-model="myModel.referredby"
<input type="text" placeholder="Enter Refer's Name" tabindex="1023" class="form-control" name="referredby" ng-model="myModel.referredby"
ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.referredby.$dirty && Form.referredby.$error.pattern">Invalid Referred By </span>
</div>
@ -589,7 +602,7 @@
<label>
Refer's Mobile Number
</label>
<input type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
<input type="text" name="referredmobilenumber" tabindex="1024" placeholder="Enter Refer's Mobile Number" class="form-control"
ng-model="myModel.referredmobilenumber" ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"
/>
<span class="error text-small block" ng-if="Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid" ng-hide="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Refer's Mobile Number is required.</span>
@ -599,7 +612,7 @@
<label>
Comments
</label>
<textarea maxlength="100" placeholder="Enter Comments" tabindex="25" class="form-control textdsc" name="Comments" ng-model="myModel.Comments"></textarea>
<textarea maxlength="100" placeholder="Enter Comments" tabindex="1025" class="form-control textdsc" name="Comments" ng-model="myModel.Comments"></textarea>
<span class="text-small block">Max 100 Characters.</span>
<!--<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>-->
</div>
@ -610,7 +623,7 @@
Active/De-Active
</label>
<div ng-switch="myModel.switchsetting">
<div ng-switch="myModel.switchsetting" tabindex="1026">
<div ng-switch-when="true">
<switch ng-model="myModel.switchsetting" ng-init="myModel.switchsetting = true" class="green"></switch>
</div>
@ -626,7 +639,7 @@
<label>
Reason for Deactivating <span class="symbol required"></span>
</label>
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="26" class="form-control textdsc" name="DeactiveComments"
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="1027" class="form-control textdsc" name="DeactiveComments"
ng-model="myModel.DeactiveComments" required></textarea>
<span class="text-small block">Max 100 Characters.</span>
<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>
@ -654,7 +667,7 @@
University <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="27" class="cs-select cs-skin-elastic" name="university" ng-model="myModelCourseAdd.university"
<select class="form-control" tabindex="1028" class="cs-select cs-skin-elastic" name="university" ng-model="myModelCourseAdd.university"
ng-change="onSlecetUnivAdd()" required>
<option value="" disabled selected>Select University</option>
<option ng-repeat="item in universityData" value="{{item.UniversityID}}">{{item.UniversityName}}</option>
@ -671,7 +684,7 @@
<span style="padding: auto 0; color: #007AFF; font-weight: bold;">fetching...</span>
</div>
<div ng-if="courseLoading == false">
<select class="form-control" tabindex="28" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic"
<select class="form-control" tabindex="1029" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic"
required>
<option value="" disabled selected>Select Course</option>
<option ng-repeat="item in courseDataAdd" value="{{item.CourseID}}">{{item.CourseName}}<span ng-show="item.CourseCode != ''">(<b>{{item.CourseCode}}</b>)</span></option>
@ -710,7 +723,7 @@
</label>
<input type="text" placeholder="Enter Specilization 1"
tabindex="30" class="form-control" name="specilization1"
tabindex="1030" class="form-control" name="specilization1"
ng-model="check.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
<!--<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
@ -726,7 +739,7 @@
</label>
<input type="text" placeholder="Enter Specilization 2"
tabindex="31" class="form-control" name="specilization2"
tabindex="1031" class="form-control" name="specilization2"
ng-model="check.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
<!--<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
@ -746,7 +759,7 @@
</label>
<input type="text" placeholder="Enter Specilization 1"
tabindex="32" class="form-control" name="specilization1"
tabindex="1032" class="form-control" name="specilization1"
ng-model="check.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
<!--<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
@ -762,7 +775,7 @@
</label>
<input type="text" placeholder="Enter Specilization 2"
tabindex="33" class="form-control" name="specilization2"
tabindex="1033" class="form-control" name="specilization2"
ng-model="check.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
<!--<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
@ -776,7 +789,7 @@
<label>
Enrollment ID
</label>
<input type="text" name="enrollmentid" tabindex="34" placeholder="Enter Entollment ID" class="form-control" ng-model="myModelCourseAdd.enrollmentid"
<input type="text" name="enrollmentid" tabindex="1034" placeholder="Enter Entollment ID" class="form-control" ng-model="myModelCourseAdd.enrollmentid"
/>
<span class="error text-small block" ng-if="Form.enrollmentid.$dirty && Form.enrollmentid.$error.required">Enrollment ID is required</span>
</div>
@ -794,7 +807,7 @@
/*top: -225px !important;*/
}
</style>
<input type="text" tabindex="34" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourseAdd.dateofjoining"
<input type="text" tabindex="1035" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourseAdd.dateofjoining"
is-open="startOpen" ng-init="startOpen = false" name="dateofjoining" datepicker-options="dateOptions"
placeholder="Select Date of Joining" close-text="Close" required="required" datepicker-position="top"
max-date="todayDate"
@ -806,11 +819,11 @@
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button type="submit" ng-disabled="disableButton" tabindex="36" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success"
<button type="submit" ng-disabled="disableButton" tabindex="1036" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success"
data-style="zoom-in">
Add
</button>
<button type="reset" tabindex="37" class="btn btn-warning btn-wide" tabindex="32" ng-click="studentFORM.reset(Form)">
<button type="reset" tabindex="1037" class="btn btn-warning btn-wide" tabindex="32" ng-click="studentFORM.reset(Form)">
Reset
</button>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB