Commit dcae1b66 by Nilu

S12519950 # Client - Incoming Issues (raised by Client) #CV not present

parent 20d189e9
...@@ -49,11 +49,24 @@ public class JobApplication extends BaseJobApplication ...@@ -49,11 +49,24 @@ public class JobApplication extends BaseJobApplication
{ {
//Ideally should be managed with uniqueGroup, but uniqueGroup doesnt work without atleast 1 attribute //Ideally should be managed with uniqueGroup, but uniqueGroup doesnt work without atleast 1 attribute
searchCandidateJob(getTransaction(), getCandidate(), getJob()); //It will throw RuntimeException when more than 1 record found. searchCandidateJob(getTransaction(), getCandidate(), getJob()); //It will throw RuntimeException when more than 1 record found.
if(getCV() != null)
{
String contentType = getCV().getContentType();
context.check(contentType.contains("msword") || contentType.contains("opendocument.text") || contentType.contains("pdf") , this, FIELD_CV, "invalid");
}
if(getCoverLetter()!= null)
{
String contentType = getCoverLetter().getContentType();
context.check(contentType.contains("msword") || contentType.contains("opendocument.text") || contentType.contains("pdf") , this, FIELD_CoverLetter, "invalid");
}
} }
catch(RuntimeException ex) catch(RuntimeException ex)
{ {
context.check(false, this, SINGLEREFERENCE_Job, "alreadyApplied"); context.check(false, this, SINGLEREFERENCE_Job, "alreadyApplied");
} }
super.validate(context); super.validate(context);
} }
......
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
process.setAttribute("JobApplication" , jobApplication); process.setAttribute("JobApplication" , jobApplication);
%> %>
<script type="text/javascript"> <script type="text/javascript">
$(document.body).addClass('bg-color'); $(document.body).addClass('bg-color');
$(document).ready(function(){ $(document).ready(function(){
$(".attach-icon-btn").click(function(){ $('.attach-icon-btn').click(function(){
$(this).siblings(".fileInput").find("input").click(); $(this).parent().find("input").click();
}); });
$("input:file").change(function (){ $("input:file").change(function (){
...@@ -43,14 +43,14 @@ ...@@ -43,14 +43,14 @@
$(this).parents(".form-control").append(filename); $(this).parents(".form-control").append(filename);
}); });
}); });
</script> </script>
<style> <style>
.main-verify-identity .second-style { .main-verify-identity .second-style {
font-size: 14px; font-size: 14px;
line-height: 40px; line-height: 40px;
} }
</style> </style>
<div class="apply-job-logo-header signinpage"> <div class="apply-job-logo-header signinpage">
<div> <div>
...@@ -76,7 +76,9 @@ ...@@ -76,7 +76,9 @@
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/> <oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="main-verify-identity"> <div class="main-verify-identity">
<div class="pl-confirm text-center">Great! Now let's attach your CV and Cover Letter</div> <div class="pl-confirm text-center">
Great! Now let's attach your CV and Cover Letter<br/><br/>
Uploading your files in PDF format is strongly recommended</div>
<div class="main-box-layout main-verify-step-2"> <div class="main-box-layout main-verify-step-2">
<div class="form-group text-left relative-parent "> <div class="form-group text-left relative-parent ">
<label>Upload your CV</label> <label>Upload your CV</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