Commit 4ce838cd by chenith Committed by Harsh Shah

Update applicant view page.

parent ca21ac38
......@@ -153,6 +153,20 @@ public class Job extends BaseJob
return pipelineJob().toJobApplications(filter).toCandidate().vals().size();
}
public int getNoOfDaystoClosed()
{
int dateDiff = 0;
if(this.getJobStatus()==JobStatus.OPEN && this.getApplyBy()!=null)
{
dateDiff = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), this.getApplyBy());
}
return dateDiff>0 ? dateDiff : 0;
}
public String getDaysTillClose()
{
StringBuilder sb = new StringBuilder();
......@@ -174,4 +188,38 @@ public class Job extends BaseJob
}
return sb.toString();
}
public String getClosingInText()
{
StringBuilder sb = new StringBuilder("Closing in ");
if(this.getApplyBy()!=null)
{
int dateDiff = getNoOfDaystoClosed();
sb.append(dateDiff);
if(dateDiff==1)
{
sb.append(" day");
}
else
{
sb.append(" days");
}
}
return sb.toString();
}
public String getJobStatusText()
{
StringBuilder sb = new StringBuilder("THIS JOB IS ");
sb.append(this.getJobStatus().getDescription());
return sb.toString();
}
}
\ No newline at end of file
......@@ -2426,6 +2426,14 @@ span.ex-management {
border-radius: 100px;
margin: -5px 11px;
}
.complete-status-icon{
width: 20px;
height: 20px;
border: solid 4px #f56440;
display: inline-block;
border-radius: 100px;
margin: -5px 11px;
}
.job-status-appli{
text-transform: uppercase;
letter-spacing: 1px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment