Merge remote-tracking branch 'origin/master'

This commit is contained in:
gandhimathi 2018-03-10 12:55:48 +05:30
commit e1391ce03d
13 changed files with 1133 additions and 1045 deletions

View File

@ -200,6 +200,8 @@ class Student_Controller extends REST_Controller {
$req['IsActive'] = $data['IsActive'];
$req['BranchID'] = $data['BranchID'];
$req['EnrollmentID'] = $data['EnrollmentID'];
$req['Specilization1'] = $data['Specilization1'];
$req['Specilization2'] = $data['Specilization2'];
$req['DeactiveComments'] = $data['IsActive'] == 1 ? '': $data['DeactiveComments'];
$req['UpdatedBy'] = $updatedBy;
$date = date('Y-m-d H:i:s');
@ -590,6 +592,10 @@ class Student_Controller extends REST_Controller {
$reqCourse['SessionID'] = $coursedata['batch'];
$reqCourse['DOJ'] = $coursedata['dateofjoining'];
$reqCourse['EnrollmentID'] = $coursedata['enrollmentid'];
$reqCourse['Specilization1'] = $coursedata['specilization1'];
$reqCourse['Specilization2'] = $coursedata['specilization2'];
$reqCourse['BranchID'] = $createdBranch;
$reqCourse['IsActive'] = '1';
$reqCourse['CreatedBy'] = $createdBy;
@ -668,6 +674,10 @@ class Student_Controller extends REST_Controller {
$reqCourse['BranchID'] = $createdBranch;
$reqCourse['IsActive'] = $data['switchsetting'];
$reqCourse['EnrollmentID'] = $coursedata['enrollmentid'];
$reqCourse['Specilization1'] = $coursedata['specilization1'];
$reqCourse['Specilization2'] = $coursedata['specilization2'];
$reqCourse['CreatedBy'] = $createdBy;
$date = date('Y-m-d H:i:s');
$reqCourse['CreatedOn'] = $date;
@ -740,6 +750,10 @@ class Student_Controller extends REST_Controller {
$reqCourse['BranchID'] = $createdBranch;
$reqCourse['IsActive'] = $data['switchsetting'];
$reqCourse['EnrollmentID'] = $coursedata['enrollmentid'];
$reqCourse['Specilization1'] = $coursedata['specilization1'];
$reqCourse['Specilization2'] = $coursedata['specilization2'];
$reqCourse['CreatedBy'] = $createdBy;
$date = date('Y-m-d H:i:s');
$reqCourse['CreatedOn'] = $date;

View File

@ -318,7 +318,7 @@ class Broadcast_model extends CI_Model
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$output =curl_exec($ch);
// print_r($output);exit();
curl_close($ch);
$arrss = explode('<br>', $output);
@ -336,7 +336,7 @@ class Broadcast_model extends CI_Model
$c = count($arrss);
for($i=0 ; $i < $c; $i++){
// echo $arrss[$i];exit();
if( end($arrss)) {
if( $i == $c-1) {
break;
} else {
$a = explode('|', $arrss[$i]);
@ -346,7 +346,7 @@ class Broadcast_model extends CI_Model
$delvOn = $a[3];
$qury1 = "SELECT * FROM T_BroadcastDeliveryCron WHERE MsgId = '$msgId'";
$choe = $this->db->query($qury1)->first_row();
// print_r($choe);exit();
if($this->db->query($qury1)->first_row()){
$qury2 = "UPDATE T_BroadcastDeliveryCron SET DeliveredStatus = '$delvStatus', DeliveredOn = '$delvOn' WHERE MsgId = '$msgId'";

View File

@ -452,7 +452,7 @@ class Student_model extends CI_Model
// echo $req['localBranchID'];exit();
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.CourseCode,t3.Specilization1,t3.Specilization2,t4.SessionName');
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.CourseCode,t4.SessionName');
$this->db->from('' . STUDENTCOURSE . ' as t1');
$this->db->join('' . UNIVERSITY . ' as t2', 't2.UniversityID = t1.UniversityID', 'LEFT');
$this->db->join('' . COURSE . ' as t3', 't3.CourseID = t1.CourseID', 'LEFT');

View File

@ -252,8 +252,8 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
}
}).state('app.student.studentDetails', {
url: '/studentDetails',
templateUrl: "assets/views/student/student_details.html",
resolve: loadSequence('ui.select','spin', 'ui.mask', 'ladda', 'angular-ladda', 'studentCtrl', 'ngTable'),
templateUrl: "assets/views/student/student_details.html",
resolve: loadSequence('ui.select', 'spin', 'ui.mask', 'monospaced.elastic', 'ladda', 'touchspin-plugin', 'angular-ladda', 'studentCtrl', 'ngTable'),
title: 'Manage Student Details',
ncyBreadcrumb: {
label: 'Manage Student Details'
@ -261,7 +261,7 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
}).state('app.student.studentDetailsSuperAdmin', {
url: '/studentDetailsAddEdit',
templateUrl: "assets/views/student/student_details_SuperAdmin.html",
resolve: loadSequence('ui.select','spin', 'ui.mask', 'ladda', 'angular-ladda', 'studentCtrl', 'ngTable'),
resolve: loadSequence('ui.select', 'spin', 'ui.mask', 'monospaced.elastic', 'ladda', 'touchspin-plugin', 'angular-ladda', 'studentCtrl', 'ngTable'),
title: 'Manage Details',
ncyBreadcrumb: {
label: 'Manage Details'

File diff suppressed because it is too large Load Diff

View File

@ -289,6 +289,20 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
}
}
$scope.maxDateForStatusUpdt = '';
$scope.statusCheck = function(sts){
let stas = JSON.parse(sts);
$scope.myStatusModel.staus = stas.ListCode;
let str = stas.ListName;
$scope.myStatusModel.dateOn = '';
if(str.toLowerCase() == "issued" || str.toLowerCase() == "received") {
$scope.maxDateForStatusUpdt = new Date();
}else {
$scope.maxDateForStatusUpdt = '';
}
}
$scope.showSingleLateralSemType = false;
// sem year show when REGULAR or LATER ENTRY

View File

@ -148,7 +148,7 @@
<td class="center" ng-if="p.ListName == 'Income' ">
<span ng-if=" p.PaymentStatus == 1 "> <i tooltip="EDIT" class="glyphicon glyphicon-pencil" ng-click="setEditId(p.ID)"></i> </span>
<span ng-if=" p.PaymentStatus == 0 ">
<!--<i tooltip="DELETE" class="glyphicon glyphicon-remove" ng-click="deleteFeePayableEntry(p.ID)"></i> -->
<i tooltip="DELETE" class="glyphicon glyphicon-remove" ng-click="deleteFeePayableEntry(p.ID)"></i>
</span>
</td>
<td class="center" ng-if="p.Status == 'Pending'">

View File

@ -284,11 +284,15 @@
<label for="form-field-select-2">
Status <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatusModel.staus"
required>
<!--<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatusModel.staus"
ng-change="statusCheck(myStatusModel.staus)" required>
<option value="" disabled selected>Select Status</option>
<option ng-repeat="itemStatus in statusDetailsList" value="{{itemStatus.ListCode}}">{{itemStatus.ListName}}</option>
</select>-->
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatus"
ng-change="statusCheck(myStatus)" required>
<option value="" disabled selected>Select Status</option>
<option ng-repeat="itemStatus in statusDetailsList" value="{{itemStatus}}">{{itemStatus.ListName}}</option>
</select>
<span class="error text-small block" ng-if="Form.status.$dirty && Form.status.$error.required">Status is Required</span>
@ -311,7 +315,7 @@
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myStatusModel.dateOn"
is-open="startOpen" ng-init="startOpen = false" name="dateofstaus"
datepicker-options="dateOptions" placeholder="Select Date "
close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)" max-date="maxDateForStatusUpdt"
/>
<!--<input type="text" tabindex="28" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourseAdd.dateofjoining"
@ -417,10 +421,10 @@
Status <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatusModel.staus"
required>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatus"
ng-change="statusCheck(myStatus)" required>
<option value="" disabled selected>Select Status</option>
<option ng-repeat="itemStatus in statusDetailsList" value="{{itemStatus.ListCode}}">{{itemStatus.ListName}}</option>
<option ng-repeat="itemStatus in statusDetailsList" value="{{itemStatus}}">{{itemStatus.ListName}}</option>
</select>
<span class="error text-small block" ng-if="Form.status.$dirty && Form.status.$error.required">Status is Required</span>
@ -443,7 +447,7 @@
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myStatusModel.dateOn"
is-open="startOpen" ng-init="startOpen = false" name="dateofstaus"
datepicker-options="dateOptions" placeholder="Select Date "
close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)" max-date="maxDateForStatusUpdt"
/>
<!--<input type="text" tabindex="28" class="form-control" ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelCourseAdd.dateofjoining"

View File

@ -1,5 +1,10 @@
<div class="row">
<div class="col-md-12">
<script>
$(document).ready(function(){
$("#addCourseBtn").focus();
})
</script>
<div ng-if="courseEditLoading == true" class="text-center">
<!--<img src="assets/images/ajax_loader_blue.gif" style="width: 5%; height: 30%">-->
<h3>Fetching ...</h3>
@ -46,10 +51,10 @@
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button type="reset" class="btn btn-into btn-wide" tabindex="9" ng-click="addStudentCourse()">
<button type="reset" id="addCourseBtn" class="btn btn-into btn-wide" tabindex="100" ng-click="addStudentCourse()">
Add Course
</button>
<button type="reset" class="btn btn-warning btn-wide" tabindex="9" ng-click="cancel()">
<button type="reset" class="btn btn-warning btn-wide" tabindex="101" ng-click="cancel()">
Cancel
</button>
</div>
@ -66,7 +71,7 @@
<label>
University <span class="symbol required"></span>
</label>
<select ng-init="onSlecetUnivEdit(stucour.UniversityID)" class="form-control" name="univ" ng-model="stucour.UniversityID"
<select ng-init="onSlecetUnivEdit(stucour.UniversityID, stucour.CourseID)" class="form-control" name="univ" ng-model="stucour.UniversityID"
class="cs-select cs-skin-elastic" ng-change="onChangeSlecetUnivEdit(stucour.UniversityID)"
required>
@ -77,8 +82,8 @@
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<label>
<div class="col-md-4" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<!--<label>
Course <span class="symbol required"></span>
</label>
<div ng-if="courseLoading == true">
@ -91,33 +96,30 @@
<option ng-repeat="items in courseData" value="{{items.CourseID}}" ng-selected="stucour.CourseID == items.CourseID">{{items.CourseName}}<span ng-show="items.CourseCode != ''">(<b>{{items.CourseCode}}</b>)</span></option>
</select>
</div>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>-->
<div class=" form-group">
<label>
Course<span class="symbol required"></span>
</label>
<ui-select ng-model="stuCourseEditDetailsObj.selected" name="course" theme="bootstrap" ng-required="true" ng-change="editStudentCourseDetailsChanges(stuCourseEditDetailsObj)">
<ui-select-match placeholder="Select Course">
{{$select.selected.CourseName}}
</ui-select-match>
<ui-select-choices value repeat="item in courseDataEditScrn | filter: $select.search">
<div ng-bind-html="item.CourseName | highlight: $select.search"></div>
<small ng-bind-html="item.CourseCode | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
<!--<pre>{{stuCourseEditDetailsObj}}</pre>-->
</div>
<!--<div class="col-md-4 form-group" ng-class="{'has-error':Form.batch.$dirty && Form.batch.$invalid, 'has-success':Form.batch.$valid}">
<label>
Session <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" name="batch" ng-model="stucour.SessionID" class="cs-select cs-skin-elastic" required>
<option value="" disabled selected>Select Session</option>
<option ng-repeat="items in batchData" value="{{items.SessionID}}" ng-selected="stucour.SessionID == items.SessionID">{{items.SessionName}}</option>
</select>
</div>
<span class="error text-small block" ng-if="Form.batch.$dirty && Form.batch.$error.required">Session is required</span>
</div>-->
</div>
<div class="row">
<div ng-repeat="check in courseData" ng-if="check.CourseID==stucour.CourseID">
<div class="col-md-4 form-group"
<div class="col-md-4 form-group"
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
<label>
Specilization 1
@ -125,14 +127,10 @@
<input type="text" placeholder="Enter Specilization 1"
tabindex="30" 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-model="stucour.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<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>
<div class="col-md-4 form-group"
ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
<label>
@ -141,51 +139,11 @@
<input type="text" placeholder="Enter Specilization 2"
tabindex="31" 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-model="stucour.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<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="stucour.CourseID==''">
<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="32" 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="33" 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':Form.enrollmentid.$dirty && Form.enrollmentid.$invalid}">
<label>
Enrollment ID
@ -196,8 +154,6 @@
</div>
</div>
<div class="row">
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofjoining.$dirty && Form.dateofjoining.$invalid, 'has-success':Form.dateofjoining.$valid}">
<label>
@ -271,9 +227,9 @@
<span class="error text-small block" ng-if="FormAdd.university.$dirty && FormAdd.university.$error.required">University is Required</span>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':FormAdd.course.$dirty && FormAdd.course.$invalid, 'has-success':FormAdd.course.$valid}">
<div class="col-md-4" ng-class="{'has-error':FormAdd.course.$dirty && FormAdd.course.$invalid, 'has-success':FormAdd.course.$valid}">
<label>
<!--<label>
Course <span class="symbol required"></span>
</label>
<div ng-if="courseLoading == true">
@ -288,6 +244,23 @@
</div>
<span class="error text-small block" ng-if="FormAdd.course.$dirty && FormAdd.course.$error.required">Course is required</span>
-->
<div class=" form-group">
<label>
Course<span class="symbol required"></span>
</label>
<ui-select ng-model="myModelCourseObjStu.selected" name="course" theme="bootstrap" ng-required="true" ng-change="addStudentCourseDetailsChanges(myModelCourseObjStu)">
<ui-select-match placeholder="Select Course">
{{$select.selected.CourseName}}
</ui-select-match>
<ui-select-choices value repeat="item in courseData | filter: $select.search">
<div ng-bind-html="item.CourseName | highlight: $select.search"></div>
<small ng-bind-html="item.CourseCode | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
</div>
<!--<div class="col-md-4 form-group" ng-class="{'has-error':FormAdd.batch.$dirty && FormAdd.batch.$invalid, 'has-success':FormAdd.batch.$valid}">
@ -311,85 +284,30 @@
</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>
<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>
<input type="text" placeholder="Enter Specilization 1" tabindex="27" class="form-control" name="specilization1" ng-model="myModelCourse.specilization1"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </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':FormAdd.enrollmentid.$dirty && FormAdd.enrollmentid.$invalid}">
<label>
<input type="text" placeholder="Enter Specilization 2" tabindex="28" class="form-control" name="specilization2" ng-model="myModelCourse.specilization2"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':FormAdd.enrollmentid.$dirty && FormAdd.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="FormAdd.enrollmentid.$dirty && FormAdd.enrollmentid.$error.required">Enrollment ID is required</span>
</div>
<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="FormAdd.enrollmentid.$dirty && FormAdd.enrollmentid.$error.required">Enrollment ID is required</span>
</div>
</div>
<div class="row">
@ -407,7 +325,7 @@
<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"/>
max-date="todayDate" ng-change="stuAddNewCourseDateChange()"/>
<span class="error text-small block" ng-if="FormAdd.dateofjoining.$dirty && FormAdd.dateofjoining.$error.required">Date of Joining is required</span>
</div>

View File

@ -1,4 +1,20 @@
<tabset class="tabbable" style="border: 1px solid #c5c5c5; border-radius: 3px; box-shadow: 3px 5px #c3c3c3;">
<script>
$("#personalDetailButton").click(function () {
$("#primaryPhone1").focus();
});
$("#documentDetails").click(function () {
$("#documentName").focus();
});
$("#addDocumentDetails").click(function () {
$("#documentName").focus();
});
$("#pendingDocumentDetails").click(function () {
$("#pendingDocumentTextarea").focus();
});
</script>
<tab heading="Personal Details">
<form name="Form" id="form" novalidate>
<div class="row">
@ -16,6 +32,7 @@
<div class="col-md-5">
<div class="row">
<div class="col-md-4">
<style>
.thumb {
width: 90px;
@ -43,7 +60,7 @@
<div class=" margin-bottom-5">
</div>
<input type="file" accept="image/*" ng-init="resetImageEdit()" file-upload-edit onchange="angular.element(this).scope().imageUploadEdit(event)"
<input tabindex="2027" type="file" accept="image/*" ng-init="resetImageEdit()" file-upload-edit onchange="angular.element(this).scope().imageUploadEdit(event)"
/>
</div>
</div>
@ -96,9 +113,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="p.MobileNumber"
<input type="text" name="primaryPhone" tabindex="2000" placeholder="Enter Mobile Number" class="form-control" ng-model="p.MobileNumber"
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" ng-blur='updateCheckMobileExist(p)'
required/>
id="primaryPhone1" 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>
@ -106,8 +123,8 @@
<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="p.Firstname"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter First Name" tabindex="2001" class="form-control" name="firstname" ng-model="p.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>
@ -115,8 +132,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="p.Lastname"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter Last Name" tabindex="2002" class="form-control" name="lastname" ng-model="p.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>
@ -126,8 +143,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="p.Fathername"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter Father Name" tabindex="2003" class="form-control" name="fathername" ng-model="p.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>
@ -136,8 +153,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="p.MotherName"
capitalize-first ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<input type="text" placeholder="Enter Mother Name" tabindex="2004" class="form-control" name="mothername" ng-model="p.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>
@ -145,7 +162,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="2005" 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="p.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>
@ -156,8 +173,9 @@
<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="p.AlternateNumber"
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" required/>
<input type="text" name="secondaryPhone" tabindex="2006" placeholder="Enter Alternate Mobile Number" class="form-control"
ng-model="p.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>
@ -168,10 +186,11 @@
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="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="true" />
<input type="text" tabindex="2007" 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="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>
@ -183,7 +202,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="p.Gender" required>
<input type="radio" tabindex="2008" id="female" name="gender" value="female" ng-model="p.Gender" required>
<label for="female">
Female
</label>
@ -201,21 +220,21 @@
<label>
Permanent Address
</label>
<textarea placeholder="Enter Permanent Address" tabindex="10" class="form-control textdsc" name="address1" ng-model="p.PermanentAddress"></textarea>
<textarea placeholder="Enter Permanent Address" tabindex="2009" class="form-control textdsc" name="address1" ng-model="p.PermanentAddress"></textarea>
<span class="error text-small block" ng-if="Form.address1.$dirty && Form.address1.$invalid">Permanent Address is required</span>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address2.$dirty && Form.address2.$invalid}">
<label>
Current Address
</label>
<textarea placeholder="Enter Current Address" tabindex="11" class="form-control textdsc" name="address2" ng-model="p.PresentAddress"></textarea>
<textarea placeholder="Enter Current Address" tabindex="2010" class="form-control textdsc" name="address2" ng-model="p.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 type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
<input type="text" name="aadharNumber" tabindex="2011" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
ng-model="p.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>
@ -230,7 +249,7 @@
<label>
Other ID
</label>
<input type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="p.OtherID" ng-minlength="1"
<input type="text" name="otherId" tabindex="2012" placeholder="Other Id" class="form-control" ng-model="p.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>
@ -239,7 +258,7 @@
<label>
Other ID Details
</label>
<input type="text" name="otherIdDetails" tabindex="14" placeholder="Other Id Details" class="form-control" ng-model="p.OtherIDDetails"
<input type="text" name="otherIdDetails" tabindex="2013" placeholder="Other Id Details" class="form-control" ng-model="p.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>
@ -251,7 +270,7 @@
Caste
</label>
<input type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="p.Caste" ng-pattern="/^[a-zA-Z.\s]*$/"
<input type="text" placeholder="Enter Caste" tabindex="2014" class="form-control" name="caste" ng-model="p.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>
@ -260,7 +279,7 @@
Category
</label>
<input type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="p.Category"
<input type="text" placeholder="Enter Category" tabindex="2015" class="form-control" name="category" ng-model="p.Category"
/>
<span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
</div>
@ -273,7 +292,7 @@
Religion
</label>
<input type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="p.Religion"
<input type="text" placeholder="Enter Religion" tabindex="2016" class="form-control" name="religion" ng-model="p.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>
@ -282,7 +301,7 @@
Nationality
</label>
<input type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="p.Nationality"
<input type="text" placeholder="Enter Nationality" tabindex="2017" class="form-control" name="nationality" ng-model="p.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>
@ -291,7 +310,7 @@
Pre Qualification
</label>
<input type="text" placeholder="Enter Qualification" tabindex="19" class="form-control" name="qualificaion" ng-model="p.PreQualification"
<input type="text" placeholder="Enter Qualification" tabindex="2018" class="form-control" name="qualificaion" ng-model="p.PreQualification"
/>
<span class="error text-small block" ng-if="Form.qualificaion.$dirty && Form.qualificaion.$error.pattern">Enter a Valid Qualification</span>
</div>
@ -303,7 +322,7 @@
Occupation
</label>
<input type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="p.Occupation"
<input type="text" placeholder="Enter Occupation" tabindex="2019" class="form-control" name="occupation" ng-model="p.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>
@ -312,7 +331,7 @@
Designation
</label>
<input type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="p.Designation"
<input type="text" placeholder="Enter Designation" tabindex="2020" class="form-control" name="designation" ng-model="p.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>
@ -320,7 +339,7 @@
<label>
Company Name
</label>
<input type="text" placeholder="Enter Company Name" tabindex="22" class="form-control" name="companyname" ng-model="p.Companyname"
<input type="text" placeholder="Enter Company Name" tabindex="2021" class="form-control" name="companyname" ng-model="p.Companyname"
/>
<span class="error text-small block" ng-if="Form.companyname.$dirty && Form.companyname.$error.pattern">Invalid Company </span>
</div>
@ -330,7 +349,7 @@
<label>
Referred By
</label>
<input type="text" placeholder="Enter Refer's Name" tabindex="23" class="form-control" name="referredby" ng-model="p.ReferredBy"
<input type="text" placeholder="Enter Refer's Name" tabindex="2022" class="form-control" name="referredby" ng-model="p.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>
@ -338,7 +357,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="2023" placeholder="Enter Refer's Mobile Number" class="form-control"
ng-model="p.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>
@ -348,7 +367,7 @@
<label>
Comments
</label>
<textarea maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments" ng-model="p.Comments"></textarea>
<textarea maxlength="100" placeholder="Enter Comments" tabindex="2024" class="form-control textdsc" name="Comments" ng-model="p.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>
@ -358,7 +377,7 @@
<label>
Active/De-Active
</label>
<div ng-if="p.IsActive==true">
<div ng-if="p.IsActive==true" tabindex="2025">
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
</div>
<div ng-if="p.IsActive==false">
@ -369,7 +388,7 @@
<label>
Reason for Deactivating <span class="symbol required"></span>
</label>
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="25" class="form-control textdsc" name="DeactiveComments"
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="2026" class="form-control textdsc" name="DeactiveComments"
ng-model="p.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>
@ -380,11 +399,11 @@
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button type="button" ng-disabled="editSaveButtonDisable" ladda="ldloading1.zoom_in" tabindex="19" class="btn btn-wide btn-success"
<button type="button" ng-disabled="editSaveButtonDisable" ladda="ldloading1.zoom_in" tabindex="2028" class="btn btn-wide btn-success"
data-style="zoom-in" ng-click="updateStuDetails(Form, p, hidden_DOB)">
<i class='fa fa-spinner fa-spin' ng-if="editSaveButtonDisable"> </i> Save
</button>
<button type="reset" class="btn btn-warning btn-wide" tabindex="20" ng-click="cancel()">
<button type="reset" class="btn btn-warning btn-wide" tabindex="2029" ng-click="cancel()">
Cancel
</button>
</div>
@ -397,9 +416,9 @@
</form>
</tab>
<tab heading="Document Details" id="documentDetails">
<tabset class="tabbable" style="border: 1px solid #c5c5c5; border-radius: 3px; box-shadow: 3px 5px #c3c3c3;">
<tab heading="Add Document Details">
<tab heading="Add Document Details" id="addDocumentDetails">
<div ng-init="getStuEntrollDocDetails(p.StudentID)">
<fieldset style="background-color: #eaeaea;">
<legend>
@ -414,8 +433,8 @@
Document Name <span
class="symbol required"></span>
</label>
<input type="text" name="documentName" tabindex="1" placeholder="Document Name" class="form-control" ng-model="myModelAddDocuments.documentName"
required/>
<input type="text" name="documentName" tabindex="3000" placeholder="Document Name" class="form-control" ng-model="myModelAddDocuments.documentName"
id="documentName" required/>
<span class="error text-small block" ng-if="FormDoc.documentName.$dirty && FormDoc.documentName.$invalid" ng-hide="FormDoc.documentName.$error.maxlength || FormDoc.documentName.$error.minlength || FormDoc.documentName.$error.pattern">Document Name is required.</span>
</div>
<div class="col-md-4 form-group">
@ -425,18 +444,18 @@
class="symbol required"></span>
</label>
<span>
<input type="file" accept="/*" file-upload-document />
<input type="file" tabindex="3001" accept="/*" file-upload-document />
</span>
</div>
<div class="col-md-2">
<label>
</label>
<div>
<button tooltip="Upload" type="submit" ng-disabled="disableButton" tabindex="5" class="btn btn-xs btn-success">
<button tooltip="Upload" tabindex="3002" type="submit" ng-disabled="disableButton" class="btn btn-xs btn-success">
<i class="ti-upload"></i>
</button>
<button tooltip="Reset" class="btn btn-warning btn-xs" tabindex="6" ng-click="studentEntrollDocFORM.reset(FormDoc)">
<button tooltip="Reset" tabindex="3003" class="btn btn-warning btn-xs" ng-click="studentEntrollDocFORM.reset(FormDoc)">
<i class="ti-reload"></i>
</button>
</div>
@ -465,12 +484,12 @@
<td>{{doc.DocumentName}}</td>
<td>{{doc.DocumentStorePath}}</td>
<td class="center">
<!--<td class="center"><button tooltip="Download" class="btn btn-xs btn-primary" ng-click="printPdf(doc.DocumentStorePath)"><i class="ti-download">
<!--<td class="center"><button tooltip="Download" class="btn btn-xs btn-primary" ng-click="printPdf(doc.DocumentStorePath)"><i class="ti-download">
<a ng-href="http://localhost/apollo_New_Update_20_02_2018/apollodec/Apollo/images/{{doc.DocumentStorePath}}" target="_blank"></a> </i></button>-->
<file-download fileurl="{{doc.DocumentStorePath}}" linktext="Click here!"></file-download>
<file-download fileurl="{{doc.DocumentStorePath}}" linktext="Click here!"></file-download>
<button tooltip="Delete" class="btn btn-xs btn-danger" ng-click="deleteDocDetails(doc.ID, p.StudentID)"><i class="ti-trash">
</i></button>
</td>
</td>
</tr>
</tbody>
</table>
@ -481,7 +500,7 @@
</div>
</div>
</tab>
<tab heading="Pending Document Details">
<tab heading="Pending Document Details" id="pendingDocumentDetails">
<fieldset style="background-color: #eaeaea;">
<legend>
Pending Document Details
@ -495,8 +514,9 @@
Pending Document Details <span
class="symbol required"></span>
</label>
<textarea type="text" placeholder="Document Details" tabindex="1" class="form-control" name="documentDetails" ng-model="myModelAddPendingDocDetails.documentDetails"
maxlength="100" required/>
<textarea type="text" placeholder="Document Details" tabindex="4000" class="form-control" name="pendingDocumentTextarea"
ng-model="myModelAddPendingDocDetails.documentDetails" id="pendingDocumentTextarea" maxlength="100"
required/>
<span class="text-small block" style="color: rgba(128, 128, 128, 0.64)">Max 100 Characters.</span>
<span class="error text-small block" ng-if="FormPendDoc.documentDetails.$dirty && FormPendDoc.documentDetails.$invalid" ng-hide="FormPendDoc.documentDetails.$error.maxlength || FormPendDoc.documentDetails.$error.minlength || FormPendDoc.documentDetails.$error.pattern">Pending Document Details required.</span>
</div>
@ -505,7 +525,7 @@
<label>
Track Status
</label>
<div ng-switch="myModelAddPendingDocDetails.checkTracking">
<div ng-switch="myModelAddPendingDocDetails.checkTracking" tabindex="4001">
<div ng-switch-when="true">
<switch ng-model="myModelAddPendingDocDetails.checkTracking" ng-init="myModelAddPendingDocDetails.checkTracking = true" class="green"></switch>
</div>
@ -524,10 +544,10 @@
<label>
</label>
<div>
<button tooltip="Upload" type="submit" ng-disabled="disableButton" tabindex="5" class="btn btn-xs btn-success">
<button tooltip="Upload" type="submit" ng-disabled="disableButton" tabindex="4002" class="btn btn-xs btn-success">
Add
</button>
<button tooltip="Reset" class="btn btn-warning btn-xs" tabindex="6" ng-click="studentEntrollPendingDocFORM.reset(FormPendDoc)">
<button tooltip="Reset" class="btn btn-warning btn-xs" tabindex="4003" ng-click="studentEntrollPendingDocFORM.reset(FormPendDoc)">
Reset
</button>
</div>
@ -542,34 +562,34 @@
</form>
</fieldset>
<div id="documentDetalils" ng-init="getStudentPendingEntrolDocDetails(p.StudentID)">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Details</th>
<th>Status</th>
<th class="center">Delete</th>
</tr>
</thead>
<tbody ng-repeat="penddoc in studentPendingDocumentsDetails">
<tr>
<td>{{penddoc.Details}}</td>
<td>
<span ng-if="penddoc.Status == 1">Open</span>
<span ng-if="penddoc.Status == 0">Close</span>
</td>
<td class="center">
<button tooltip="Delete" class="btn btn-xs btn-danger" ng-click="deletePendingDocDetails(penddoc, p.StudentID)">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Details</th>
<th>Status</th>
<th class="center">Delete</th>
</tr>
</thead>
<tbody ng-repeat="penddoc in studentPendingDocumentsDetails">
<tr>
<td>{{penddoc.Details}}</td>
<td>
<span ng-if="penddoc.Status == 1">Open</span>
<span ng-if="penddoc.Status == 0">Close</span>
</td>
<td class="center">
<button tooltip="Delete" class="btn btn-xs btn-danger" ng-click="deletePendingDocDetails(penddoc, p.StudentID)">
<i class="ti-trash"></i></button>
</td>
</tr>
</tbody>
</table>
<div ng-if="PendingDocNotFound">
<span style="color:tomato;"> No details found **</span>
</div>
</tr>
</tbody>
</table>
<div ng-if="PendingDocNotFound">
<span style="color:tomato;"> No details found **</span>
</div>
</div>
</div>
</tab>
</tabset>
</tab>

View File

@ -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="true"
show-button-bar="true"
/>
@ -640,7 +640,7 @@
<span class="error text-small block" ng-if="Form.university.$dirty && Form.university.$error.required">University is Required</span>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<!--<div class="col-md-4 form-group" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<label>
Course <span class="symbol required"></span>
@ -657,8 +657,45 @@
</div>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
</div>-->
<div class=" col-md-4" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<!--<div class="panel panel-transparent">
<div class="panel-body">-->
<div class=" form-group">
<label>
Course<span class="symbol required"></span>
</label>
<ui-select ng-model="myModelCourseObj.selected" name="course" theme="bootstrap" ng-required="true" ng-change="courseChange(myModelCourseObj)">
<ui-select-match placeholder="Select Course">
{{$select.selected.CourseName}}
</ui-select-match>
<ui-select-choices value repeat="item in courseDataAdd | filter: $select.search">
<div ng-bind-html="item.CourseName | highlight: $select.search"></div>
<small ng-bind-html="item.CourseCode | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
<!--</div>
</div>-->
</div>
<!--<div class="form-group">
<label>
Default
</label>
<ui-select ng-model="person.selected" theme="bootstrap">
<ui-select-match placeholder="Select in the list...">
{{$select.selected.name}}
</ui-select-match>
<ui-select-choices repeat="item in people | filter: $select.search">
<div ng-bind-html="item.name | highlight: $select.search"></div>
<small ng-bind-html="item.email | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
</div>-->
<!--<div class="col-md-4 form-group" ng-class="{'has-error':Form.batch.$dirty && Form.batch.$invalid, 'has-success':Form.batch.$valid}">
<label>
@ -679,65 +716,28 @@
</div>-->
</div>
<div class="row">
<div ng-repeat="check in courseDataAdd" ng-if="check.CourseID==myModelCourseAdd.course">
<div>
<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="26" 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>
<input type="text" placeholder="Enter Specilization 1" tabindex="26" class="form-control" name="specilization1" ng-model="myModelCourseAdd.specilization1"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </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="27" 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>-->
<input type="text" placeholder="Enter Specilization 2" tabindex="27" class="form-control" name="specilization2" ng-model="myModelCourseAdd.specilization2"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<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="myModelCourseAdd.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="28" 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="29" 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':Form.enrollmentid.$dirty && Form.enrollmentid.$invalid}">
<label>
Enrollment ID
@ -764,7 +764,7 @@
<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"
placeholder="Select Date of Joining" close-text="Close" required="required"
datepicker-position="top" max-date="todayDate" />
ng-change="getChangeDate()" 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>
</div>
@ -1210,7 +1210,7 @@
<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}">
<!--<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>
@ -1227,86 +1227,50 @@
</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>
Session <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 Session</option>
<option ng-repeat="item in batchData" value="{{item.SessionID}}">{{item.SessionName}}</option>
</select>
</div>
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.batch.$dirty && addCourseExistingStudentFORM.batch.$error.required">Batch is required</span>
</div>-->
<div class=" col-md-4" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<!--<div class="panel panel-transparent">
<div class="panel-body">-->
<div class=" form-group">
<label>
Course<span class="symbol required"></span>
</label>
<ui-select ng-model="myModelCourseObjExitStu.selected" name="course" theme="bootstrap" ng-required="true" ng-change="existStuCourseDetailsCheck(myModelCourseObjExitStu)">
<ui-select-match placeholder="Select Course">
{{$select.selected.CourseName}}
</ui-select-match>
<ui-select-choices value repeat="item in courseData | filter: $select.search">
<div ng-bind-html="item.CourseName | highlight: $select.search"></div>
<small ng-bind-html="item.CourseCode | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
<!--</div>
</div>-->
</div>
</div>
<div class="row">
<div ng-repeat="check in courseData" ng-if="check.CourseID==myModelCourse.course">
<div >
<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>
<input type="text" placeholder="Enter Specilization 1" tabindex="27" class="form-control" name="specilization1" ng-model="myModelCourse.specilization1"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </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>-->
<input type="text" placeholder="Enter Specilization 2" tabindex="28" class="form-control" name="specilization2" ng-model="myModelCourse.specilization2"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
</div>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':addCourseExistingStudentFORM.enrollmentid.$dirty && addCourseExistingStudentFORM.enrollmentid.$invalid}">
@ -1335,6 +1299,7 @@
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"
ng-change="getDOJchangesOnExistingStudentView()"
/>
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.dateofjoining.$dirty && addCourseExistingStudentFORM.dateofjoining.$error.required">Date of Joining is required</span>

View File

@ -244,7 +244,7 @@
<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"
ng-click="setEditId(p.StudentID);">-->
<i class="ti-user" tooltip="Personal Details" ng-click="setEditId(p.StudentID);"></i>
<i class="ti-user" tooltip="Personal Details" id="personalDetailButton" ng-click="setEditId(p.StudentID);"></i>
<!--<input type=button class="btn btn-blue btn-xs" id="editCourseRowBtn{{p.StaffID}}" value="Course Details" ng-click="setEditCourseId(p.StudentID);">-->
<i class="ti-write" tooltip="Course Details" ng-click="setEditCourseId(p.StudentID);"></i>
</td>
@ -429,7 +429,7 @@
<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="true"
show-button-bar="true"
/>
@ -675,7 +675,30 @@
<span class="error text-small block" ng-if="Form.university.$dirty && Form.university.$error.required">University is Required</span>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<div class=" col-md-4" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<!--<div class="panel panel-transparent">
<div class="panel-body">-->
<div class=" form-group">
<label>
Course<span class="symbol required"></span>
</label>
<ui-select ng-model="myModelCourseObj.selected" name="course" theme="bootstrap" ng-required="true" ng-change="courseChange(myModelCourseObj)">
<ui-select-match placeholder="Select Course">
{{$select.selected.CourseName}}
</ui-select-match>
<ui-select-choices value repeat="item in courseDataAdd | filter: $select.search">
<div ng-bind-html="item.CourseName | highlight: $select.search"></div>
<small ng-bind-html="item.CourseCode | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
<!--</div>
</div>-->
</div>
<!--<div class="col-md-4 form-group" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<label>
Course <span class="symbol required"></span>
@ -692,99 +715,32 @@
</div>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
<!--<div class="col-md-4 form-group" ng-class="{'has-error':Form.batch.$dirty && Form.batch.$invalid, 'has-success':Form.batch.$valid}">
<label>
Session <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="29" name="batch" ng-model="myModelCourseAdd.batch" class="cs-select cs-skin-elastic"
required>
<option value="" disabled selected>Select Session</option>
<option ng-repeat="item in batchDataAdd" value="{{item.SessionID}}">{{item.SessionName}}</option>
</select>
</div>
<span class="error text-small block" ng-if="Form.batch.$dirty && Form.batch.$error.required">Session is required</span>
</div>-->
</div>
<div class="row">
<div ng-repeat="check in courseDataAdd" ng-if="check.CourseID==myModelCourseAdd.course">
<div>
<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="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>-->
<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="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>-->
<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="myModelCourseAdd.course==''">
<div class="col-md-4 form-group"
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
<label>
<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="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>-->
<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>
<input type="text" placeholder="Enter Specilization 1" tabindex="26" class="form-control" name="specilization1" ng-model="myModelCourseAdd.specilization1"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </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="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>-->
<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>-->
<input type="text" placeholder="Enter Specilization 2" tabindex="27" class="form-control" name="specilization2" ng-model="myModelCourseAdd.specilization2"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/" />
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
</div>
</div>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.enrollmentid.$dirty && Form.enrollmentid.$invalid}">
<label>
Enrollment ID
@ -810,7 +766,7 @@
<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"
ng-change="getChangeDate()" max-date="todayDate"
/>
<span class="error text-small block" ng-if="Form.dateofjoining.$dirty && Form.dateofjoining.$error.required">Date of Joining is required</span>
@ -969,7 +925,7 @@
<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)"
close-text="Close" required="required"
show-button-bar="false" max-date="currentDate" />
@ -1258,7 +1214,7 @@
<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}">
<!--<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>
@ -1275,88 +1231,55 @@
</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>
Session <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 Session</option>
<option ng-repeat="item in batchData" value="{{item.SessionID}}">{{item.SessionName}}</option>
</select>
</div>
<span class="error text-small block" ng-if="addCourseExistingStudentFORM.batch.$dirty && addCourseExistingStudentFORM.batch.$error.required">Session is required</span>
</div>-->
<div class=" col-md-4" ng-class="{'has-error':Form.course.$dirty && Form.course.$invalid, 'has-success':Form.course.$valid}">
<!--<div class="panel panel-transparent">
<div class="panel-body">-->
<div class=" form-group">
<label>
Course<span class="symbol required"></span>
</label>
<ui-select ng-model="myModelCourseObjExitStu.selected" name="course" theme="bootstrap" ng-required="true" ng-change="existStuCourseDetailsCheck(myModelCourseObjExitStu)">
<ui-select-match placeholder="Select Course">
{{$select.selected.CourseName}}
</ui-select-match>
<ui-select-choices value repeat="item in courseData | filter: $select.search">
<div ng-bind-html="item.CourseName | highlight: $select.search"></div>
<small ng-bind-html="item.CourseCode | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
</div>
<!--</div>
</div>-->
</div>
</div>
<div class="row">
<div ng-repeat="check in courseData" ng-if="check.CourseID==myModelCourse.course">
<div >
<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>
<input type="text" placeholder="Enter Specilization 1" tabindex="27" class="form-control" name="specilization1" ng-model="myModelCourse.specilization1"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<span class="error text-small block" ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </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>-->
<input type="text" placeholder="Enter Specilization 2" tabindex="28" class="form-control" name="specilization2" ng-model="myModelCourse.specilization2"
ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<span class="error text-small block" ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </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
@ -1382,7 +1305,7 @@
<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"
ng-change="getDOJchangesOnExistingStudentView()" 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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB