Commit 92498f16 authored by vsunke-nisum-com's avatar vsunke-nisum-com Committed by tdutta-nisum-com

FEATURE/DEFECT-ADDTEAMMATE (#108)

parent 6afbbb88
...@@ -522,10 +522,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -522,10 +522,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}).then(function mySuccess(response) { }).then(function mySuccess(response) {
$scope.gridOptions.data = response.data; $scope.gridOptions.data = response.data;
for(i=0;i<response.data.length;i++){ for(i=0;i<response.data.length;i++){
if(response.data[i].role == 'Employee'){ if(response.data[i].role == 'Lead'){
$scope.gridOptions.data[i].role = "Individual Contributor";
}else{
$scope.gridOptions.data[i].role = "Lead"; $scope.gridOptions.data[i].role = "Lead";
}else{
$scope.gridOptions.data[i].role = "Individual Contributor";
} }
} }
}, function myError(response) { }, function myError(response) {
...@@ -1009,10 +1009,12 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -1009,10 +1009,12 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}else if($scope.startDate == undefined) { }else if($scope.startDate == undefined) {
$scope.alertMsg = "Please select Start Date"; $scope.alertMsg = "Please select Start Date";
angular.element(document.getElementById('startDate')).focus(); angular.element(document.getElementById('startDate')).focus();
}else if($scope.endDate == undefined) { }
$scope.alertMsg = "Please select End Date"; // else if($scope.endDate == undefined) {
angular.element(document.getElementById('endDate')).focus(); // $scope.alertMsg = "Please select End Date";
}else if($scope.newBillingStartDate == undefined){ // angular.element(document.getElementById('endDate')).focus();
// }
else if($scope.newBillingStartDate == undefined){
$scope.alertMsg = "Please select new Billing StartDate"; $scope.alertMsg = "Please select new Billing StartDate";
angular.element(document.getElementById('newBillingStartDate')).focus(); angular.element(document.getElementById('newBillingStartDate')).focus();
} }
...@@ -1285,10 +1287,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -1285,10 +1287,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$scope.gridOptions.data.push(record); $scope.gridOptions.data.push(record);
console.log($scope.gridOptions.data); console.log($scope.gridOptions.data);
for(i=0;i<$scope.gridOptions.data.length;i++){ for(i=0;i<$scope.gridOptions.data.length;i++){
if($scope.gridOptions.data[i].role == 'Employee'){ if($scope.gridOptions.data[i].role == 'Lead'){
$scope.gridOptions.data[i].role = "Individual Contributor";
}else{
$scope.gridOptions.data[i].role = "Lead"; $scope.gridOptions.data[i].role = "Lead";
}else{
$scope.gridOptions.data[i].role = "Individual Contributor";
} }
} }
} }
...@@ -1325,10 +1327,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS ...@@ -1325,10 +1327,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}).then(function mySuccess(response) { }).then(function mySuccess(response) {
$scope.gridOptions.data = response.data; $scope.gridOptions.data = response.data;
for(i=0;i<$scope.gridOptions.data.length;i++){ for(i=0;i<$scope.gridOptions.data.length;i++){
if($scope.gridOptions.data[i].role == 'Employee'){ if($scope.gridOptions.data[i].role == 'Lead'){
$scope.gridOptions.data[i].role = "Individual Contributor";
}else{
$scope.gridOptions.data[i].role = "Lead"; $scope.gridOptions.data[i].role = "Lead";
}else{
$scope.gridOptions.data[i].role = "Individual Contributor";
} }
} }
}, function myError(response) { }, function myError(response) {
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<td colspan="8"><input type="text" class="form-control" <td colspan="8"><input type="text" class="form-control"
id="empEmail" name="empEmail" ng-model="empEmail" id="empEmail" name="empEmail" ng-model="empEmail"
placeholder="Email ID" ng-blur="validateEmailId()" placeholder="Email ID" ng-blur="validateEmailId()"
ng-disabled="isDisabled" /></td> ng-disabled="isDisabled" style="text-transform: lowercase;"/></td>
</tr> </tr>
<tr> <tr>
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
</md-select> </md-select>
<table> <table>
<tr ng-show="empBillableStatus"> <tr ng-show="empBillableStatus">
<td>Current Billability Start Date </td> <td>{{empBillableStatus}} Start Date </td>
<td> <td>
<md-datepicker ng-model="newBillingStartDate" md-placeholder="Plase select Date " id="newBillingStartDate " md-min-date="minDate " md-max-date="maxDate " <md-datepicker ng-model="newBillingStartDate" md-placeholder="Plase select Date " id="newBillingStartDate " md-min-date="minDate " md-max-date="maxDate "
onkeydown="return false " ng-change="currentBillabilityDateChange()"name="newBillingStartDate"></md-datepicker> onkeydown="return false " ng-change="currentBillabilityDateChange()"name="newBillingStartDate"></md-datepicker>
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
<table> <table>
<tr ng-show="empBillableStatus"> <tr ng-show="empBillableStatus">
<td>Current Billability Start Date </td> <td>{{empBillableStatus}} Start Date </td>
<td> <td>
<md-datepicker ng-model="newBillingStartDate" md-placeholder="Please select Date " id="newBillingStartDate " md-min-date="minDate " md-max-date="maxDate " <md-datepicker ng-model="newBillingStartDate" md-placeholder="Please select Date " id="newBillingStartDate " md-min-date="minDate " md-max-date="maxDate "
onkeydown="return false" name="newBillingStartDate"></md-datepicker> onkeydown="return false" name="newBillingStartDate"></md-datepicker>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment