Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
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
Muhammad Usman
PERFORMA_REPLICA
Commits
0b56da0c
Commit
0b56da0c
authored
Nov 02, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tabs of applicants.. styling issues reported in trello. bulk edit and inline edit option changes
parent
7fe9aa4d
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
70 additions
and
15 deletions
+70
-15
BulkUpdateFP.java
cmsWebApp/src/performa/form/BulkUpdateFP.java
+4
-1
ChangeApplicationStatusFP.java
cmsWebApp/src/performa/form/ChangeApplicationStatusFP.java
+8
-0
Job.java
cmsWebApp/src/performa/orm/Job.java
+13
-3
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+7
-0
AppProcessOption.java
cmsWebApp/src/performa/orm/types/AppProcessOption.java
+3
-1
AppProcessOption.xml
cmsWebApp/src/performa/orm/types/AppProcessOption.xml
+1
-0
common.css
cmsWebApp/webroot/css/common.css
+26
-3
applicant_view_tabs.jsp
...ebroot/extensions/adminportal/inc/applicant_view_tabs.jsp
+2
-2
application_sorting_bar.jsp
...ot/extensions/adminportal/inc/application_sorting_bar.jsp
+3
-3
view_applicants_shortlist.jsp
...root/extensions/adminportal/view_applicants_shortlist.jsp
+1
-1
view_applicants_shortlist_grid.jsp
...extensions/adminportal/view_applicants_shortlist_grid.jsp
+1
-1
view_applicants_unsuitable.jsp
...oot/extensions/adminportal/view_applicants_unsuitable.jsp
+1
-0
No files found.
cmsWebApp/src/performa/form/BulkUpdateFP.java
View file @
0b56da0c
...
...
@@ -60,7 +60,10 @@ public class BulkUpdateFP extends SaveFP
{
application
.
setApplicationStatus
(
ApplicationStatus
.
UNSUITABLE
);
}
else
if
(
job
.
getAppProcessOption
()
==
AppProcessOption
.
REMOVE_FROM_UNSUITABLE
)
{
application
.
setApplicationStatus
(
ApplicationStatus
.
SUBMITTED
);
}
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"In BulkUpdateFP Job Application Status successfully changed : "
,
application
);
}
...
...
cmsWebApp/src/performa/form/ChangeApplicationStatusFP.java
View file @
0b56da0c
...
...
@@ -35,6 +35,14 @@ public class ChangeApplicationStatusFP extends SaveFP
{
jobApplication
.
setApplicationStatus
(
ApplicationStatus
.
SUBMITTED
);
}
else
if
(
jobApplication
.
getAppProcessOption
()
==
AppProcessOption
.
TO_UNSUITABLE
)
{
jobApplication
.
setApplicationStatus
(
ApplicationStatus
.
UNSUITABLE
);
}
else
if
(
jobApplication
.
getAppProcessOption
()
==
AppProcessOption
.
REMOVE_FROM_UNSUITABLE
)
{
jobApplication
.
setApplicationStatus
(
ApplicationStatus
.
SUBMITTED
);
}
LogMgr
.
log
(
JobApplication
.
LOG
,
LogLevel
.
PROCESSING1
,
"In ChangeApplicationStatusFP Job Application Status successfully changed : "
,
jobApplication
);
...
...
cmsWebApp/src/performa/orm/Job.java
View file @
0b56da0c
...
...
@@ -381,17 +381,27 @@ public class Job extends BaseJob
return
getApplyBy
()
!=
null
&&
DateDiff
.
endOfDay
(
getApplyBy
()).
before
(
DateDiff
.
getToday
());
}
public
List
<
AppProcessOption
>
getValidProcessOptions
(
boolean
isShortlist
)
public
List
<
AppProcessOption
>
getValidProcessOptions
(
ApplicationStatus
appStatus
)
{
List
<
AppProcessOption
>
options
=
new
ArrayList
<>();
if
(
!
isShortlist
)
if
(
appStatus
==
null
)
{
options
.
add
(
AppProcessOption
.
TO_SHORTLIST
);
options
.
add
(
AppProcessOption
.
REMOVE_FROM_SHORTLIST
);
options
.
add
(
AppProcessOption
.
TO_UNSUITABLE
);
}
else
if
(
appStatus
==
ApplicationStatus
.
SHORTLISTED
)
{
options
.
add
(
AppProcessOption
.
REMOVE_FROM_SHORTLIST
);
options
.
add
(
AppProcessOption
.
TO_UNSUITABLE
);
}
else
if
(
appStatus
==
ApplicationStatus
.
UNSUITABLE
)
{
options
.
add
(
AppProcessOption
.
TO_SHORTLIST
);
options
.
add
(
AppProcessOption
.
REMOVE_FROM_UNSUITABLE
);
}
return
options
;
}
...
...
cmsWebApp/src/performa/orm/JobApplication.java
View file @
0b56da0c
...
...
@@ -387,10 +387,17 @@ public class JobApplication extends BaseJobApplication
if
(
getApplicationStatus
()
==
ApplicationStatus
.
SUBMITTED
)
{
options
.
add
(
AppProcessOption
.
TO_SHORTLIST
);
options
.
add
(
AppProcessOption
.
TO_UNSUITABLE
);
}
else
if
(
getApplicationStatus
()
==
ApplicationStatus
.
SHORTLISTED
)
{
options
.
add
(
AppProcessOption
.
REMOVE_FROM_SHORTLIST
);
options
.
add
(
AppProcessOption
.
TO_UNSUITABLE
);
}
else
if
(
getApplicationStatus
()
==
ApplicationStatus
.
UNSUITABLE
)
{
options
.
add
(
AppProcessOption
.
REMOVE_FROM_UNSUITABLE
);
options
.
add
(
AppProcessOption
.
TO_SHORTLIST
);
}
return
options
;
...
...
cmsWebApp/src/performa/orm/types/AppProcessOption.java
View file @
0b56da0c
...
...
@@ -26,8 +26,10 @@ public class AppProcessOption extends AbstractEnumerated
public
static
final
AppProcessOption
TO_UNSUITABLE
=
new
AppProcessOption
(
"TO_UNSUITABLE"
,
"TO_UNSUITABLE"
,
"To Unsuitable"
,
false
);
public
static
final
AppProcessOption
REMOVE_FROM_UNSUITABLE
=
new
AppProcessOption
(
"REMOVE_FROM_UNSUITABLE"
,
"REMOVE_FROM_UNSUITABLE"
,
"Remove From Unsuitable"
,
false
);
private
static
final
AppProcessOption
[]
allAppProcessOptions
=
new
AppProcessOption
[]
{
TO_SHORTLIST
,
REMOVE_FROM_SHORTLIST
,
TO_UNSUITABLE
};
new
AppProcessOption
[]
{
TO_SHORTLIST
,
REMOVE_FROM_SHORTLIST
,
TO_UNSUITABLE
,
REMOVE_FROM_UNSUITABLE
};
private
static
AppProcessOption
[]
getAllAppProcessOptions
()
...
...
cmsWebApp/src/performa/orm/types/AppProcessOption.xml
View file @
0b56da0c
...
...
@@ -6,6 +6,7 @@
<VALUE
name=
"TO_SHORTLIST"
value=
"TO_SHORTLIST"
description=
"To Shortlisted"
/>
<VALUE
name=
"REMOVE_FROM_SHORTLIST"
value=
"REMOVE_FROM_SHORTLIST"
description=
"Remove From Shortlisted"
/>
<VALUE
name=
"TO_UNSUITABLE"
value=
"TO_UNSUITABLE"
description=
"To Unsuitable"
/>
<VALUE
name=
"REMOVE_FROM_UNSUITABLE"
value=
"REMOVE_FROM_UNSUITABLE"
description=
"Remove From Unsuitable"
/>
</CONSTANT>
</ROOT>
cmsWebApp/webroot/css/common.css
View file @
0b56da0c
...
...
@@ -3426,10 +3426,10 @@ input.add-note-btn:hover{
float
:
right
;
text-align
:
center
;
border-radius
:
3px
3px
0
0
;
background-color
:
#
324150
;
background-color
:
#
768595
;
}
.unsutable
a
span
{
color
:
#
7b8da0
;
color
:
#
ffffff
;
font-size
:
30px
;
font-weight
:
bold
;
display
:
inline-block
;
...
...
@@ -3437,16 +3437,39 @@ input.add-note-btn:hover{
margin-bottom
:
4px
;
font-family
:
"Usual-Bold"
;
}
.no-applicant
a
span
{
color
:
#7b8da0
;
}
.no-applicant
a
{
color
:
#7b8da0
;
}
.no-applicant
a
{
background-color
:
#324150
;
}
.no-applicant.active
a
{
background-color
:
#e9ecef
;
}
no-applicant
.inactive
a
:hover
,
no-applicant
.inactive
a
:hover
span
{
color
:
#ffffff
;
background-color
:
#4e5964
;
}
.unsutable
a
{
font-size
:
11px
;
display
:
block
;
color
:
#
7b8da0
;
color
:
#
b5bfca
;
padding
:
9.5px
0
;
width
:
96px
;
font-family
:
"Usual-Medium"
;
}
.unsutable.active
a
{
color
:
#8e97a0
;
font-size
:
11px
;
font-weight
:
bold
;
position
:
relative
;
}
.unsutable.has-applicant.inactive
a
:hover
,
.unsutable.has-applicant.inactive
a
:hover
span
{
color
:
#ffffff
;
background-color
:
#4e5964
;
}
.unsutable.active
a
:hover
{
background-color
:
#e9ecef
;
...
...
cmsWebApp/webroot/extensions/adminportal/inc/applicant_view_tabs.jsp
View file @
0b56da0c
...
...
@@ -35,7 +35,7 @@
Applicants
</oneit:button>
</li>
<li class="<%= noOfShortlisted > 0 ? "has-applicant" : "" %> <%= tabNumber == "2" ? "active" : "inactive" %>">
<li class="<%= noOfShortlisted > 0 ? "has-applicant" : "
no-applicant
" %> <%= tabNumber == "2" ? "active" : "inactive" %>">
<oneit:button value=" " name="gotoPage" skin="link" disabled="<%= noOfShortlisted > 0 ? "false" : "true" %>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
...
...
@@ -48,7 +48,7 @@
</li>
</ul>
</div>
<div class="unsutable <%= noOfUnsuitable > 0 ? "has-applicant" : "" %> <%= tabNumber == "3" ? "active" : "inactive" %>">
<div class="unsutable <%= noOfUnsuitable > 0 ? "has-applicant" : "
no-applicant
" %> <%= tabNumber == "3" ? "active" : "inactive" %>">
<oneit:button id="unsuitableBtn" value=" " name="gotoPage" skin="link" disabled="<%= noOfUnsuitable > 0 ? "false" : "true" %>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
...
...
cmsWebApp/webroot/extensions/adminportal/inc/application_sorting_bar.jsp
View file @
0b56da0c
...
...
@@ -10,7 +10,7 @@
String currentPage = (String) getData(request, "currentPage");
AppSortOption appSortOpt = (AppSortOption) getData(request, "sortOption");
String tabNumber = (String) getData(request, "tabNumber");
Boolean isShortList = getData(request, "isShortList")!= null ? (Boolean) getData(request, "isShortList") : Boolean.FALSE;
ApplicationStatus appStatus = (ApplicationStatus) getData(request, "appStatus");
Boolean showOrderBy = getData(request, "showOrderBy")!= null ? (Boolean) getData(request, "showOrderBy") : Boolean.FALSE;
%>
...
...
@@ -44,7 +44,7 @@
<div class="appli-shorting-dropdown appli-left">
<span class="appli-order-label">Bulk Update</span>
<oneit:ormEnum obj="<%= job %>" attributeName="AppProcessOption" cssClass="form-control bullk-app-process" id="AppProcessOption"
enums="<%= job.getValidProcessOptions(
isShortList
) %>"/>
enums="<%= job.getValidProcessOptions(
appStatus
) %>"/>
<oneit:button name="bulkupdate" value=" " cssClass="bulk-update" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", currentPage)
...
...
@@ -59,7 +59,7 @@
String firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
String secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS_GRID);
if(
isShortList
)
if(
appStatus != null && appStatus == ApplicationStatus.SHORTLISTED
)
{
firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_GRID);
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicants_shortlist.jsp
View file @
0b56da0c
...
...
@@ -63,7 +63,7 @@
sortOption="<%= appSortOpt %>"
currentPage="<%= currentPage %>"
tabNumber="1"
isShortList="<%= Boolean.TRUE
%>"
appStatus="<%= ApplicationStatus.SHORTLISTED
%>"
showOrderBy="<%= sortedApplications.size() > 1 %>"
data="<%= CollectionUtils.EMPTY_MAP%>"/>
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicants_shortlist_grid.jsp
View file @
0b56da0c
...
...
@@ -100,7 +100,7 @@
sortOption="<%= appSortOpt %>"
currentPage="<%= currentPage %>"
tabNumber="2"
isShortList="<%= Boolean.TRUE
%>"
appStatus="<%= ApplicationStatus.SHORTLISTED
%>"
showOrderBy="<%= sortedApplications.size() > 1 %>"
data="<%= CollectionUtils.EMPTY_MAP%>"/>
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicants_unsuitable.jsp
View file @
0b56da0c
...
...
@@ -66,6 +66,7 @@
<oneit:dynInclude page="/extensions/adminportal/inc/application_sorting_bar.jsp"
sortOption="<%= appSortOpt %>"
currentPage="<%= currentPage %>"
appStatus="<%= ApplicationStatus.UNSUITABLE %>"
showOrderBy="<%= sortedApplications.size() > 1 %>"
data="<%= CollectionUtils.EMPTY_MAP%>"/>
...
...
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