Commit 5d8f2b68 authored by Prayas Jain's avatar Prayas Jain

Updated_Css

parent 413e9de8
...@@ -441,6 +441,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -441,6 +441,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
var today = new Date(); var today = new Date();
$scope.addTab = function () { $scope.addTab = function () {
$scope.alertMsg ="";
if(! (new Date(dataToPass.projectEndDate) > today) ){ if(! (new Date(dataToPass.projectEndDate) > today) ){
$mdDialog.show($mdDialog.alert({ $mdDialog.show($mdDialog.alert({
skipHide: true, skipHide: true,
...@@ -640,7 +641,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -640,7 +641,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
'Lead' ] 'Lead' ]
}, },
{ field: 'designation', resourceRole: 'Designation', enableColumnMenu: false, enableSorting: false,enableFiltering:false }, { field: 'designation', displayName: 'Designation', enableColumnMenu: false, enableSorting: false,enableFiltering:false },
{ {
name: 'billableStatus', displayName: 'Billability ', enableColumnMenu: false, enableSorting: false ,enableFiltering:false, name: 'billableStatus', displayName: 'Billability ', enableColumnMenu: false, enableSorting: false ,enableFiltering:false,
cellTemplate: '<div ng-if="!row.entity.editrow">{{COL_FIELD}}</div><div ng-if="row.entity.editrow" class="grid-Dropdown"><md-select ng-model="MODEL_COL_FIELD" name="empBillableStatus" append-to-body="true">' cellTemplate: '<div ng-if="!row.entity.editrow">{{COL_FIELD}}</div><div ng-if="row.entity.editrow" class="grid-Dropdown"><md-select ng-model="MODEL_COL_FIELD" name="empBillableStatus" append-to-body="true">'
...@@ -652,10 +653,10 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -652,10 +653,10 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
'Reserved' , 'Reserved' ,
'Trainee' ] 'Trainee' ]
}, },
{ field: 'billingStartDate', displayName: 'Start Date', enableColumnMenu: false, enableSorting: false , cellFilter:'date:"dd-MMM-yyyy"',enableFiltering:false, width:160, { name: 'billingStartDate', displayName: 'Start Date', enableColumnMenu: false, enableSorting: false , cellFilter:'date:"dd-MMM-yyyy"',enableFiltering:false, width:160,
cellTemplate: '<div ng-if="!row.entity.editrow">{{COL_FIELD | date:"dd-MMM-yyyy"}}</div><div ng-if="row.entity.editrow"><md-datepicker ng-model="MODEL_COL_FIELD" md-placeholder="Plase select Date " id="newBillingStartDate " md-min-date="minDate "md-max-date="maxDate " name="newBillingStartDate"></md-datepicker></div>'}, cellTemplate: '<div ng-if="!row.entity.editrow">{{COL_FIELD | date:"dd-MMM-yyyy"}}</div><div ng-if="row.entity.editrow"><md-datepicker ng-model="MODEL_COL_FIELD" md-placeholder="Select Date" id="newBillingStartDate " name="newBillingStartDate"></md-datepicker></div>'},
{ field: 'billingEndDate', displayName: 'End Date', enableColumnMenu: false, enableSorting: false , cellFilter:'date:"dd-MMM-yyyy"',enableFiltering:false, width:160, { field: 'billingEndDate', displayName: 'End Date', enableColumnMenu: false, enableSorting: false , cellFilter:'date:"dd-MMM-yyyy"',enableFiltering:false, width:160,
cellTemplate: '<div ng-if="!row.entity.editrow">{{COL_FIELD | date:"dd-MMM-yyyy"}}</div><div ng-if="row.entity.editrow"><md-datepicker ng-model="MODEL_COL_FIELD" id="endDate " name="endDate">{{MODEL_COL_FIELD}}</md-datepicker></div>'}, cellTemplate: '<div ng-if="!row.entity.editrow">{{COL_FIELD | date:"dd-MMM-yyyy"}}</div><div ng-if="row.entity.editrow"><md-datepicker ng-model="MODEL_COL_FIELD" md-placeholder="Select Date" id="endDate " name="endDate"></md-datepicker></div>'},
{name : 'Actions', displayName: 'Actions',cellTemplate: getCellTemplate1, enableColumnMenu: false, enableSorting: false, width:100,enableFiltering: false} {name : 'Actions', displayName: 'Actions',cellTemplate: getCellTemplate1, enableColumnMenu: false, enableSorting: false, width:100,enableFiltering: false}
] ]
}; };
...@@ -716,10 +717,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -716,10 +717,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
$scope.edit = function (rowd) { $scope.edit = function (rowd) {
var row = rowd.entity; var row = rowd.entity;
var index = $scope.gridOptions.data.indexOf(row); var index = $scope.gridOptions.data.indexOf(row);
if($scope.previousRow){ if($scope.previousRow){
$scope.rowCompare(rowd); $scope.rowCompare(rowd);
} }
...@@ -762,11 +761,11 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -762,11 +761,11 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
for(var i=0; i<allRows.length; i++) { for(var i=0; i<allRows.length; i++) {
var newIndex = $scope.gridOptions.data.indexOf(allRows[i].entity) var newIndex = $scope.gridOptions.data.indexOf(allRows[i].entity)
if(newIndex == $scope.previousRowIndex){ if(newIndex == $scope.previousRowIndex){
allRows[i].entity.resourceRole = $scope.previousRow.resourceRole; allRows[i].entity.resourceRole = $scope.previousRow.resourceRole;
allRows[i].entity.billableStatus = $scope.previousRow.billableStatus; allRows[i].entity.billableStatus = $scope.previousRow.billableStatus;
allRows[i].entity.billingStartDate = $scope.previousRow.billingStartDate; allRows[i].entity.billingStartDate = $scope.previousRow.billingStartDate;
allRows[i].entity.billingEndDate = $scope.previousRow.billingEndDate allRows[i].entity.billingEndDate = $scope.previousRow.billingEndDate;
$scope.previousRow = angular.copy(row.entity); $scope.previousRow = angular.copy(row.entity);
} }
} }
...@@ -1492,12 +1491,10 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1492,12 +1491,10 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
ok: 'ok', ok: 'ok',
cancel: 'cancel' cancel: 'cancel'
})).then(function () { })).then(function () {
$scope.alertMsg = "";
$mdDialog.hide('Cancelled'); $mdDialog.hide('Cancelled');
}) })
} }
else { else {
$scope.alertMsg = "";
$mdDialog.hide('Cancelled'); $mdDialog.hide('Cancelled');
} }
} }
......
...@@ -636,9 +636,9 @@ cursor: pointer; ...@@ -636,9 +636,9 @@ cursor: pointer;
.grid-Dropdown md-select { .grid-Dropdown md-select {
margin : 0px; margin : 0px;
} }
.icon-disable { .employees-login {
background-color: green; height: calc(100vh - 254px) !important;
} }
.iconenable { .import-data {
background-color: red; height: calc(100vh - 100px) !important;
} }
\ No newline at end of file
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<div class="form-group"> <div class="form-group">
<div class="form-inline col-lg-12"> <div class="form-inline col-lg-12">
<div id="gridTest" ui-grid="gridOptions" ui-grid-pagination <div id="gridTest" ui-grid="gridOptions" ui-grid-pagination
class="grid"> class="grid employees-login">
<div class="watermark" ng-show="!gridOptions.data.length">Search <div class="watermark" ng-show="!gridOptions.data.length">Search
by Employee ID/Name/Email ID</div> by Employee ID/Name/Email ID</div>
</div> </div>
......
<div class="md-padding" id="popupContainer" ng-controller="exportDataController"> <div class="md-padding import-data" id="popupContainer" ng-controller="exportDataController">
<div class="container-fluid mainDivHeaderClass"> <div class="container-fluid mainDivHeaderClass">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<div id="gridTest" class="grid-half-view" ui-grid="gridOptions " ui-grid-edit ui-grid-pagination style="width:99%;height:230px;margin-left:10px; "> <div id="gridTest" class="grid-half-view" ui-grid="gridOptions " ui-grid-edit ui-grid-pagination style="width:99%;height:230px;margin-left:10px; ">
<div class="watermark " ng-show="!gridOptions.data.length ">No data available</div> <div class="watermark " ng-show="!gridOptions.data.length ">No data available</div>
</div> </div>
<div role="alert"> <div ng-if ='templateTitle == "View"' role="alert">
<span style="color: red; ">{{alertMsg}}</span> <span style="color: red; ">{{alertMsg}}</span>
</div> </div>
</div> </div>
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
</tr> </tr>
</table> </table>
<div role="alert"> <div ng-if ='templateTitle == "Add"' role="alert">
<span style="color: red; ">{{alertMsg}}</span> <span style="color: red; ">{{alertMsg}}</span>
</div> </div>
</div> </div>
......
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