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
596c479e
Commit
596c479e
authored
Jun 14, 2019
by
Soumya Gouri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added date validation from UI side
parent
6e6ba294
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+4
-2
projectTeamDetails.html
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
+7
-7
No files found.
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
596c479e
...
@@ -653,9 +653,9 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
...
@@ -653,9 +653,9 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
'Trainee'
]
'Trainee'
]
},
},
{
name
:
'billingStartDate'
,
width
:
"*"
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
,
width
:
160
,
{
name
:
'billingStartDate'
,
width
:
"*"
,
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="Select Date" id="newBillingStartDate
" name="newBillingStart
Date"></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-min-date="grid.appScope.minBillingDate" md-max-date="grid.appScope.maxBilling
Date"></md-datepicker></div>'
},
{
field
:
'billingEndDate'
,
width
:
"*"
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
enableFiltering
:
false
,
width
:
160
,
{
field
:
'billingEndDate'
,
width
:
"*"
,
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" md-placeholder="Select Date" id="endDate
" name="end
Date"></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-min-date="row.entity.billingStartDate" md-max-date="grid.appScope.maxBilling
Date"></md-datepicker></div>'
},
{
name
:
'Actions'
,
width
:
"*"
,
displayName
:
'Actions'
,
cellTemplate
:
getCellTemplate1
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
"*"
}
{
name
:
'Actions'
,
width
:
"*"
,
displayName
:
'Actions'
,
cellTemplate
:
getCellTemplate1
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableFiltering
:
false
,
width
:
"*"
}
]
]
};
};
...
@@ -1862,5 +1862,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
...
@@ -1862,5 +1862,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
}
}
return
false
;
return
false
;
}
}
$scope
.
minBillingDate
=
new
Date
(
$scope
.
projectStartDate
);
$scope
.
maxBillingDate
=
new
Date
(
$scope
.
projectEndDate
);
}
}
});
});
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
View file @
596c479e
<md-dialog
aria-label=
"Team Details"
style=
"
height:auto;"
class=
"md-dialog-custom-height viewTeamDetails
"
ng-init=
"getEmployeeDetails()"
id=
"projectTeamDetails"
>
<md-dialog
aria-label=
"Team Details"
style=
"
width:950px;height:auto;"
class=
"md-dialog-custom-height
"
ng-init=
"getEmployeeDetails()"
id=
"projectTeamDetails"
>
<form
ng-cloak
name=
"myForm "
>
<form
ng-cloak
name=
"myForm "
>
<md-toolbar>
<md-toolbar>
<div
class=
"md-toolbar-tools "
style=
"background: cadetblue; "
>
<div
class=
"md-toolbar-tools "
style=
"background: cadetblue; "
>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<b>
Project Start Date:
</b>
{{projectStartDate | date : 'dd-MMM-yyyy'}}
<b>
Project Start Date:
</b>
{{projectStartDate | date : 'dd-MMM-yyyy'}}
</p>
</p>
<p>
<p>
<b>
Project End Date:
</b>
{{projectEndDate | date : 'dd-MMM-yyyy'}}
<b>
Project End Date:
</b>
{{projectEndDate | date : 'dd-MMM-yyyy'}}
</p>
</p>
</div>
</div>
<div
class=
"col-xs-6 text-right "
>
<div
class=
"col-xs-6 text-right "
>
...
@@ -39,14 +39,14 @@
...
@@ -39,14 +39,14 @@
</div>
</div>
</div>
</div>
<div
class=
"form-group col-lg-
9 col-md-9 col-sm-9
col-xs-12"
></div>
<div
class=
"form-group col-lg-
7 col-md-7 col-sm-7
col-xs-12"
></div>
<div
class=
"row col-lg-12"
style=
"margin-left: 0px;"
>
<div
class=
"row col-lg-12"
style=
"margin-left: 0px;"
>
<input
type=
"radio"
ng-model=
"status"
value=
"Active"
ng-click=
"getTeamMates()"
>
Active
<input
type=
"radio"
ng-model=
"status"
value=
"Active"
ng-click=
"getTeamMates()"
>
Active
<input
type=
"radio"
ng-model=
"status"
value=
"InActive"
ng-click=
"getTeamMates()"
>
Inactive
<input
type=
"radio"
ng-model=
"status"
value=
"InActive"
ng-click=
"getTeamMates()"
>
Inactive
<input
type=
"radio"
ng-model=
"status"
value=
"Both"
ng-click=
"getTeamMates()"
>
Both
<input
type=
"radio"
ng-model=
"status"
value=
"Both"
ng-click=
"getTeamMates()"
>
Both
</div>
</div>
<div
id=
"gridTest"
class=
"grid-half-view"
ui-grid=
"gridOptions "
ui-grid-edit
ui-grid-pagination
style=
"width:9
4.5%;margin-left:25
px; "
>
<div
id=
"gridTest"
class=
"grid-half-view"
ui-grid=
"gridOptions "
ui-grid-edit
ui-grid-pagination
style=
"width:9
9%;height:230px;margin-left:10
px; "
>
<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
ng-if =
'templateTitle == "View"'
role=
"alert"
>
<div
ng-if =
'templateTitle == "View"'
role=
"alert"
>
...
@@ -152,8 +152,8 @@
...
@@ -152,8 +152,8 @@
<tr
ng-show=
"empBillableStatus"
>
<tr
ng-show=
"empBillableStatus"
>
<td
class=
"Employee"
>
{{empBillableStatus}} Start Date
</td>
<td
class=
"Employee"
>
{{empBillableStatus}} Start Date
</td>
<td>
<td>
<md-datepicker
ng-model=
"newBillingStartDate"
md-placeholder=
"Please select Date "
id=
"newBillingStartDate "
md-min-date=
"min
Date
"
<md-datepicker
ng-model=
"newBillingStartDate"
md-placeholder=
"Please select Date "
id=
"newBillingStartDate "
md-min-date=
"min
BillingDate
"
md-max-date=
"max
Date
"
onkeydown=
"return false "
ng-change=
"currentBillabilityDateChange()"
name=
"newBillingStartDate"
></md-datepicker>
md-max-date=
"max
BillingDate
"
onkeydown=
"return false "
ng-change=
"currentBillabilityDateChange()"
name=
"newBillingStartDate"
></md-datepicker>
</td>
</td>
</tr>
</tr>
<!-- <tr>
<!-- <tr>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<tr
ng-show=
"empBillableStatus"
>
<tr
ng-show=
"empBillableStatus"
>
<td
class=
"Employee"
>
{{empBillableStatus}} End Date
</td>
<td
class=
"Employee"
>
{{empBillableStatus}} End Date
</td>
<td>
<td>
<md-datepicker
ng-model=
"endDate"
md-placeholder=
"Please select Date"
id=
"endDate "
md-min-date=
"
minDate "
md-max-date=
"max
Date "
<md-datepicker
ng-model=
"endDate"
md-placeholder=
"Please select Date"
id=
"endDate "
md-min-date=
"
newBillingStartDate "
md-max-date=
"maxBilling
Date "
onkeydown=
"return false "
name=
"endDate"
></md-datepicker>
onkeydown=
"return false "
name=
"endDate"
></md-datepicker>
</td>
</td>
</tr>
</tr>
...
...
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