Commit bf25423b by Saliya Randunu

add requirment icons to pdf and the view applicant list page

parent bd7c574b
...@@ -4110,6 +4110,19 @@ no-applicant.inactive a:hover,no-applicant.inactive a:hover span{ ...@@ -4110,6 +4110,19 @@ no-applicant.inactive a:hover,no-applicant.inactive a:hover span{
background-size: 25%; background-size: 25%;
} }
.appli-view-bar .requirements-correct-icon{
top:-7px;
left : -5px;
box-sizing: border-box;
height: 27px;
width: 27px;
border: 3px solid #FFFFFF;
position: absolute;
border-radius: 50%;
background: url('../images/correct.png') #67B413 no-repeat center center ;
background-size: 55%;
}
.appli-percent-no{ .appli-percent-no{
font-size: 36px; font-size: 36px;
font-weight: 300; font-weight: 300;
......
...@@ -106,7 +106,9 @@ ...@@ -106,7 +106,9 @@
long criteriaVal = jobApplication.getRequirementFitScore(); long criteriaVal = jobApplication.getRequirementFitScore();
String criteria = FormatUtils.stringify(criteriaVal, "PercentageWholeNumber", "0"); String criteria = FormatUtils.stringify(criteriaVal, "PercentageWholeNumber", "0");
boolean missingReq = jobApplication.hasFailedEssentialRequirements(); boolean missingReq = jobApplication.hasFailedEssentialRequirements();
%> String iconBg = "background-image : url('file://" + PDFUtils.FILE_BASE_PATH + "/images/correct.png'); background-color : #67B413; background-size:50%; ";
if (missingReq) iconBg = "background-image : url('file://" + PDFUtils.FILE_BASE_PATH + "/images/icon-requirements.png'); background-color : #F9623D ; background-size:18%;" ;
%>
<div class="appli-jcs appli-l eq-second-height"> <div class="appli-jcs appli-l eq-second-height">
<span class="appli-view-bar"> <span class="appli-view-bar">
<div class="progress"> <div class="progress">
...@@ -115,12 +117,15 @@ ...@@ -115,12 +117,15 @@
<span class="show-precentage"><%= criteria %></span> <span class="show-precentage"><%= criteria %></span>
</div> </div>
</div> </div>
<span class="missing-requirements-icon" style="<%= missingReq ? "display:inline-block" : "display:none" %>"></span>
<span class="requirements-icon" style="<%= iconBg %>"></span>
</span> </span>
<span class="<%= missingReq ? "red-requirements" : "" %>"> <span class="<%= missingReq ? "red-requirements" : "" %>">
requirements requirements
</span> </span>
</div> </div>
<% <%
} }
%> %>
......
...@@ -87,9 +87,29 @@ ...@@ -87,9 +87,29 @@
transition: width .6s ease; transition: width .6s ease;
position: relative; position: relative;
} }
.show-precentage {position: absolute;color:#fff;right: 1px; top: -3px; font-size: 9px;font-weight: 500;} .appli-view-bar .progress-bar.green {
background: #67B413;
}
.show-precentage {position: absolute;color:#fff;right: 1px; top: -3px; font-size: 9px;font-weight: 500;}
.requirements-icon {
top:-5px;
left : -5px;
box-sizing: border-box;
height: 18px;
width: 18px;
border: 3px solid #FFFFFF;
position: absolute;
border-radius: 50%;
background-repeat: no-repeat;
background-position: 32% 25%;
padding: 0;
}
.red-requirements {color: #F9623D;}
.green-requirements {color: #67B413;}
@page @page
{ {
size: A4 portrait; size: A4 portrait;
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
style="<%= "width: " + criteria %>"> style="<%= "width: " + criteria %>">
</div> </div>
</div> </div>
<span class="missing-requirements-icon" style="<%= missingReq ? "display:inline-block" : "display:none" %>"></span> <span class="<%= missingReq ? "missing-requirements-icon" : "requirements-correct-icon" %>"></span>
</span> </span>
<span class="<%= missingReq ? "red-requirements" : "" %>"> <span class="<%= missingReq ? "red-requirements" : "" %>">
requirements requirements
......
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