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
9276a42b
Commit
9276a42b
authored
Feb 26, 2019
by
Jay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S21280521 # Client - Incoming Issues (raised by Client) #Add percentages to bar chart.
parent
6d24cf59
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
15 deletions
+22
-15
view_applicants_list.jsp
...broot/extensions/adminportal/inc/view_applicants_list.jsp
+11
-3
view_applicants.jsp
cmsWebApp/webroot/extensions/adminportal/view_applicants.jsp
+11
-12
No files found.
cmsWebApp/webroot/extensions/adminportal/inc/view_applicants_list.jsp
View file @
9276a42b
...
@@ -33,6 +33,8 @@
...
@@ -33,6 +33,8 @@
for(JobApplication jobApplication : applications)
for(JobApplication jobApplication : applications)
{
{
double roleFitVal = jobApplication.getRoleFitPercentage();
double cultureVal = jobApplication.getCultureFitScore();
long criteriaVal = jobApplication.getRequirementFitScore();
long criteriaVal = jobApplication.getRequirementFitScore();
String roleFit = FormatUtils.stringify(jobApplication.getRoleFitPercentage(), "PercentageTwoDP", "0");
String roleFit = FormatUtils.stringify(jobApplication.getRoleFitPercentage(), "PercentageTwoDP", "0");
String culture = FormatUtils.stringify(jobApplication.getCultureFitScore(), "PercentageWholeNumber", "0");
String culture = FormatUtils.stringify(jobApplication.getCultureFitScore(), "PercentageWholeNumber", "0");
...
@@ -83,9 +85,11 @@
...
@@ -83,9 +85,11 @@
<div class="<%= widthClass %> appli-l eq-second-height">
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<span class="appli-view-bar">
<div class="progress">
<div class="progress">
<div class="
progress-bar
" role="progressbar" aria-valuenow="<%= roleFit %>" aria-valuemin="0" aria-valuemax="100"
<div class="
completion-progress-bar <%= roleFitVal == 100 ? "green-bar": (roleFitVal >= 50 && roleFitVal < 100 ? "orange-bar" : "red-bar") %>
" role="progressbar" aria-valuenow="<%= roleFit %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + roleFit %>">
style="<%= "width: " + roleFit %>">
<span class="show-precentage"><%= roleFit %></span>
</div>
</div>
</div>
</div>
</span>
</span>
role fit
role fit
...
@@ -93,9 +97,11 @@
...
@@ -93,9 +97,11 @@
<div class="<%= widthClass %> appli-l eq-second-height">
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<span class="appli-view-bar">
<div class="progress">
<div class="progress">
<div class="
progress-bar
" role="progressbar" aria-valuenow="<%= culture %>" aria-valuemin="0" aria-valuemax="100"
<div class="
completion-progress-bar <%= cultureVal == 100 ? "green-bar": (cultureVal >= 50 && cultureVal < 100 ? "orange-bar" : "red-bar") %>
" role="progressbar" aria-valuenow="<%= culture %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + culture %>">
style="<%= "width: " + culture %>">
<span class="show-precentage"><%= culture %></span>
</div>
</div>
</div>
</div>
</span>
</span>
culture fit
culture fit
...
@@ -107,9 +113,11 @@
...
@@ -107,9 +113,11 @@
<div class="<%= widthClass %> appli-l eq-second-height">
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<span class="appli-view-bar">
<div class="progress">
<div class="progress">
<div class="
progress-bar <%= (criteriaVal == 100 && !missingReq ? " green" : "")
%>" role="progressbar" aria-valuenow="<%= criteria %>" aria-valuemin="0" aria-valuemax="100"
<div class="
completion-progress-bar <%= criteriaVal == 100 ? "green-bar": (criteriaVal >= 50 && criteriaVal < 100 ? "orange-bar" : "red-bar")
%>" role="progressbar" aria-valuenow="<%= criteria %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + criteria %>">
style="<%= "width: " + criteria %>">
<span class="show-precentage"><%= criteria %></span>
</div>
</div>
</div>
</div>
<span class="<%= missingReq ? "missing-requirements-icon" : "requirements-correct-icon" %>"></span>
<span class="<%= missingReq ? "missing-requirements-icon" : "requirements-correct-icon" %>"></span>
</span>
</span>
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicants.jsp
View file @
9276a42b
...
@@ -34,18 +34,6 @@
...
@@ -34,18 +34,6 @@
ApplicationFilter appFilter = null;
ApplicationFilter appFilter = null;
ApplicationStatus workflowStatus = null;
ApplicationStatus workflowStatus = null;
if(process.getAttribute("ShowList") != null && process.getAttribute("ShowList") == Boolean.TRUE)
{
session.setAttribute("ShowList",true);
}
else if(process.getAttribute("ShowList") != null && process.getAttribute("ShowList") == Boolean.FALSE)
{
session.setAttribute("ShowList",false);
}
boolean showList = session.getAttribute("ShowList") != null ? (boolean) session.getAttribute("ShowList") : true;
SearchApplicant searchApplicant = (SearchApplicant) RunSearchExecutorFP.setupExecutor(request, SearchApplicant.REFERENCE_SearchApplicant, true);
SearchApplicant searchApplicant = (SearchApplicant) RunSearchExecutorFP.setupExecutor(request, SearchApplicant.REFERENCE_SearchApplicant, true);
JobApplication[] applications = null;
JobApplication[] applications = null;
Map<String, String[]> parameterMap = request.getParameterMap();
Map<String, String[]> parameterMap = request.getParameterMap();
...
@@ -123,6 +111,17 @@
...
@@ -123,6 +111,17 @@
applicantList = job.filterEssentialRequirements(appFilter == ApplicationFilter.HAS_REQ , applicantList);
applicantList = job.filterEssentialRequirements(appFilter == ApplicationFilter.HAS_REQ , applicantList);
}
}
if((process.getAttribute("ShowList") != null && process.getAttribute("ShowList") == Boolean.TRUE) || CollectionUtils.equals(workflowStatus,ApplicationStatus.DRAFT))
{
session.setAttribute("ShowList",true);
}
else if(process.getAttribute("ShowList") != null && process.getAttribute("ShowList") == Boolean.FALSE)
{
session.setAttribute("ShowList",false);
}
boolean showList = session.getAttribute("ShowList") != null ? (boolean) session.getAttribute("ShowList") : true;
List<JobApplication> sortedApplications = Utils.getApplicationsSorted(applicantList, appSortOpt);
List<JobApplication> sortedApplications = Utils.getApplicationsSorted(applicantList, appSortOpt);
process.setAttribute("AppSortOption", appSortOpt);
process.setAttribute("AppSortOption", appSortOpt);
...
...
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