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
159187de
Commit
159187de
authored
Feb 13, 2020
by
Prayas Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Designation Page Validation Message and Css
parent
c09dddb7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
14 deletions
+21
-14
ReportsController.java
...n/java/com/nisum/myteam/controller/ReportsController.java
+0
-1
DesignationsController.js
...main/webapp/WEB-INF/controllers/DesignationsController.js
+7
-8
custom-theme.css
src/main/webapp/WEB-INF/css/custom-theme.css
+9
-0
addDesignation.html
src/main/webapp/WEB-INF/templates/addDesignation.html
+4
-4
newRoleTemplate.html
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
+1
-1
No files found.
src/main/java/com/nisum/myteam/controller/ReportsController.java
View file @
159187de
...
@@ -432,7 +432,6 @@ public class ReportsController {
...
@@ -432,7 +432,6 @@ public class ReportsController {
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ReportVo
allBillabilityReport
(
@RequestParam
(
"byType"
)
String
byType
,
public
ReportVo
allBillabilityReport
(
@RequestParam
(
"byType"
)
String
byType
,
@RequestParam
(
"onDate"
)
@DateTimeFormat
(
iso
=
DateTimeFormat
.
ISO
.
DATE
)
Date
onDate
)
throws
MyTeamException
{
@RequestParam
(
"onDate"
)
@DateTimeFormat
(
iso
=
DateTimeFormat
.
ISO
.
DATE
)
Date
onDate
)
throws
MyTeamException
{
System
.
out
.
println
(
"allBillabilityReport start"
);
return
reportService
.
getPieChartReport
(
byType
,
onDate
);
return
reportService
.
getPieChartReport
(
byType
,
onDate
);
}
}
...
...
src/main/webapp/WEB-INF/controllers/DesignationsController.js
View file @
159187de
myApp
.
controller
(
"designationsController"
,
function
(
$scope
,
appConfig
,
$http
,
uiGridConstants
,
$mdDialog
)
{
myApp
.
controller
(
"designationsController"
,
function
(
$scope
,
appConfig
,
$http
,
uiGridConstants
,
$mdDialog
)
{
var
TEXT_ENABLE
=
'
e
nable'
;
var
TEXT_ENABLE
=
'
E
nable'
;
var
TEXT_DISABLE
=
'
d
isable'
;
var
TEXT_DISABLE
=
'
D
isable'
;
var
TEXT_ENABLED
=
'
e
nabled'
;
var
TEXT_ENABLED
=
'
E
nabled'
;
var
TEXT_DISABLED
=
'
d
isabled'
;
var
TEXT_DISABLED
=
'
D
isabled'
;
var
actionsCellTemplate
=
'<div class="action-cell-template text-align-center" ng-show="grid.appScope.showActions(row)"><span id="action-container"><md-switch ng-model="row.entity.active" aria-label="Finished?" ng-change="grid.appScope.changeDesignationStatus(row,$event)" class="no-margin"></md-switch> <i class="fa fa-trash fa-2x delete-action-icon" aria-hidden="true" ng-show="!row.entity.active" ng-click="grid.appScope.deleteDesignation(row,$event)"></i></span></div>'
var
actionsCellTemplate
=
'<div class="action-cell-template text-align-center" ng-show="grid.appScope.showActions(row)"><span id="action-container"><md-switch ng-model="row.entity.active" aria-label="Finished?" ng-change="grid.appScope.changeDesignationStatus(row,$event)" class="no-margin"></md-switch> <i class="fa fa-trash fa-2x delete-action-icon" aria-hidden="true" ng-show="!row.entity.active" ng-click="grid.appScope.deleteDesignation(row,$event)"></i></span></div>'
...
@@ -143,13 +143,13 @@ myApp.controller("designationsController", function ($scope, appConfig, $http, u
...
@@ -143,13 +143,13 @@ myApp.controller("designationsController", function ($scope, appConfig, $http, u
}
}
var
isDesignationNameValid
=
function
(
designationName
)
{
var
isDesignationNameValid
=
function
(
designationName
)
{
let
pattern
=
/^
(
[
a-zA-Z
\d\s
-
]{1,30})
$/
;
let
pattern
=
/^
(
?!\d
+$
)(?:[
a-zA-Z0-9
][
a-zA-Z0-9
\s
-
]
*
)?
$/
;
if
(
!
Boolean
(
designationName
))
{
if
(
!
Boolean
(
designationName
))
{
$scope
.
newDesignationValidationMessage
=
"
d
esignation name can't be empty"
;
$scope
.
newDesignationValidationMessage
=
"
D
esignation name can't be empty"
;
return
false
;
return
false
;
}
}
else
if
(
!
pattern
.
test
(
designationName
))
{
else
if
(
!
pattern
.
test
(
designationName
))
{
$scope
.
newDesignationValidationMessage
=
"
designation name can contain alphanumeric, space and hyphen(-) upto 30 characters
"
;
$scope
.
newDesignationValidationMessage
=
"
Designation name can contain alphanumeric, space and hyphen(-) value
"
;
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
@@ -162,7 +162,6 @@ myApp.controller("designationsController", function ($scope, appConfig, $http, u
...
@@ -162,7 +162,6 @@ myApp.controller("designationsController", function ($scope, appConfig, $http, u
};
};
$scope
.
changeDesignationStatus
=
function
(
row
,
ev
)
{
$scope
.
changeDesignationStatus
=
function
(
row
,
ev
)
{
console
.
log
(
row
.
entity
);
let
designationData
=
row
.
entity
;
let
designationData
=
row
.
entity
;
let
action
=
(
!
designationData
.
active
)
?
TEXT_DISABLE
:
TEXT_ENABLE
;
let
action
=
(
!
designationData
.
active
)
?
TEXT_DISABLE
:
TEXT_ENABLE
;
...
...
src/main/webapp/WEB-INF/css/custom-theme.css
View file @
159187de
...
@@ -817,3 +817,12 @@ cursor: pointer;
...
@@ -817,3 +817,12 @@ cursor: pointer;
#manage-designation
md-switch
.md-checked
.md-ink-ripple
{
#manage-designation
md-switch
.md-checked
.md-ink-ripple
{
color
:
#333
;
/* selected switch ripple color */
color
:
#333
;
/* selected switch ripple color */
}
}
.add-designation-dialog
{
overflow
:
hidden
;
}
.add-designation-dialog
.designation-error-message
{
margin
:
5px
0
0
0
;
}
.error
{
color
:
red
;
}
\ No newline at end of file
src/main/webapp/WEB-INF/templates/addDesignation.html
View file @
159187de
...
@@ -11,14 +11,14 @@
...
@@ -11,14 +11,14 @@
</div>
</div>
</md-toolbar>
</md-toolbar>
<md-dialog-content>
<md-dialog-content
class=
"add-designation-dialog"
>
<div
class=
"md-dialog-content"
>
<div
class=
"md-dialog-content"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"row"
>
<div
class=
"row"
>
<input
type=
"text"
class=
"form-control"
id=
"designationName"
name=
"designationName"
<input
type=
"text"
class=
"form-control"
id=
"designationName"
name=
"designationName"
ng-model=
"newDesignationName"
placeholder=
"
designation name (contains alphanumerics, space, -)
"
ng-disabled=
"false"
/>
ng-model=
"newDesignationName"
placeholder=
"
Enter Designation name
"
ng-disabled=
"false"
/>
<div
role=
"alert"
style=
"text-align: center
"
>
<div
role=
"alert"
class=
"designation-error-message
"
>
<span
class=
"error"
style=
"color: red;"
>
{{newDesignationValidationMessage}}
</span>
<span
class=
"error"
>
{{newDesignationValidationMessage}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
View file @
159187de
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
<md-dialog-actions
layout=
"row"
style=
"margin-bottom:20px;"
>
<md-dialog-actions
layout=
"row"
style=
"margin-bottom:20px;"
>
<div
role=
"alert"
class=
"col-sm-8 error-msg"
>
<div
role=
"alert"
class=
"col-sm-8 error-msg"
>
<span
ng-if=
"errorMessage"
class=
"error"
style=
"
color: red;
text-align:left;"
>
{{alertMsg}}
</span>
<span
ng-if=
"errorMessage"
class=
"error"
style=
"text-align:left;"
>
{{alertMsg}}
</span>
</div>
</div>
<div
class=
"col-sm-4 action-content"
>
<div
class=
"col-sm-4 action-content"
>
<md-button
<md-button
...
...
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