student entrollement in different branch with same num : kdk
This commit is contained in:
parent
6f9c95b2ce
commit
b45f71611a
@ -14,6 +14,7 @@ class Student_model extends CI_Model
|
|||||||
* created by kdk
|
* created by kdk
|
||||||
* */
|
* */
|
||||||
|
|
||||||
|
// get List of Branchs
|
||||||
public function get_branch_list() {
|
public function get_branch_list() {
|
||||||
$this->db->select('t1.BranchCode,t1.BranchName');
|
$this->db->select('t1.BranchCode,t1.BranchName');
|
||||||
$this->db->from('' . BRANCH . ' as t1');
|
$this->db->from('' . BRANCH . ' as t1');
|
||||||
@ -57,9 +58,13 @@ class Student_model extends CI_Model
|
|||||||
// list for super admin based on branch
|
// list for super admin based on branch
|
||||||
if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
|
if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from(STUDENTS);
|
$this->db->from('' . STUDENTS . ' as t1');
|
||||||
$this->db->order_by('CreatedOn', 'DESC');
|
// $this->db->order_by('CreatedOn', 'DESC');
|
||||||
$this->db->where('BranchCode', $loginUserBranchId);
|
// $this->db->where('BranchCode', $loginUserBranchId);
|
||||||
|
$this->db->join('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT');
|
||||||
|
$this->db->where('t2.BranchID', $loginUserBranchId);
|
||||||
|
$this->db->group_by('t2.StudentID');
|
||||||
|
$this->db->order_by('t2.CreatedOn', 'DESC');
|
||||||
$stuDetails = $this->db->get();
|
$stuDetails = $this->db->get();
|
||||||
$checkArr = $stuDetails->result();
|
$checkArr = $stuDetails->result();
|
||||||
if (count($checkArr) > 0) {
|
if (count($checkArr) > 0) {
|
||||||
@ -77,7 +82,6 @@ class Student_model extends CI_Model
|
|||||||
// $this->db->from('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT');
|
// $this->db->from('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT');
|
||||||
// $this->db->where('t2.UniversityID', $getSearchData["University"]);
|
// $this->db->where('t2.UniversityID', $getSearchData["University"]);
|
||||||
// $this->db->where('t2.CourseID', $getSearchData["Course"]);
|
// $this->db->where('t2.CourseID', $getSearchData["Course"]);
|
||||||
|
|
||||||
$University = $getSearchData['University'];
|
$University = $getSearchData['University'];
|
||||||
$Course = $getSearchData['Course'];
|
$Course = $getSearchData['Course'];
|
||||||
// $Batch = $getSearchData['Batch'];
|
// $Batch = $getSearchData['Batch'];
|
||||||
@ -90,24 +94,24 @@ class Student_model extends CI_Model
|
|||||||
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
||||||
SC.CourseID = C.CourseID
|
SC.CourseID = C.CourseID
|
||||||
WHERE
|
WHERE
|
||||||
SC.UniversityID LIKE '%$University%'
|
(SC.UniversityID = '$University'
|
||||||
AND SC.CourseID LIKE '%$Course%'
|
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||||
AND S.BranchCode = '$loginUserBranchId'
|
AND S.BranchCode = '$loginUserBranchId'
|
||||||
GROUP BY SC.StudentID
|
GROUP BY SC.StudentID
|
||||||
ORDER BY S.CreatedOn";
|
ORDER BY S.CreatedOn";
|
||||||
} else {
|
} else {
|
||||||
$subQuery = "SELECT S.*
|
$subQuery = "SELECT S.*
|
||||||
FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID
|
FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID
|
||||||
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
||||||
SC.CourseID = C.CourseID
|
SC.CourseID = C.CourseID
|
||||||
WHERE
|
WHERE
|
||||||
SC.UniversityID LIKE '%$University%'
|
(SC.UniversityID = '$University'
|
||||||
AND SC.CourseID LIKE '%$Course%'
|
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||||
AND S.IsActive = '$StuStatus'
|
AND S.IsActive = '$StuStatus'
|
||||||
AND S.BranchCode = '$loginUserBranchId'
|
AND S.BranchCode = '$loginUserBranchId'
|
||||||
GROUP BY SC.StudentID
|
GROUP BY SC.StudentID
|
||||||
ORDER BY S.CreatedOn";
|
ORDER BY S.CreatedOn";
|
||||||
}
|
}
|
||||||
|
|
||||||
$stuDetails = $this->db->query($subQuery);
|
$stuDetails = $this->db->query($subQuery);
|
||||||
|
|
||||||
@ -155,18 +159,19 @@ class Student_model extends CI_Model
|
|||||||
// $results['employeeList'] = false;
|
// $results['employeeList'] = false;
|
||||||
// $results['message'] = 'No record found';
|
// $results['message'] = 'No record found';
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else if ($loginUserType == ADMIN) {
|
} else if ($loginUserType == ADMIN) {
|
||||||
// list for admin
|
// list for admin
|
||||||
if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
|
if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
|
||||||
// print_r($getSearchData);exit();
|
// print_r($getSearchData);exit();
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from(STUDENTS);
|
$this->db->from('' . STUDENTS . ' as t1');
|
||||||
$this->db->where('BranchCode', $loginUserBranchId);
|
// $this->db->where('BranchCode', $loginUserBranchId);
|
||||||
// $this->db->group_by('user_id');
|
// $this->db->group_by('user_id');
|
||||||
$this->db->order_by('CreatedOn', 'DESC');
|
$this->db->join('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT');
|
||||||
|
$this->db->where('t2.BranchID', $loginUserBranchId);
|
||||||
|
$this->db->group_by('t2.StudentID');
|
||||||
|
$this->db->order_by('t2.CreatedOn', 'DESC');
|
||||||
|
|
||||||
$stuDetails = $this->db->get();
|
$stuDetails = $this->db->get();
|
||||||
$checkArr = $stuDetails->result();
|
$checkArr = $stuDetails->result();
|
||||||
@ -198,9 +203,9 @@ class Student_model extends CI_Model
|
|||||||
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
||||||
SC.CourseID = C.CourseID
|
SC.CourseID = C.CourseID
|
||||||
WHERE
|
WHERE
|
||||||
SC.UniversityID LIKE '%$University%'
|
(SC.UniversityID = '$University'
|
||||||
AND SC.CourseID LIKE '%$Course%'
|
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||||
AND S.BranchCode = '$loginUserBranchId'
|
AND SC.BranchID = '$loginUserBranchId'
|
||||||
GROUP BY SC.StudentID
|
GROUP BY SC.StudentID
|
||||||
ORDER BY S.CreatedOn";
|
ORDER BY S.CreatedOn";
|
||||||
} else {
|
} else {
|
||||||
@ -209,17 +214,14 @@ class Student_model extends CI_Model
|
|||||||
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
||||||
SC.CourseID = C.CourseID
|
SC.CourseID = C.CourseID
|
||||||
WHERE
|
WHERE
|
||||||
SC.UniversityID LIKE '%$University%'
|
(SC.UniversityID = '$University'
|
||||||
AND SC.CourseID LIKE '%$Course%'
|
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||||
AND S.IsActive = '$StuStatus'
|
AND S.IsActive = '$StuStatus'
|
||||||
AND S.BranchCode = '$loginUserBranchId'
|
AND SC.BranchID = '$loginUserBranchId'
|
||||||
GROUP BY SC.StudentID
|
GROUP BY SC.StudentID
|
||||||
ORDER BY S.CreatedOn";
|
ORDER BY S.CreatedOn";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$stuDetails = $this->db->query($subQuery);
|
$stuDetails = $this->db->query($subQuery);
|
||||||
|
|
||||||
// $stuDetails = $this->db->get();
|
// $stuDetails = $this->db->get();
|
||||||
$checkArr = $stuDetails->result();
|
$checkArr = $stuDetails->result();
|
||||||
if (count($checkArr) > 0) {
|
if (count($checkArr) > 0) {
|
||||||
@ -274,8 +276,8 @@ class Student_model extends CI_Model
|
|||||||
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
||||||
SC.CourseID = C.CourseID
|
SC.CourseID = C.CourseID
|
||||||
WHERE
|
WHERE
|
||||||
SC.UniversityID LIKE '%$University%'
|
(SC.UniversityID = '$University'
|
||||||
AND SC.CourseID LIKE '%$Course%'
|
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||||
AND SC.BranchID = '$loginUserBranchId'
|
AND SC.BranchID = '$loginUserBranchId'
|
||||||
GROUP BY SC.StudentID
|
GROUP BY SC.StudentID
|
||||||
ORDER BY S.CreatedOn";
|
ORDER BY S.CreatedOn";
|
||||||
@ -287,8 +289,8 @@ class Student_model extends CI_Model
|
|||||||
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
|
||||||
SC.CourseID = C.CourseID
|
SC.CourseID = C.CourseID
|
||||||
WHERE
|
WHERE
|
||||||
SC.UniversityID LIKE '%$University%'
|
(SC.UniversityID = '$University'
|
||||||
AND SC.CourseID LIKE '%$Course%'
|
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||||
AND S.IsActive = '$StuStatus'
|
AND S.IsActive = '$StuStatus'
|
||||||
AND SC.BranchID = '$loginUserBranchId'
|
AND SC.BranchID = '$loginUserBranchId'
|
||||||
GROUP BY SC.StudentID
|
GROUP BY SC.StudentID
|
||||||
@ -315,6 +317,7 @@ class Student_model extends CI_Model
|
|||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get a student cource list
|
||||||
public function get_student_course_list($studentId, $req) {
|
public function get_student_course_list($studentId, $req) {
|
||||||
// echo $req['localBranchID'];exit();
|
// echo $req['localBranchID'];exit();
|
||||||
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName');
|
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName');
|
||||||
@ -370,8 +373,7 @@ class Student_model extends CI_Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//get course for university
|
//get course, batch for university
|
||||||
|
|
||||||
public function get_courseBatch_list($univId) {
|
public function get_courseBatch_list($univId) {
|
||||||
$this->db->select('C.CourseID, C.CourseName,C.Specilization1,C.Specilization2');
|
$this->db->select('C.CourseID, C.CourseName,C.Specilization1,C.Specilization2');
|
||||||
$this->db->from(COURSE.' as C');
|
$this->db->from(COURSE.' as C');
|
||||||
@ -397,18 +399,15 @@ class Student_model extends CI_Model
|
|||||||
$result['courseStatus'] = false;
|
$result['courseStatus'] = false;
|
||||||
$result['message'] = "No records found!";
|
$result['message'] = "No records found!";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_exist_stu_details($data, $reqArr) {
|
public function get_exist_stu_details($data, $reqArr) {
|
||||||
// echo $data;exit();
|
// echo $data;exit();
|
||||||
|
|
||||||
$this->db->select('t0.*');
|
$this->db->select('t0.*');
|
||||||
$this->db->from('' . STUDENTS . ' as t0');
|
$this->db->from('' . STUDENTS . ' as t0');
|
||||||
$this->db->where('t0.StudentID', $data);
|
$this->db->where('t0.StudentID', $data);
|
||||||
$personalDetails = $this->db->get()->result();
|
$personalDetails = $this->db->get()->result();
|
||||||
|
|
||||||
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName, t5.BranchName');
|
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName, t5.BranchName');
|
||||||
// $this->db->from('' . STUDENTS . ' as t0');
|
// $this->db->from('' . STUDENTS . ' as t0');
|
||||||
$this->db->from('' . STUDENTCOURSE . ' as t1');
|
$this->db->from('' . STUDENTCOURSE . ' as t1');
|
||||||
@ -419,11 +418,9 @@ class Student_model extends CI_Model
|
|||||||
$this->db->where('t1.StudentID', $data);
|
$this->db->where('t1.StudentID', $data);
|
||||||
// $this->db->group_by('t1.StudentID');
|
// $this->db->group_by('t1.StudentID');
|
||||||
$courseDetails = $this->db->get()->result();
|
$courseDetails = $this->db->get()->result();
|
||||||
|
|
||||||
$result['personalDetails'] = $personalDetails;
|
$result['personalDetails'] = $personalDetails;
|
||||||
$result['courseDetails'] = $courseDetails;
|
$result['courseDetails'] = $courseDetails;
|
||||||
$result['existingStudentDetailsStatus'] = true;
|
$result['existingStudentDetailsStatus'] = true;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -441,7 +438,6 @@ class Student_model extends CI_Model
|
|||||||
// } else {
|
// } else {
|
||||||
// $result['existEmpId'] = false;
|
// $result['existEmpId'] = false;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else if ($checkData == 'mobileNumber') {
|
} else if ($checkData == 'mobileNumber') {
|
||||||
// check for mobile number
|
// check for mobile number
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
@ -491,7 +487,6 @@ class Student_model extends CI_Model
|
|||||||
|
|
||||||
// add student course
|
// add student course
|
||||||
public function add_student_course( $studID, $Arr) {
|
public function add_student_course( $studID, $Arr) {
|
||||||
|
|
||||||
if($this->getBranchActiveStatusforStuAdd($Arr['BranchID'])['branch_active_status'] === '1'){
|
if($this->getBranchActiveStatusforStuAdd($Arr['BranchID'])['branch_active_status'] === '1'){
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from(STUDENTCOURSE);
|
$this->db->from(STUDENTCOURSE);
|
||||||
@ -515,8 +510,6 @@ class Student_model extends CI_Model
|
|||||||
$result['addStuCourseStatus'] = false;
|
$result['addStuCourseStatus'] = false;
|
||||||
$result['message'] = "New Cource Cannot able to create for In-Active Branch";
|
$result['message'] = "New Cource Cannot able to create for In-Active Branch";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -654,7 +647,6 @@ class Student_model extends CI_Model
|
|||||||
$result['existMobile'] = false;
|
$result['existMobile'] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($checkFor == 'emailId') {
|
} else if ($checkFor == 'emailId') {
|
||||||
// check update for email
|
// check update for email
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
@ -675,6 +667,7 @@ class Student_model extends CI_Model
|
|||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update student personal details
|
// update student personal details
|
||||||
public function update_student($empArr, $updateFor, $imagename, $imageSource, $size)
|
public function update_student($empArr, $updateFor, $imagename, $imageSource, $size)
|
||||||
{
|
{
|
||||||
@ -719,10 +712,8 @@ class Student_model extends CI_Model
|
|||||||
$result['message'] = "Something went wrong.please try again";
|
$result['message'] = "Something went wrong.please try again";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from(STUDENTS);
|
$this->db->from(STUDENTS);
|
||||||
$this->db->where('MobileNumber', $empArr['MobileNumber']);
|
$this->db->where('MobileNumber', $empArr['MobileNumber']);
|
||||||
|
|||||||
@ -526,10 +526,10 @@ $scope.studentListLength = 0;
|
|||||||
// $scope.existingStudentId = response.data.details.studentId;
|
// $scope.existingStudentId = response.data.details.studentId;
|
||||||
SweetAlert.swal({
|
SweetAlert.swal({
|
||||||
title: "Warning!",
|
title: "Warning!",
|
||||||
text: "Student, Exsit with this same Number." + "\n Want to need see the details!",
|
text: "Student Exsit with this same Number." + "\n Do you want to Enroll New Cource!",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: "#DD6B55",
|
confirmButtonColor: "#007aff",
|
||||||
confirmButtonText: "Yes!"
|
confirmButtonText: "Yes!"
|
||||||
}, function (res) {
|
}, function (res) {
|
||||||
if(res === true){
|
if(res === true){
|
||||||
@ -545,25 +545,6 @@ $scope.studentListLength = 0;
|
|||||||
swal("Warning!", response.data.message, "warning");
|
swal("Warning!", response.data.message, "warning");
|
||||||
$scope.myModel.primaryPhone = '';
|
$scope.myModel.primaryPhone = '';
|
||||||
}
|
}
|
||||||
// swal({
|
|
||||||
// title: 'Are you sure?',
|
|
||||||
// text: "You won't be able to revert this!",
|
|
||||||
// type: 'warning',
|
|
||||||
// showCancelButton: true,
|
|
||||||
// confirmButtonColor: '#3085d6',
|
|
||||||
// cancelButtonColor: '#d33',
|
|
||||||
// confirmButtonText: 'Yes, delete it!'
|
|
||||||
// }).then((result) => {
|
|
||||||
// if (result.value) {
|
|
||||||
// swal(
|
|
||||||
// 'Deleted!',
|
|
||||||
// 'Your file has been deleted.',
|
|
||||||
// 'success'
|
|
||||||
// )
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// swal("Warning!", response.data.message + response.data.details.studentId, "warning");
|
|
||||||
// $scope.myModel.primaryPhone = '';
|
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -646,6 +627,7 @@ $scope.studentListLength = 0;
|
|||||||
} else {
|
} else {
|
||||||
swal(" ", response.data.message, "error");
|
swal(" ", response.data.message, "error");
|
||||||
// $scope.getStudentCourseList($scope.currentStudentId);
|
// $scope.getStudentCourseList($scope.currentStudentId);
|
||||||
|
$scope.myModelCourse.dateofjoining = '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1031,7 +1013,7 @@ $scope.studentListLength = 0;
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
// Student datails for super admin : Start
|
// Student datails for super admin : Start
|
||||||
app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$http", "API_POINTS", "$state", '$rootScope', '$cookies', 'md5', 'ipCookie', '$timeout', '$window', "flowFactory", function ($scope, toaster, $filter, ngTableParams, $http, apiPoint, $state, $rootScope, $cookies, md5, ipCookie, $timeout, $window, flowFactory) {
|
app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$http", "API_POINTS", "$state", '$rootScope', '$cookies', 'md5', 'ipCookie', '$timeout', '$window', "flowFactory", "SweetAlert", function ($scope, toaster, $filter, ngTableParams, $http, apiPoint, $state, $rootScope, $cookies, md5, ipCookie, $timeout, $window, flowFactory, SweetAlert) {
|
||||||
/**
|
/**
|
||||||
* student details capture
|
* student details capture
|
||||||
* by : kdk
|
* by : kdk
|
||||||
@ -1560,6 +1542,8 @@ $scope.myUnivSearch = "";
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.existingStudentView = false;
|
||||||
|
$scope.existingStudentId = '';
|
||||||
// check mobile number existing
|
// check mobile number existing
|
||||||
$scope.checkMobileExist = function () {
|
$scope.checkMobileExist = function () {
|
||||||
var checkReq = {
|
var checkReq = {
|
||||||
@ -1574,14 +1558,141 @@ $scope.myUnivSearch = "";
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
$http(checkReq).then(function (response) {
|
$http(checkReq).then(function (response) {
|
||||||
|
// if (response.data.existMobile == true) {
|
||||||
|
// swal("Warning!", response.data.message, "warning");
|
||||||
|
// $scope.myModel.primaryPhone = '';
|
||||||
|
|
||||||
|
// } else {
|
||||||
|
// }
|
||||||
if (response.data.existMobile == true) {
|
if (response.data.existMobile == true) {
|
||||||
|
if(response.data.details.type === 'R001'){
|
||||||
|
// swal("Warning!", response.data.message, "warning");
|
||||||
|
$scope.myModel.primaryPhone = '';
|
||||||
|
// student registration find student previously exist
|
||||||
|
// $scope.existingStudentView = true;
|
||||||
|
// $scope.existingStudentId = response.data.details.studentId;
|
||||||
|
SweetAlert.swal({
|
||||||
|
title: "Warning!",
|
||||||
|
text: "Student Exsit with this same Number." + "\n Do you want to Enroll New Cource!",
|
||||||
|
type: "warning",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: "#007aff",
|
||||||
|
confirmButtonText: "Yes!"
|
||||||
|
}, function (res) {
|
||||||
|
if(res === true){
|
||||||
|
$scope.existingStudentView = true;
|
||||||
|
$scope.existingStudentId = response.data.details.studentId;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}else if (response.data.details.type === 'R002' || response.data.details.type === 'R003'){
|
||||||
swal("Warning!", response.data.message, "warning");
|
swal("Warning!", response.data.message, "warning");
|
||||||
$scope.myModel.primaryPhone = '';
|
$scope.myModel.primaryPhone = '';
|
||||||
|
} else {
|
||||||
|
swal("Warning!", response.data.message, "warning");
|
||||||
|
$scope.myModel.primaryPhone = '';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.stuExistingDetailsShowLoading = false;
|
||||||
|
|
||||||
|
$scope.getExistStudentDetails = function() {
|
||||||
|
// alert($scope.existingStudentId);
|
||||||
|
$scope.stuExistingDetailsShowLoading = true;
|
||||||
|
var checkExisReq = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'getExistingStudentDetails/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
data: $scope.existingStudentId,
|
||||||
|
reqDetails: localDetails
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(checkExisReq).then(function (response) {
|
||||||
|
if (response.data.existingStudentDetailsStatus == true) {
|
||||||
|
$scope.existingStuPersonalDetails = response.data.personalDetails[0];
|
||||||
|
$scope.existingStuCourseDetails = response.data.courseDetails;
|
||||||
|
$scope.stuExistingDetailsShowLoading = false;
|
||||||
|
} else {
|
||||||
|
$scope.stuExistingDetailsShowLoading = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.cancelExisStudentView = function() {
|
||||||
|
$scope.existingStudentView = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// add student course for existing student
|
||||||
|
$scope.addCourseExistingStudent= {
|
||||||
|
|
||||||
|
submit: function (form, myModelCourse, p) {
|
||||||
|
var firstError = null;
|
||||||
|
if (form.$invalid) {
|
||||||
|
var field = null, firstError = null;
|
||||||
|
for (field in form) {
|
||||||
|
if (field[0] != '$') {
|
||||||
|
if (firstError === null && !form[field].$valid) {
|
||||||
|
firstError = form[field].$name;
|
||||||
|
}
|
||||||
|
if (form[field].$pristine) {
|
||||||
|
form[field].$dirty = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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(JSON.stringify(p.StudentID));
|
||||||
|
// alert(JSON.stringify(myModelCourse));
|
||||||
|
var formate = "dd-MM-yyyy";
|
||||||
|
$scope.myModelCourse.dateofjoining = $filter('date')(new Date($scope.myModelCourse.dateofjoining), formate);
|
||||||
|
var req = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'insertStudentCourse/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
addStudent: p.StudentID,
|
||||||
|
coursedata: $scope.myModelCourse,
|
||||||
|
loginBranch: localDetails.localBranchID,
|
||||||
|
createdBy: localDetails.localUserID,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(req).then(function (response) {
|
||||||
|
if (response.data.addStuCourseStatus == true) {
|
||||||
|
swal(" ","Student course added successfully. ", "success");
|
||||||
|
$scope.disableButton = false;
|
||||||
|
$scope.viewStudentDetailsPage = false;
|
||||||
|
$scope.myActivateDiv();
|
||||||
|
// $state.go($state.current, {}, { reload: true });
|
||||||
|
// $scope.getStudentCourseList($scope.currentStudentId);
|
||||||
|
} else {
|
||||||
|
swal(" ", response.data.message, "error");
|
||||||
|
// $scope.getStudentCourseList($scope.currentStudentId);
|
||||||
|
$scope.myModelCourse.dateofjoining = '';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cancel: function() {
|
||||||
|
$scope.myModelCourse = {
|
||||||
|
'university': '',
|
||||||
|
'course': '',
|
||||||
|
'batch': '',
|
||||||
|
'dateofjoining': '',
|
||||||
|
'enrollmentid': ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// check emailId existing
|
// check emailId existing
|
||||||
$scope.checkEmailExist = function () {
|
$scope.checkEmailExist = function () {
|
||||||
var checkReq = {
|
var checkReq = {
|
||||||
|
|||||||
@ -82,8 +82,7 @@
|
|||||||
University
|
University
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="myUnivSearch"
|
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="myUnivSearch" ng-change="getUniveId(myUnivSearch)">
|
||||||
ng-change="getUniveId(myUnivSearch)">
|
|
||||||
<option value="" selected>Select University</option>
|
<option value="" selected>Select University</option>
|
||||||
<option ng-repeat="item in universitySearchData" value="{{item}}">{{item.UniversityName}}</option>
|
<option ng-repeat="item in universitySearchData" value="{{item}}">{{item.UniversityName}}</option>
|
||||||
</select>
|
</select>
|
||||||
@ -204,7 +203,9 @@
|
|||||||
|
|
||||||
<td><span ng-if="p.IsActive == true" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">ACTIVE</span>
|
<td><span ng-if="p.IsActive == true" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">ACTIVE</span>
|
||||||
<span tooltip="{{p.DeactiveComments}}" ng-if="p.IsActive == false" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">DEACTIVE</span></td>
|
<span tooltip="{{p.DeactiveComments}}" ng-if="p.IsActive == false" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">DEACTIVE</span></td>
|
||||||
<td><div id="containersPara">{{p.Comments}}</div></td>
|
<td>
|
||||||
|
<div id="containersPara">{{p.Comments}}</div>
|
||||||
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
<!--<input type=button class="btn btn-info btn-xs" ladda="ldloading1.zoom_in" id="editRowBtn{{p.StudentID}}" value="Personal Details"
|
<!--<input type=button class="btn btn-info btn-xs" ladda="ldloading1.zoom_in" id="editRowBtn{{p.StudentID}}" value="Personal Details"
|
||||||
ng-click="setEditId(p.StudentID);">-->
|
ng-click="setEditId(p.StudentID);">-->
|
||||||
@ -565,8 +566,8 @@
|
|||||||
Refer's Mobile Number
|
Refer's Mobile Number
|
||||||
</label>
|
</label>
|
||||||
<input type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
<input type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
||||||
ng-model="myModel.referredmobilenumber" ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"
|
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>
|
<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>
|
||||||
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
||||||
</div>
|
</div>
|
||||||
@ -678,35 +679,29 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div ng-repeat="check in courseDataAdd" ng-if="check.CourseID==myModelCourseAdd.course">
|
<div ng-repeat="check in courseDataAdd" ng-if="check.CourseID==myModelCourseAdd.course">
|
||||||
|
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 1
|
Specilization 1
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 1"
|
<input type="text" placeholder="Enter Specilization 1" tabindex="26" class="form-control" name="specilization1" ng-model="check.Specilization1"
|
||||||
tabindex="26" class="form-control" name="specilization1"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 2
|
Specilization 2
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 2"
|
<input type="text" placeholder="Enter Specilization 2" tabindex="27" class="form-control" name="specilization2" ng-model="check.Specilization2"
|
||||||
tabindex="27" class="form-control" name="specilization2"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
||||||
ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
@ -714,35 +709,29 @@
|
|||||||
|
|
||||||
<div ng-if="myModelCourseAdd.course==''">
|
<div ng-if="myModelCourseAdd.course==''">
|
||||||
|
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 1
|
Specilization 1
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 1"
|
<input type="text" placeholder="Enter Specilization 1" tabindex="28" class="form-control" name="specilization1" ng-model="check.Specilization1"
|
||||||
tabindex="28" class="form-control" name="specilization1"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 2
|
Specilization 2
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 2"
|
<input type="text" placeholder="Enter Specilization 2" tabindex="29" class="form-control" name="specilization2" ng-model="check.Specilization2"
|
||||||
tabindex="29" class="form-control" name="specilization2"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
||||||
ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
@ -772,8 +761,8 @@
|
|||||||
</style>
|
</style>
|
||||||
<input type="text" tabindex="31" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourseAdd.dateofjoining"
|
<input type="text" tabindex="31" 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"
|
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"
|
placeholder="Select Date of Joining" close-text="Close" required="required"
|
||||||
max-date="todayDate"/>
|
datepicker-position="top" max-date="todayDate" />
|
||||||
|
|
||||||
<span class="error text-small block" ng-if="Form.dateofjoining.$dirty && Form.dateofjoining.$error.required">Date of Joining is required</span>
|
<span class="error text-small block" ng-if="Form.dateofjoining.$dirty && Form.dateofjoining.$error.required">Date of Joining is required</span>
|
||||||
</div>
|
</div>
|
||||||
@ -914,8 +903,9 @@
|
|||||||
<label class="control-label">
|
<label class="control-label">
|
||||||
Alternate Mobile Number <span class="symbol required"></span>
|
Alternate Mobile Number <span class="symbol required"></span>
|
||||||
</label>
|
</label>
|
||||||
<input readonly type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="existingStuPersonalDetails.AlternateNumber"
|
<input readonly type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control"
|
||||||
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" required/>
|
ng-model="existingStuPersonalDetails.AlternateNumber" 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.$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>
|
<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>
|
||||||
@ -926,9 +916,10 @@
|
|||||||
Date Of Birth <span
|
Date Of Birth <span
|
||||||
class="symbol required"></span>
|
class="symbol required"></span>
|
||||||
</label>
|
</label>
|
||||||
<input readonly type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="existingStuPersonalDetails.DOB"
|
<input readonly type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy"
|
||||||
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
|
ng-model="existingStuPersonalDetails.DOB" is-open="startOpen" ng-init="startOpen = false"
|
||||||
placeholder="Select Date of Birth" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
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="false" max-date="currentDate" />
|
||||||
|
|
||||||
|
|
||||||
@ -976,7 +967,8 @@
|
|||||||
Aadhar Number <span class="symbol required"></span>
|
Aadhar Number <span class="symbol required"></span>
|
||||||
</label>
|
</label>
|
||||||
<input readonly type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
|
<input readonly type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
|
||||||
ng-model="existingStuPersonalDetails.AadharNumber" ng-minlength="10" ng-maxlength="15" ng-pattern="/^[0-9]*$/" required>
|
ng-model="existingStuPersonalDetails.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.$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>
|
<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>
|
||||||
@ -989,8 +981,8 @@
|
|||||||
<label>
|
<label>
|
||||||
Other ID
|
Other ID
|
||||||
</label>
|
</label>
|
||||||
<input readonly type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="existingStuPersonalDetails.OtherID" ng-minlength="1"
|
<input readonly type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="existingStuPersonalDetails.OtherID"
|
||||||
ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
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.$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>
|
<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>
|
||||||
@ -1010,8 +1002,8 @@
|
|||||||
Caste
|
Caste
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input readonly type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="existingStuPersonalDetails.Caste" ng-pattern="/^[a-zA-Z.\s]*$/"
|
<input readonly type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="existingStuPersonalDetails.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>
|
<span class="error text-small block" ng-if="Form.caste.$dirty && Form.caste.$error.pattern">Invalid Caste Name </span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}">
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}">
|
||||||
@ -1098,8 +1090,8 @@
|
|||||||
Refer's Mobile Number
|
Refer's Mobile Number
|
||||||
</label>
|
</label>
|
||||||
<input readonly type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
<input readonly type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
||||||
ng-model="existingStuPersonalDetails.ReferersMobileNumber" ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"
|
ng-model="existingStuPersonalDetails.ReferersMobileNumber" 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>
|
<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>
|
||||||
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
||||||
</div>
|
</div>
|
||||||
@ -1107,7 +1099,8 @@
|
|||||||
<label>
|
<label>
|
||||||
Comments
|
Comments
|
||||||
</label>
|
</label>
|
||||||
<textarea readonly maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments" ng-model="existingStuPersonalDetails.Comments"></textarea>
|
<textarea readonly maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments"
|
||||||
|
ng-model="existingStuPersonalDetails.Comments"></textarea>
|
||||||
<span class="text-small block">Max 100 Characters.</span>
|
<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>-->
|
<!--<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>-->
|
||||||
</div>
|
</div>
|
||||||
@ -1199,7 +1192,8 @@
|
|||||||
Add New Cource
|
Add New Cource
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
<form name="addCourseExistingStudentFORM" id="formAdd" novalidate ng-submit="addCourseExistingStudent.submit(addCourseExistingStudentFORM, myModelCourse, existingStuPersonalDetails)" method="post">
|
<form name="addCourseExistingStudentFORM" id="formAdd" novalidate ng-submit="addCourseExistingStudent.submit(addCourseExistingStudentFORM, myModelCourse, existingStuPersonalDetails)"
|
||||||
|
method="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.university.$dirty && addCourseExistingStudentFORM.university.$invalid, 'has-success':addCourseExistingStudentFORM.university.$valid}">
|
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.university.$dirty && addCourseExistingStudentFORM.university.$invalid, 'has-success':addCourseExistingStudentFORM.university.$valid}">
|
||||||
<label for="form-field-select-2">
|
<label for="form-field-select-2">
|
||||||
@ -1256,35 +1250,29 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div ng-repeat="check in courseData" ng-if="check.CourseID==myModelCourse.course">
|
<div ng-repeat="check in courseData" ng-if="check.CourseID==myModelCourse.course">
|
||||||
|
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 1
|
Specilization 1
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 1"
|
<input type="text" placeholder="Enter Specilization 1" tabindex="27" class="form-control" name="specilization1" ng-model="check.Specilization1"
|
||||||
tabindex="27" class="form-control" name="specilization1"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 2
|
Specilization 2
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 2"
|
<input type="text" placeholder="Enter Specilization 2" tabindex="28" class="form-control" name="specilization2" ng-model="check.Specilization2"
|
||||||
tabindex="28" class="form-control" name="specilization2"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
||||||
ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
@ -1292,35 +1280,29 @@
|
|||||||
|
|
||||||
<div ng-if="myModelCourse.course==''">
|
<div ng-if="myModelCourse.course==''">
|
||||||
|
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 1
|
Specilization 1
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 1"
|
<input type="text" placeholder="Enter Specilization 1" tabindex="29" class="form-control" name="specilization1" ng-model="check.Specilization1"
|
||||||
tabindex="29" class="form-control" name="specilization1"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 form-group"
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
||||||
ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
|
||||||
<label>
|
<label>
|
||||||
Specilization 2
|
Specilization 2
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="text" placeholder="Enter Specilization 2"
|
<input type="text" placeholder="Enter Specilization 2" tabindex="30" class="form-control" name="specilization2" ng-model="check.Specilization2"
|
||||||
tabindex="30" class="form-control" name="specilization2"
|
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
||||||
ng-model="check.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" readonly/>
|
|
||||||
<!--<span class="error text-small block"
|
<!--<span class="error text-small block"
|
||||||
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
|
||||||
<span class="error text-small block"
|
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
||||||
ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
|
||||||
<!--<span class="success text-small"-->
|
<!--<span class="success text-small"-->
|
||||||
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
</div>
|
</div>
|
||||||
@ -1348,9 +1330,10 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<input type="text" tabindex="28" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourse.dateofjoining"
|
<input type="text" tabindex="28" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourse.dateofjoining"
|
||||||
is-open="startOpen" ng-init="startOpen = false" name="dateofjoining" datepicker-options="dateOptions"
|
is-open="startOpen" ng-init="startOpen = false" name="dateofjoining"
|
||||||
placeholder="Select Date of Joining" close-text="Close" required="required" datepicker-position="top"
|
datepicker-options="dateOptions" placeholder="Select Date of Joining"
|
||||||
max-date="todayDate"/>
|
close-text="Close" required="required" datepicker-position="top" max-date="todayDate"
|
||||||
|
/>
|
||||||
|
|
||||||
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.dateofjoining.$dirty && addCourseExistingStudentFORM.dateofjoining.$error.required">Date of Joining is required</span>
|
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.dateofjoining.$dirty && addCourseExistingStudentFORM.dateofjoining.$error.required">Date of Joining is required</span>
|
||||||
</div>
|
</div>
|
||||||
@ -1369,7 +1352,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -273,7 +273,7 @@
|
|||||||
|
|
||||||
<tab active="tabactive2" ng-click="tabActive('tabactive1');addStudentView()" heading="Add Student" id="addstudent">
|
<tab active="tabactive2" ng-click="tabActive('tabactive1');addStudentView()" heading="Add Student" id="addstudent">
|
||||||
<!--<button ng-click="tabActive('0')" value="Tab1">Tab1</button>-->
|
<!--<button ng-click="tabActive('0')" value="Tab1">Tab1</button>-->
|
||||||
<div>
|
<div ng-if="existingStudentView == false">
|
||||||
<!--<button ng-click="myActivateDiv()">Click Me</button>-->
|
<!--<button ng-click="myActivateDiv()">Click Me</button>-->
|
||||||
<form name="Form" id="form" novalidate ng-submit="studentFORM.submit(Form, myModel, myModelCourseAdd)" method="post">
|
<form name="Form" id="form" novalidate ng-submit="studentFORM.submit(Form, myModel, myModelCourseAdd)" method="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -824,6 +824,586 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div ng-if="existingStudentView == true">
|
||||||
|
|
||||||
|
<div ng-init="getExistStudentDetails()">
|
||||||
|
<div ng-if="stuExistingDetailsShowLoading == true" class="text-center">
|
||||||
|
<h3>Fetching ...</h3>
|
||||||
|
</div>
|
||||||
|
<div class="container" ng-if="stuExistingDetailsShowLoading == false">
|
||||||
|
<div>
|
||||||
|
<button class="btn btn-danger btn-sm pull-right" ng-click="cancelExisStudentView()">
|
||||||
|
<i class="ti-close" tooltip="Personal Details" ></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
Personal Details
|
||||||
|
</legend>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-7">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<style>
|
||||||
|
.thumb {
|
||||||
|
width: 90px;
|
||||||
|
height: 115px;
|
||||||
|
margin: 18px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prof {
|
||||||
|
border: 2px solid #2C3543;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uploader {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<img class="thumb prof" ng-src="images/{{existingStuPersonalDetails.ProfilePicPath}}" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</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 readonly type="text" name="primaryPhone" tabindex="1" placeholder="Enter Mobile Number" class="form-control" ng-model="existingStuPersonalDetails.MobileNumber"
|
||||||
|
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" ng-blur='updateCheckMobileExist(p)'
|
||||||
|
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.firstname.$dirty && Form.firstname.$invalid, 'has-success':Form.firstname.$valid}">
|
||||||
|
<label>
|
||||||
|
First Name <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<input readonly type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="existingStuPersonalDetails.Firstname"
|
||||||
|
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>
|
||||||
|
<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 readonly type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="existingStuPersonalDetails.Lastname"
|
||||||
|
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>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.fathername.$dirty && Form.fathername.$invalid, 'has-success':Form.fathername.$valid}">
|
||||||
|
<label>
|
||||||
|
Father Name <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<input readonly type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="existingStuPersonalDetails.Fathername"
|
||||||
|
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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.mothername.$dirty && Form.mothername.$invalid, 'has-success':Form.mothername.$valid}">
|
||||||
|
<label>
|
||||||
|
Mother Name <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="existingStuPersonalDetails.MotherName"
|
||||||
|
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>
|
||||||
|
<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 readonly 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"
|
||||||
|
ng-model="existingStuPersonalDetails.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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<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 <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<input readonly type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control"
|
||||||
|
ng-model="existingStuPersonalDetails.AlternateNumber" 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>
|
||||||
|
</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 readonly type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy"
|
||||||
|
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" />
|
||||||
|
|
||||||
|
|
||||||
|
<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 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>
|
||||||
|
<input readonly type="text" name="gender" tabindex="7" placeholder="Enter Gender" class="form-control" ng-model="existingStuPersonalDetails.Gender"
|
||||||
|
ng-minlength="10" ng-maxlength="12" required/>
|
||||||
|
<!--<div class="clip-radio radio-primary">
|
||||||
|
<input type="radio" tabindex="9" id="female" name="gender" value="female" ng-model="existingStuPersonalDetails.Gender" required>
|
||||||
|
<label for="female">
|
||||||
|
Female
|
||||||
|
</label>
|
||||||
|
<input type="radio" id="male" name="gender" value="male" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<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 readonly placeholder="Enter Permanent Address" tabindex="10" class="form-control textdsc" name="address1" ng-model="existingStuPersonalDetails.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 readonly placeholder="Enter Current Address" tabindex="11" class="form-control textdsc" name="address2" ng-model="existingStuPersonalDetails.PresentAddress"></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 readonly type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
|
||||||
|
ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<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 readonly type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="existingStuPersonalDetails.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 readonly type="text" name="otherIdDetails" tabindex="14" placeholder="Other Id Details" class="form-control" ng-model="existingStuPersonalDetails.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 class="col-md-4 form-group" ng-class="{'has-error':Form.caste.$dirty && Form.caste.$invalid}">
|
||||||
|
<label>
|
||||||
|
Caste
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}">
|
||||||
|
<label>
|
||||||
|
Category
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="existingStuPersonalDetails.Category"
|
||||||
|
/>
|
||||||
|
<span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.religion.$dirty && Form.religion.$invalid}">
|
||||||
|
<label>
|
||||||
|
Religion
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.nationality.$dirty && Form.nationality.$invalid}">
|
||||||
|
<label>
|
||||||
|
Nationality
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.qualificaion.$dirty && Form.qualificaion.$invalid}">
|
||||||
|
<label>
|
||||||
|
Pre Qualification
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Qualification" tabindex="19" class="form-control" name="qualificaion" ng-model="existingStuPersonalDetails.PreQualification"
|
||||||
|
/>
|
||||||
|
<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.occupation.$dirty && Form.occupation.$invalid}">
|
||||||
|
<label>
|
||||||
|
Occupation
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.designation.$dirty && Form.designation.$invalid}">
|
||||||
|
<label>
|
||||||
|
Designation
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input readonly type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.companyname.$dirty && Form.companyname.$invalid}">
|
||||||
|
<label>
|
||||||
|
Company Name
|
||||||
|
</label>
|
||||||
|
<input readonly type="text" placeholder="Enter Company Name" tabindex="22" class="form-control" name="companyname" ng-model="existingStuPersonalDetails.Companyname"
|
||||||
|
/>
|
||||||
|
<span class="error text-small block" ng-if="Form.companyname.$dirty && Form.companyname.$error.pattern">Invalid Company </span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredby.$dirty && Form.referredby.$invalid}">
|
||||||
|
<label>
|
||||||
|
Referred By
|
||||||
|
</label>
|
||||||
|
<input readonly type="text" placeholder="Enter Refer's Name" tabindex="23" class="form-control" name="referredby" ng-model="existingStuPersonalDetails.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>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid}">
|
||||||
|
<label>
|
||||||
|
Refer's Mobile Number
|
||||||
|
</label>
|
||||||
|
<input readonly type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
||||||
|
ng-model="existingStuPersonalDetails.ReferersMobileNumber" 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>
|
||||||
|
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label>
|
||||||
|
Comments
|
||||||
|
</label>
|
||||||
|
<textarea readonly maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments"
|
||||||
|
ng-model="existingStuPersonalDetails.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>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label>
|
||||||
|
Active/De-Active
|
||||||
|
</label>
|
||||||
|
<div ng-if="existingStuPersonalDetails.IsActive==true">
|
||||||
|
<label>Active</label>
|
||||||
|
<!--<switch ng-model="existingStuPersonalDetails.IsActive" ng-init="existingStuPersonalDetails.IsActive = true" class="green"></switch>-->
|
||||||
|
</div>
|
||||||
|
<div ng-if="existingStuPersonalDetails.IsActive==false">
|
||||||
|
<label>In-Active</label>
|
||||||
|
<!--<switch ng-model="existingStuPersonalDetails.IsActive" ng-init="existingStuPersonalDetails.IsActive = false" class="green"></switch>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4" ng-if="existingStuPersonalDetails.IsActive == false" ng-class="{'has-error':Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid, 'has-success':Form.DeactiveComments.$valid}">
|
||||||
|
<label>
|
||||||
|
Reason for Deactivating <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<textarea readonly maxlength="100" placeholder="Reason for Deactivating" tabindex="25" class="form-control textdsc" name="DeactiveComments"
|
||||||
|
ng-model="existingStuPersonalDetails.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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
<input type="hidden" ng-init="hidden_DOB=existingStuPersonalDetails.DOB" ng-model="hidden_DOB">
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
Course Details
|
||||||
|
</legend>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>University
|
||||||
|
</th>
|
||||||
|
<th>Course
|
||||||
|
</th>
|
||||||
|
<!--<th>Specilization 1
|
||||||
|
</th>
|
||||||
|
<th>Specilization 2
|
||||||
|
</th>-->
|
||||||
|
<th>Batch
|
||||||
|
</th>
|
||||||
|
<th>Date of Joining
|
||||||
|
</th>
|
||||||
|
<th>Status
|
||||||
|
</th>
|
||||||
|
<th>Enrolled Branch
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody ng-repeat="s in existingStuCourseDetails">
|
||||||
|
<tr>
|
||||||
|
<td>{{s.UniversityName}}</td>
|
||||||
|
<td>{{s.CourseName}}</td>
|
||||||
|
<!--<td>{{s.Specilization1}}</td>
|
||||||
|
<td>{{s.Specilization2}}</td>-->
|
||||||
|
<td>{{s.BatchName}}</td>
|
||||||
|
<td>{{s.DOJ}}</td>
|
||||||
|
<td><span ng-if="s.IsActive == 1">Active</span>
|
||||||
|
<span ng-if="s.IsActive == 0">In-Active</span></td>
|
||||||
|
<td>{{s.BranchName}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
<!--<pre>{{ p | json}}</pre>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button tooltip="Personal Details" class="btn btn-danger btn-sm pull-right" ng-click="cancelExisStudentView()">
|
||||||
|
<!--<i class="ti-close" tooltip="Personal Details" ></i>-->
|
||||||
|
Cancel
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
Add New Cource
|
||||||
|
</legend>
|
||||||
|
|
||||||
|
<form name="addCourseExistingStudentFORM" id="formAdd" novalidate ng-submit="addCourseExistingStudent.submit(addCourseExistingStudentFORM, myModelCourse, existingStuPersonalDetails)"
|
||||||
|
method="post">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.university.$dirty && addCourseExistingStudentFORM.university.$invalid, 'has-success':addCourseExistingStudentFORM.university.$valid}">
|
||||||
|
<label for="form-field-select-2">
|
||||||
|
University <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select class="form-control" tabindex="25" class="cs-select cs-skin-elastic" name="university" ng-model="myModelCourse.university"
|
||||||
|
ng-change="onSlecetUniv()" required>
|
||||||
|
<option value="" disabled selected>Select University</option>
|
||||||
|
<option ng-repeat="item in universityData" value="{{item.UniversityID}}">{{item.UniversityName}}</option>
|
||||||
|
</select>
|
||||||
|
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.university.$dirty && addCourseExistingStudentFORM.university.$error.required">University is Required</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.course.$dirty && addCourseExistingStudentFORM.course.$invalid, 'has-success':addCourseExistingStudentFORM.course.$valid}">
|
||||||
|
|
||||||
|
<label>
|
||||||
|
Course <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<div ng-if="courseLoading == true">
|
||||||
|
<span style="padding: auto 0; color: #007AFF; font-weight: bold;">fetching...</span>
|
||||||
|
</div>
|
||||||
|
<div ng-if="courseLoading == false">
|
||||||
|
<select class="form-control" tabindex="26" name="course" ng-model="myModelCourse.course" class="cs-select cs-skin-elastic"
|
||||||
|
required>
|
||||||
|
<option value="" disabled selected>Select Course</option>
|
||||||
|
<option ng-repeat="item in courseData" value="{{item.CourseID}}">{{item.CourseName}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.course.$dirty && addCourseExistingStudentFORM.course.$error.required">Course is required</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.batch.$dirty && addCourseExistingStudentFORM.batch.$invalid, 'has-success':addCourseExistingStudentFORM.batch.$valid}">
|
||||||
|
|
||||||
|
<label>
|
||||||
|
Batch <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<div ng-if="courseLoading == true">
|
||||||
|
<span style="padding: auto 0; color: #007AFF; font-weight: bold;">fetching...</span>
|
||||||
|
</div>
|
||||||
|
<div ng-if="courseLoading == false">
|
||||||
|
<select class="form-control" tabindex="26" name="batch" ng-model="myModelCourse.batch" class="cs-select cs-skin-elastic"
|
||||||
|
required>
|
||||||
|
<option value="" disabled selected>Select Batch</option>
|
||||||
|
<option ng-repeat="item in batchData" value="{{item.BatchCode}}">{{item.BatchName}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.batch.$dirty && addCourseExistingStudentFORM.batch.$error.required">Batch is required</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div ng-repeat="check in courseData" ng-if="check.CourseID==myModelCourse.course">
|
||||||
|
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
||||||
|
<label>
|
||||||
|
Specilization 1
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input type="text" placeholder="Enter Specilization 1" tabindex="27" 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>-->
|
||||||
|
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
||||||
|
<!--<span class="success text-small"-->
|
||||||
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
||||||
|
<label>
|
||||||
|
Specilization 2
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input type="text" placeholder="Enter Specilization 2" tabindex="28" 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>-->
|
||||||
|
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
||||||
|
<!--<span class="success text-small"-->
|
||||||
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div ng-if="myModelCourse.course==''">
|
||||||
|
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
|
||||||
|
<label>
|
||||||
|
Specilization 1
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input type="text" placeholder="Enter Specilization 1" tabindex="29" 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>-->
|
||||||
|
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
|
||||||
|
<!--<span class="success text-small"-->
|
||||||
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
|
||||||
|
<label>
|
||||||
|
Specilization 2
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input type="text" placeholder="Enter Specilization 2" tabindex="30" 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>-->
|
||||||
|
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
|
||||||
|
<!--<span class="success text-small"-->
|
||||||
|
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.enrollmentid.$dirty && addCourseExistingStudentFORM.enrollmentid.$invalid}">
|
||||||
|
<label>
|
||||||
|
Enrollment ID
|
||||||
|
</label>
|
||||||
|
<input type="text" name="enrollmentid" tabindex="31" placeholder="Enter Entollment ID" class="form-control" ng-model="myModelCourse.enrollmentid"
|
||||||
|
/>
|
||||||
|
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.enrollmentid.$dirty && addCourseExistingStudentFORM.enrollmentid.$error.required">Enrollment ID is required</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.dateofjoining.$dirty && addCourseExistingStudentFORM.dateofjoining.$invalid, 'has-success':addCourseExistingStudentFORM.dateofjoining.$valid}">
|
||||||
|
<label>
|
||||||
|
Date of Joining <span class="symbol required"></span>
|
||||||
|
</label>
|
||||||
|
<style>
|
||||||
|
.dropdown-menu {
|
||||||
|
position: relative;
|
||||||
|
/*top: -225px !important;*/
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<input type="text" tabindex="28" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourse.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"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.dateofjoining.$dirty && addCourseExistingStudentFORM.dateofjoining.$error.required">Date of Joining is required</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="pull-right">
|
||||||
|
<button type="submit" tabindex="32" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success" data-style="zoom-in">
|
||||||
|
Add
|
||||||
|
</button>
|
||||||
|
<button type="reset" tabindex="33" class="btn btn-warning btn-wide" tabindex="9" ng-click="addCourseExistingStudent.cancel()">
|
||||||
|
Cancel
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!--{{existingStuPersonalDetails.Religion}}
|
||||||
|
|
||||||
|
{{existingStuPersonalDetails}}
|
||||||
|
{{existingStuCourseDetails}}-->
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</tab>
|
</tab>
|
||||||
</tabset>
|
</tabset>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user