main nav details changes : kdk
This commit is contained in:
parent
cc726d115f
commit
dbc0cf50d6
@ -104,8 +104,8 @@
|
||||
"MAIN": "UPDATE STATUS ",
|
||||
"STUDYMATERIAL": "STUDY MATERIAL",
|
||||
"ANSWERBOOKLET": "ANSWER BOOKLET",
|
||||
"CERTIFICATION": "MARK CARD",
|
||||
"APPLICATION" : "DOCUMENTS"
|
||||
"MARKCARD": "MARK CARD",
|
||||
"CERTIFICATE" : "CERTIFICATE"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
||||
@ -156,11 +156,11 @@ app.constant('JS_REQUIRES', {
|
||||
/*
|
||||
* student Certification status updation
|
||||
* */
|
||||
'certificationStatusCtrl': 'assets/js/controllers/certificationStatusCtrl.js',
|
||||
'markcardStatusCtrl': 'assets/js/controllers/markcardStatusCtrl.js',
|
||||
/*
|
||||
* student Certification status updation
|
||||
* */
|
||||
'applicationStatusCtrl': 'assets/js/controllers/applicationStatusCtrl.js',
|
||||
'certificateStatusCtrl': 'assets/js/controllers/certificateStatusCtrl.js',
|
||||
/*
|
||||
* Certificate Type
|
||||
* */
|
||||
|
||||
@ -315,22 +315,22 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
|
||||
label: 'Answer Booklet'
|
||||
},
|
||||
// resolve: loadSequence('wizardCtrl')
|
||||
}).state('app.student.status.certificationstatus', {
|
||||
url: '/certificationstatus',
|
||||
templateUrl: "assets/views/status-update/certification_status.html",
|
||||
}).state('app.student.status.markcard', {
|
||||
url: '/markcard',
|
||||
templateUrl: "assets/views/status-update/markcard_status.html",
|
||||
title: 'Mark Card',
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'certificationStatusCtrl'),
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'markcardStatusCtrl'),
|
||||
ncyBreadcrumb: {
|
||||
label: 'Mark Card'
|
||||
},
|
||||
// resolve: loadSequence('wizardCtrl')
|
||||
}).state('app.student.status.applicationstatus', {
|
||||
url: '/applicationstatus',
|
||||
templateUrl: "assets/views/status-update/application_status.html",
|
||||
title: 'Documents Status',
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'applicationStatusCtrl'),
|
||||
}).state('app.student.status.certificate', {
|
||||
url: '/certificate',
|
||||
templateUrl: "assets/views/status-update/certificate_status.html",
|
||||
title: 'Certificate Status',
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'certificateStatusCtrl'),
|
||||
ncyBreadcrumb: {
|
||||
label: 'Documents Status'
|
||||
label: 'Certificate Status'
|
||||
},
|
||||
// resolve: loadSequence('wizardCtrl')
|
||||
}).state('app.status.application', {
|
||||
|
||||
@ -28,32 +28,29 @@ app.controller('certificateStatusCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
var localDetail = JSON.parse(localStorage.getItem('localObj'));
|
||||
var localDetails = ipCookie('cookiechk');
|
||||
|
||||
const localUpdateStatus = 'APPICATION_STATUS';
|
||||
const localUpdateStatus = 'CERTIFICATE_STATUS';
|
||||
$scope.localTypeSuperAdmin = false;
|
||||
$scope.localBranchDetails = '';
|
||||
|
||||
$scope.init = function () {
|
||||
|
||||
// var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||
|
||||
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||
|
||||
const LOCALTYPE = logcheck.localType;
|
||||
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||
console.log("if");
|
||||
}else {
|
||||
if(logcheck != null && LOCALTYPE !='R001') {
|
||||
console.log("else if");
|
||||
$state.go('app.dashboard');
|
||||
} else {
|
||||
|
||||
console.log("else else");
|
||||
//ipCookie.remove('cookiechk');
|
||||
window.localStorage.clear();
|
||||
$state.go('login.signin');
|
||||
}
|
||||
}
|
||||
|
||||
// const LOCALTYPE = logcheck.localType;
|
||||
// if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||
// console.log("if");
|
||||
// }else {
|
||||
// if(logcheck != null && LOCALTYPE !='R001') {
|
||||
// console.log("else if");
|
||||
// $state.go('app.dashboard');
|
||||
// } else {
|
||||
|
||||
// console.log("else else");
|
||||
// //ipCookie.remove('cookiechk');
|
||||
// window.localStorage.clear();
|
||||
// $state.go('login.signin');
|
||||
// }
|
||||
// }
|
||||
|
||||
if (localDetail != null) {
|
||||
if (localDetails.localType === 'R004') {
|
||||
|
||||
@ -32,28 +32,21 @@ app.controller('markcardStatusCtrl', ["$scope", "toaster", "$filter", "ngTablePa
|
||||
|
||||
$scope.init = function () {
|
||||
|
||||
// const LOCALTYPE = localDetail.localType;
|
||||
// if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||
// console.log("if");
|
||||
// }else {
|
||||
// if(localDetail != null && LOCALTYPE !='R001') {
|
||||
// console.log("else if");
|
||||
// $state.go('app.dashboard');
|
||||
// } else {
|
||||
|
||||
|
||||
const LOCALTYPE = localDetail.localType;
|
||||
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||
console.log("if");
|
||||
}else {
|
||||
if(localDetail != null && LOCALTYPE !='R001') {
|
||||
console.log("else if");
|
||||
$state.go('app.dashboard');
|
||||
} else {
|
||||
|
||||
console.log("else else");
|
||||
//ipCookie.remove('cookiechk');
|
||||
//window.localStorage.clear();
|
||||
$state.go('login.signin');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// console.log("else else");
|
||||
// //ipCookie.remove('cookiechk');
|
||||
// //window.localStorage.clear();
|
||||
// $state.go('login.signin');
|
||||
// }
|
||||
// }
|
||||
|
||||
if (localDetail != null) {
|
||||
if (localDetails.localType === 'R004') {
|
||||
|
||||
@ -199,13 +199,13 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkSuperAdmin()">
|
||||
Certification
|
||||
<a ui-sref="app.student.status.markcard" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkSuperAdmin()">
|
||||
MarkCard
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkSuperAdmin()">
|
||||
Application
|
||||
<a ui-sref="app.student.status.certificate" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkSuperAdmin()">
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@ -650,13 +650,13 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkAdmin()">
|
||||
Certification
|
||||
<a ui-sref="app.student.status.markcard" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkAdmin()">
|
||||
Markcard
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkAdmin()">
|
||||
Application
|
||||
<a ui-sref="app.student.status.certificate" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkAdmin()">
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@ -1025,13 +1025,13 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkStaff()">
|
||||
Certification
|
||||
<a ui-sref="app.student.status.markcard" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkStaff()">
|
||||
Markcard
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkStaff()">
|
||||
Application
|
||||
<a ui-sref="app.student.status.certificate" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkStaff()">
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@ -1292,13 +1292,13 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkStaff()">
|
||||
Certification
|
||||
<a ui-sref="app.student.status.markcard" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkStaff()">
|
||||
Markcard
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkStaff()">
|
||||
Application
|
||||
<a ui-sref="app.student.status.certificate" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkStaff()">
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user