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
6eb59ce8
Commit
6eb59ce8
authored
Jul 04, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HT001 active jobs page update
parent
12b791b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
6 deletions
+41
-6
Job.java
cmsWebApp/src/performa/orm/Job.java
+30
-0
page_admin_home.jsp
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
+11
-6
No files found.
cmsWebApp/src/performa/orm/Job.java
View file @
6eb59ce8
...
...
@@ -136,4 +136,33 @@ public class Job extends BaseJob
context
.
check
(
getAssessmentCriteriasCount
()
>
0
,
this
,
MULTIPLEREFERENCE_AssessmentCriterias
,
"atleastOneRequirement"
);
}
}
public
int
getNoOfCandidatesApplied
()
{
return
this
.
pipelineJob
().
toJobApplications
().
toCandidate
().
vals
().
size
();
}
public
String
getDaysTillClose
()
{
StringBuilder
sb
=
new
StringBuilder
();
if
(
this
.
getApplyBy
()!=
null
)
{
int
dateDiff
=
DateDiff
.
getDateDiff
(
Calendar
.
DATE
,
DateDiff
.
getToday
(),
this
.
getApplyBy
());
sb
.
append
(
dateDiff
);
if
(
dateDiff
==
1
)
{
sb
.
append
(
" day till close"
);
}
else
{
sb
.
append
(
" days till close"
);
}
}
return
sb
.
toString
();
}
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
View file @
6eb59ce8
...
...
@@ -6,8 +6,10 @@
<oneit:dynIncluded>
<%
Job[] jobs = Job.SearchByAll().search(transaction);
String nextPage = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
//TODO: filter with Client;
ObjectTransaction objTran = process.getTransaction ();
Job[] jobs = Job.SearchByAll().andJobStatus(new EqualsFilter<>(JobStatus.DRAFT)).search(transaction);
String nextPage = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
%>
<oneit:form name="editJob" method="post" enctype="multipart/form-data">
...
...
@@ -15,11 +17,11 @@
<div class="welcome-box">
<div class="dashboard-welcome">
<div class="welcome-text"> Welcome <br/> back Maria! </div>
<a
href="#" class="d-create-job-btn
">Create New Job</a>
<a
class="d-create-job-btn" href="<%= WebUtils.getArticleLink(request, objTran, WebUtils.CREATE_JOB, "Page") %>
">Create New Job</a>
</div>
<div class="col-sm-3 col-xs-12 d-three-box green-light">
<div class="d-fl-left eq-height">
<div class="dash-count c-green">
5
</div>
<div class="dash-count c-green">
<oneit:toString value="<%= jobs.length %>" mode="EscapeHTML" nullValue="0"/>
</div>
<div class="d-box-title">Open Jobs</div>
<a href="#" class="arrow-btn">2 closing soon </a>
</div>
...
...
@@ -47,6 +49,8 @@
<%
for (Job job : jobs)
{
%>
<div class="job-list">
<div class="job-post jl-c eq-second-height">
...
...
@@ -60,13 +64,13 @@
</div>
<div class="job-company-name">
<span class="superlaw">SUPERLAW</span>
<span class="calendar">
5 days til close
</span>
<span class="calendar">
<oneit:toString value="<%= job.getDaysTillClose() %>" mode="EscapeHTML"/>
</span>
</div>
</div>
<div class="job-application jl-c eq-second-height">
<div class="ja-icon"><img src="images/job-list-user.png" /></div>
<div class="ja-count">
05
<oneit:toString value="<%= job.getNoOfCandidatesApplied() %>" mode="EscapeHTML" nullValue="0"/>
<span>Applicants</span>
</div>
</div>
...
...
@@ -79,6 +83,7 @@
</div>
<div class="job-states jl-c">
<select class="form-control status-img">
<option data-image="images/active.png">Active</option>
<option data-image="images/complete.png">Completed</option>
<option data-image="images/shortlisted.png">Shortlisted</option>
...
...
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