Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
92498f16
Commit
92498f16
authored
Aug 03, 2018
by
vsunke-nisum-com
Committed by
tdutta-nisum-com
Aug 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FEATURE/DEFECT-ADDTEAMMATE (#108)
parent
6afbbb88
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+15
-13
newRoleTemplate.html
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
+1
-1
projectTeamDetails.html
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
+2
-2
No files found.
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
92498f16
...
...
@@ -522,10 +522,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
for
(
i
=
0
;
i
<
response
.
data
.
length
;
i
++
){
if
(
response
.
data
[
i
].
role
==
'Employee'
){
$scope
.
gridOptions
.
data
[
i
].
role
=
"Individual Contributor"
;
}
else
{
if
(
response
.
data
[
i
].
role
==
'Lead'
){
$scope
.
gridOptions
.
data
[
i
].
role
=
"Lead"
;
}
else
{
$scope
.
gridOptions
.
data
[
i
].
role
=
"Individual Contributor"
;
}
}
},
function
myError
(
response
)
{
...
...
@@ -1009,10 +1009,12 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}
else
if
(
$scope
.
startDate
==
undefined
)
{
$scope
.
alertMsg
=
"Please select Start Date"
;
angular
.
element
(
document
.
getElementById
(
'startDate'
)).
focus
();
}
else
if
(
$scope
.
endDate
==
undefined
)
{
$scope
.
alertMsg
=
"Please select End Date"
;
angular
.
element
(
document
.
getElementById
(
'endDate'
)).
focus
();
}
else
if
(
$scope
.
newBillingStartDate
==
undefined
){
}
// else if($scope.endDate == undefined) {
// $scope.alertMsg = "Please select End Date";
// angular.element(document.getElementById('endDate')).focus();
// }
else
if
(
$scope
.
newBillingStartDate
==
undefined
){
$scope
.
alertMsg
=
"Please select new Billing StartDate"
;
angular
.
element
(
document
.
getElementById
(
'newBillingStartDate'
)).
focus
();
}
...
...
@@ -1285,10 +1287,10 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$scope
.
gridOptions
.
data
.
push
(
record
);
console
.
log
(
$scope
.
gridOptions
.
data
);
for
(
i
=
0
;
i
<
$scope
.
gridOptions
.
data
.
length
;
i
++
){
if
(
$scope
.
gridOptions
.
data
[
i
].
role
==
'Employee'
){
$scope
.
gridOptions
.
data
[
i
].
role
=
"Individual Contributor"
;
}
else
{
if
(
$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
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
for
(
i
=
0
;
i
<
$scope
.
gridOptions
.
data
.
length
;
i
++
){
if
(
$scope
.
gridOptions
.
data
[
i
].
role
==
'Employee'
){
$scope
.
gridOptions
.
data
[
i
].
role
=
"Individual Contributor"
;
}
else
{
if
(
$scope
.
gridOptions
.
data
[
i
].
role
==
'Lead'
){
$scope
.
gridOptions
.
data
[
i
].
role
=
"Lead"
;
}
else
{
$scope
.
gridOptions
.
data
[
i
].
role
=
"Individual Contributor"
;
}
}
},
function
myError
(
response
)
{
...
...
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
View file @
92498f16
...
...
@@ -45,7 +45,7 @@
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
id=
"empEmail"
name=
"empEmail"
ng-model=
"empEmail"
placeholder=
"Email ID"
ng-blur=
"validateEmailId()"
ng-disabled=
"isDisabled"
/></td>
ng-disabled=
"isDisabled"
style=
"text-transform: lowercase;"
/></td>
</tr>
<tr>
...
...
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
View file @
92498f16
...
...
@@ -109,7 +109,7 @@
</md-select>
<table>
<tr
ng-show=
"empBillableStatus"
>
<td>
Current Billability
Start Date
</td>
<td>
{{empBillableStatus}}
Start Date
</td>
<td>
<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>
...
...
@@ -214,7 +214,7 @@
<table>
<tr
ng-show=
"empBillableStatus"
>
<td>
Current Billability
Start Date
</td>
<td>
{{empBillableStatus}}
Start Date
</td>
<td>
<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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment