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
868d0474
Commit
868d0474
authored
Nov 01, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding different tab for incomplete applicant list
parent
924d0d1d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
200 additions
and
0 deletions
+200
-0
incomplete_applicants_list.jsp
...extensions/adminportal/inc/incomplete_applicants_list.jsp
+139
-0
20181031_Alter_Job.xml
...ot/extensions/adminportal/upgrades/20181031_Alter_Job.xml
+47
-0
view_applicants.jsp
cmsWebApp/webroot/extensions/adminportal/view_applicants.jsp
+14
-0
No files found.
cmsWebApp/webroot/extensions/adminportal/inc/incomplete_applicants_list.jsp
0 → 100644
View file @
868d0474
<%@ page extends="oneit.servlets.jsp.JSPInclude" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%@ page import="oneit.utils.text.FormatUtils"%>
<%
Job job = (Job) process.getAttribute("Job");
List<JobApplication> applications = (List<JobApplication>) getData(request, "applications");
String currentPage = (String) getData(request, "currentPage");
ApplicationStatus appStatus = (ApplicationStatus) getData(request, "WorkFlowStatus");
String applicationPage = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICATION);
%>
<oneit:dynIncluded>
<script type="text/javascript">
$(document).ready(function()
{
$("[name$='WorkFlow']").change(function()
{
var id = $(this).closest('.appli-row').attr('id');
$('.save-application' + id).click();
});
});
</script>
<div class="view-appli-list">
<%
int j = 0;
for(JobApplication jobApplication : applications)
{
long criteriaVal = jobApplication.getRequirementFitScore();
String roleFit = FormatUtils.stringify(jobApplication.getRoleFitPercentage(), "PercentageTwoDP", "0");
String culture = FormatUtils.stringify(jobApplication.getCultureFitScore(), "PercentageWholeNumber", "0");
String criteria = FormatUtils.stringify(jobApplication.getRequirementFitScore(), "PercentageWholeNumber", "0");
String appID = "app-id-" + jobApplication.getID().toString();
Integer overallRank = jobApplication.getOverallRank();
Boolean isTopRank = CollectionUtils.equals(overallRank, 1);
WorkFlow workflow = job.getWorkFlowByStatus(jobApplication.getApplicationStatus());
boolean missingReq = jobApplication.hasFailedEssentialRequirements();
jobApplication.setWorkFlow(workflow);
%>
<div class="appli-row" id="<%= jobApplication.getID() %>">
<div class="appli-checkbox appli-l eq-second-height">
<div class="checkbox-list">
<input type="checkbox" name="IsSelected" value="<%= jobApplication.getObjectID().toString() %>" id="<%= appID %>" class="applicant" >
<label for="<%= appID %>"></label>
</div>
</div>
<div class="appli-list-name appli-l eq-second-height">
<oneit:button value=" " name="gotoPage" cssClass="<%= jobApplication.getID() + ""%>" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).mapEntry("Applications", applications).toMap())
.toMap() %>">
<oneit:toString value="<%= jobApplication.getCandidate() %>" mode="EscapeHTML" />
<div class="appli-int-status">
<oneit:toString value="<%= jobApplication.getApplicantStatusStr() %>" mode="EscapeHTML" />
</div>
</oneit:button>
</div>
<div class="appli-overall appli-l eq-second-height">
<div class="rank">
Overall rank
</div>
<!--TODO: logic needed to be worked out. Added to note that there are three colors-->
<div class="<%= "appli-percent-no blue " + (isTopRank ? "first" : "")%>">
<oneit:toString value="<%= jobApplication.getOverallRank() %>" mode="Integer" />
</div>
</div>
<%
String widthClass = "appli-jcs2";
if(job.getIncludeAssessmentCriteria() == Boolean.TRUE)
{
widthClass = "appli-jcs";
}
%>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= roleFit %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + roleFit %>">
</div>
</div>
</span>
role fit
</div>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= culture %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + culture %>">
</div>
</div>
</span>
culture fit
</div>
<%
if(job.getIncludeAssessmentCriteria()==Boolean.TRUE)
{
%>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar <%= (criteriaVal == 100 && !missingReq ? " green" : "")%>" role="progressbar" aria-valuenow="<%= criteria %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + criteria %>">
</div>
</div>
<span class="missing-requirements-icon" style="<%= missingReq ? "display:inline-block" : "display:none" %>"></span>
</span>
<span class="<%= missingReq ? "red-requirements" : "" %>">
requirements
</span>
</div>
<%
}
%>
<div class="appli-status appli-l eq-second-height">
<div class="appli-list-drop">
<tagfile:ormsingleasso_select obj="<%= jobApplication %>" assocName="WorkFlow" cssClass="form-control app-process"
options="<%= job.getWorkFlowsSet().toArray(new WorkFlow[0]) %>"/>
</div>
</div>
<oneit:button name="changeApplicationStatus" value=" " cssClass="<%= "save-application" + jobApplication.getID().toString() + " hidden"%>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", currentPage)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry("procParams", CollectionUtils.mapEntry("WorkFlowStatus", appStatus).mapEntry("Job", job).toMap())
.mapEntry ("attribNamesToRestore", new HashSet<String> (Arrays.asList(new String[] {"Job", "WorkFlowStatus"})))
.mapEntry("JobApplication", jobApplication)
.toMap() %>" />
</div>
<%
j++;
}
%>
</div>
</oneit:dynIncluded>
cmsWebApp/webroot/extensions/adminportal/upgrades/20181031_Alter_Job.xml
0 → 100644
View file @
868d0474
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS
name=
""
xmlns:oneit=
"http://www.1iT.com.au"
><NODE
name=
"Script"
factory=
"Vector"
>
<NODE
name=
"DDL"
factory=
"Participant"
class=
"oneit.sql.transfer.DefineTableOperation"
>
<tableName
factory=
"String"
>
tl_job
</tableName>
<column
name=
"object_id"
type=
"Long"
nullable=
"false"
length=
"11"
/>
<column
name=
"object_last_updated_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"object_created_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"job_title"
type=
"String"
nullable=
"false"
length=
"500"
/>
<column
name=
"job_description"
type=
"CLOB"
nullable=
"false"
/>
<column
name=
"job_status"
type=
"String"
nullable=
"false"
length=
"200"
/>
<column
name=
"open_date"
type=
"Date"
nullable=
"true"
/>
<column
name=
"apply_by"
type=
"Date"
nullable=
"true"
/>
<column
name=
"include_assessment_criteria"
type=
"Boolean"
nullable=
"false"
/>
<column
name=
"assessment_type"
type=
"String"
nullable=
"false"
length=
"200"
/>
<column
name=
"random_key"
type=
"String"
nullable=
"true"
length=
"10"
/>
<column
name=
"job_type"
type=
"String"
nullable=
"false"
length=
"200"
/>
<column
name=
"ref_number"
type=
"String"
nullable=
"true"
length=
"100"
/>
<column
name=
"last_status_change_date"
type=
"Date"
nullable=
"true"
/>
<column
name=
"remote"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"city"
type=
"String"
nullable=
"true"
length=
"100"
/>
<column
name=
"postcode"
type=
"String"
nullable=
"true"
length=
"100"
/>
<column
name=
"location_radius"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"state"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"country"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"require_cv"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"manually_closed"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"last_edited"
type=
"Date"
nullable=
"true"
/>
<column
name=
"is_ppj"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"industry"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"culture_statement"
type=
"String"
nullable=
"true"
length=
"2000"
/>
<column
name=
"draft_location"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"level_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"client_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"job_owner_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"company_user_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"hiring_team_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"occupation_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"shortened_url_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
</NODE>
<NODE
name=
"INDEX"
factory=
"Participant"
class=
"oneit.sql.transfer.DefineIndexOperation"
tableName=
"tl_job"
indexName=
"idx_tl_job_client_id"
isUnique=
"false"
><column
name=
"client_id"
/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/view_applicants.jsp
View file @
868d0474
...
@@ -110,14 +110,28 @@
...
@@ -110,14 +110,28 @@
<%
<%
if(showList)
if(showList)
{
{
if(workflowStatus == ApplicationStatus.SHORTLISTED)
{
%>
<oneit:dynInclude page="/extensions/adminportal/inc/incomplete_applicants_list.jsp"
applications="<%= sortedApplications %>"
currentPage="<%= currentPage %>"
WorkFlowStatus="<%= workflowStatus %>"
data="<%= CollectionUtils.EMPTY_MAP%>"/>
<%
}
else
{
%>
%>
<oneit:dynInclude page="/extensions/adminportal/inc/view_applicants_list.jsp"
<oneit:dynInclude page="/extensions/adminportal/inc/view_applicants_list.jsp"
applications="<%= sortedApplications %>"
applications="<%= sortedApplications %>"
currentPage="<%= currentPage %>"
currentPage="<%= currentPage %>"
WorkFlowStatus="<%= workflowStatus %>"
WorkFlowStatus="<%= workflowStatus %>"
data="<%= CollectionUtils.EMPTY_MAP%>"/>
data="<%= CollectionUtils.EMPTY_MAP%>"/>
<%
<%
}
}
}
else
else
{
{
if(workflowStatus == ApplicationStatus.SHORTLISTED)
if(workflowStatus == ApplicationStatus.SHORTLISTED)
...
...
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