Commit 14bf2c2a by Nilu

S12532562 # Client - Incoming Issues (raised by Client) #CV Cover letter do not work

parent d0876d70
......@@ -667,13 +667,15 @@ public class JobApplication extends BaseJobApplication
return false;
}
public boolean showHappyToRelocate()
@Override
public Boolean getHappyToRelocate()
{
return isTrue(getHappyToRelocate());
return isTrue(super.getHappyToRelocate());
}
public boolean showPreferRemote()
@Override
public Boolean getPreferRemote()
{
return isTrue(getPreferRemote());
return isTrue(super.getPreferRemote());
}
}
\ No newline at end of file
......@@ -67,8 +67,29 @@
</span>
<oneit:toString value="<%= jobApplication.getCandidate().getPhone() %>" mode="EscapeHTML" />
<span><img src="images/clip_icon.png"></span>
<span><a href="#">CV</a></span>
<span><a href="#">Cover Letter</a></span>
<%
if(jobApplication.getCV() != null)
{
%>
<span>
<a target='blank' href='<%= request.getContextPath() + "/" + BinaryContentHandler.getRelativeURL(request, jobApplication, "CV", jobApplication.getCV(), true) %>'>
CV
</a>
</span>
<%
}
if(jobApplication.getCoverLetter() != null)
{
%>
<span>
<a target='blank' href='<%= request.getContextPath() + "/" + BinaryContentHandler.getRelativeURL(request, jobApplication, "CoverLetter", jobApplication.getCoverLetter(), true) %>'>
Cover Letter
</a>
</span>
<%
}
%>
</div>
</div>
......
......@@ -590,6 +590,21 @@
<%
}
%>
<%
if(jobApplication.getCoverLetter() != null)
{
%>
<div class="contact-row">
<div class="contact-label"><img src="images/download-icon.png" /></div>
<div class="contact-value">
<a target='blank' href='<%= request.getContextPath() + "/" + BinaryContentHandler.getRelativeURL(request, jobApplication, "CoverLetter", jobApplication.getCoverLetter(), true) %>'>
Download Cover Letter
</a>
</div>
</div>
<%
}
%>
</div>
<div class="applicant-location-info">
<div class="contact-row" >
......
......@@ -101,7 +101,7 @@
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= jobApplication %>" id="prefer-remote" attributeName="PreferRemote" type="checkbox"/>
<oneit:recalcClass htmlTag="span" classScript="jobApplication.showPreferRemote() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<oneit:recalcClass htmlTag="span" classScript="jobApplication.getPreferRemote() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<label for="prefer-remote">
<oneit:label GUIName="I would prefer to work remotely" />
</label>
......@@ -124,7 +124,7 @@
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= jobApplication %>" id="happy-to-relocate" attributeName="HappyToRelocate" type="checkbox" />
<oneit:recalcClass htmlTag="span" classScript="jobApplication.showHappyToRelocate() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<oneit:recalcClass htmlTag="span" classScript="jobApplication.getHappyToRelocate() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<label for="happy-to-relocate">
<oneit:label GUIName="Yes, I am happy to relocate"/>
</label>
......
......@@ -173,7 +173,7 @@
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= jobApplication %>" id="prefer-remote" attributeName="PreferRemote" type="checkbox"/>
<oneit:recalcClass htmlTag="span" classScript="jobApplication.showPreferRemote() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<oneit:recalcClass htmlTag="span" classScript="jobApplication.getPreferRemote() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<label for="prefer-remote">
<oneit:label GUIName="I would prefer to work remotely" />
</label>
......@@ -193,7 +193,7 @@
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= jobApplication %>" id="happy-to-relocate" attributeName="HappyToRelocate" type="checkbox" />
<oneit:recalcClass htmlTag="span" classScript="jobApplication.showHappyToRelocate() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<oneit:recalcClass htmlTag="span" classScript="jobApplication.getHappyToRelocate() ? 'checked': 'unchecked'" jobApplication="<%= jobApplication %>">
<label for="happy-to-relocate">
<oneit:label GUIName="Yes, I am happy to relocate"/>
</label>
......
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