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
42dbdaf6
Commit
42dbdaf6
authored
Dec 01, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove datainput handler for job match page radio buttons and handle it manually
parent
c804565a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
56 deletions
+82
-56
application_main_tabs.jsp
.../extensions/applicantportal/inc/application_main_tabs.jsp
+6
-3
job_match_questions.jsp
...ot/extensions/applicantportal/inc/job_match_questions.jsp
+27
-27
save_job_match_answers.jsp
...extensions/applicantportal/inc/save_job_match_answers.jsp
+10
-3
job_match_assessment.jsp
...broot/extensions/applicantportal/job_match_assessment.jsp
+38
-21
workplace_culture.jsp
.../webroot/extensions/applicantportal/workplace_culture.jsp
+1
-2
No files found.
cmsWebApp/webroot/extensions/applicantportal/inc/application_main_tabs.jsp
View file @
42dbdaf6
...
@@ -49,10 +49,13 @@
...
@@ -49,10 +49,13 @@
</oneit:button>
</oneit:button>
</li>
</li>
<li class="<%= pageNumber == "3" ? "active" : isAssesmentComplete ? "complate" : ""%>">
<li class="<%= pageNumber == "3" ? "active" : isAssesmentComplete ? "complate" : ""%>">
<oneit:button value=" " name="
gotoPag
e" skin="link" disabled="<%= isAssesmentComplete ? "true" : "false"%>"
<oneit:button value=" " name="
sav
e" skin="link" disabled="<%= isAssesmentComplete ? "true" : "false"%>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.toMap() %>">
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry(NotificationUtils.DISPLAY_NOTIFICATION_PARAM, false)
.mapEntry("attribNamesToRestore", Collections.singleton("JobApplication"))
.toMap() %>">
<span><%= isAssesmentComplete ? "<img src=\"images/right-mark.png\" />" : (includeAssessment ? "3" : "2")%></span>
<span><%= isAssesmentComplete ? "<img src=\"images/right-mark.png\" />" : (includeAssessment ? "3" : "2")%></span>
<div class="mobile-hide">Your Work Style</div>
<div class="mobile-hide">Your Work Style</div>
</oneit:button>
</oneit:button>
...
...
cmsWebApp/webroot/extensions/applicantportal/inc/job_match_questions.jsp
View file @
42dbdaf6
...
@@ -24,8 +24,7 @@
...
@@ -24,8 +24,7 @@
String exitPage = WebUtils.getArticleLink(request, objTran, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
String exitPage = WebUtils.getArticleLink(request, objTran, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
String currentPage = WebUtils.getArticleLink(request, objTran, WebUtils.JOB_APPLICATION, "JobMatchAssessment");
String currentPage = WebUtils.getArticleLink(request, objTran, WebUtils.JOB_APPLICATION, "JobMatchAssessment");
String nextPage = WebUtils.getArticleLink(request, objTran, WebUtils.JOB_APPLICATION, "SubmitApplication");
String nextPage = WebUtils.getArticleLink(request, objTran, WebUtils.JOB_APPLICATION, "SubmitApplication");
String culturePage = WebUtils.getArticleLink(request, objTran, WebUtils.JOB_APPLICATION, "WorkplaceCulture");
jobApplication = (JobApplication) jobApplication.getInTransaction (objTran);
%>
%>
<oneit:form name="editApplication" method="POST">
<oneit:form name="editApplication" method="POST">
...
@@ -65,24 +64,10 @@
...
@@ -65,24 +64,10 @@
<div class="main-sc-section main-rate-section">
<div class="main-sc-section main-rate-section">
<%
<%
FormTag applicationForm = FormTag.getActiveFormTag(request);
int totNoOfQuestions = totalQuestions.size();
FormBuilder formBuilder = applicationForm.getFormBuilder();
int totNoOfQuestions = totalQuestions.size();
if(actualNumber <= totNoOfQuestions)
if(actualNumber <= totNoOfQuestions)
{
{
Answer answer = jobApplication.getAnswerForQuestion(question);
if(answer == null)
{
answer = Answer.createAnswer(objTran);
jobApplication.getCandidate().addToProfileAssessmentAnswers(answer);
answer.setQuestion(question);
}
String optionKey = WebUtils.getInputKey(request, answer, Answer.FIELD_AnswerNo);
String formValue = formBuilder.fieldValue (optionKey, answer.getAnswerNo() == null ? "" : String.valueOf(answer.getAnswerNo()));
String numberText = actualNumber + "/" + totNoOfQuestions;
String numberText = actualNumber + "/" + totNoOfQuestions;
boolean completeApplication = questionNumber + 1 >= allQuestions.size();
boolean completeApplication = questionNumber + 1 >= allQuestions.size();
...
@@ -128,13 +113,11 @@
...
@@ -128,13 +113,11 @@
<%
<%
for(int index=1; index <= (questionType == QuestionType.SCALAR ? 7 : 5); index++)
for(int index=1; index <= (questionType == QuestionType.SCALAR ? 7 : 5); index++)
{
{
String activeStr = (CollectionUtils.equals(String.valueOf(index), formValue) ? "active " : "");
String selectedStr = (CollectionUtils.equals(String.valueOf(index), formValue) ? "checked" : "");
int actNumber = questionType == QuestionType.SCALAR ? actualNumber + 1 : actualNumber + 2;
int actNumber = questionType == QuestionType.SCALAR ? actualNumber + 1 : actualNumber + 2;
%>
%>
<li class="<%=
activeStr +
((questionType == QuestionType.SCALAR) ? "scaler" : "ipsative")%>">
<li class="<%=((questionType == QuestionType.SCALAR) ? "scaler" : "ipsative")%>">
<a href="javascript:void(0);">
<a href="javascript:void(0);">
<input type="radio" name="
<%= optionKey %>" id="<%= index %>" onchange="gotoNextQuestion(<%= questionNumber + 1 %> , <%= actNumber %>, <%= completeApplication %>, <%= answer.getFinalAnswerValue(index) %>);" class="answer_radio" value="<%= answer.getFinalAnswerValue(index) %>" <%= selectedStr %>
>
<input type="radio" name="
answer" id="<%= index %>" onchange="gotoNextQuestion(<%= questionNumber + 1 %> , <%= actNumber %>, <%= completeApplication %>, <%= index %>);" class="answer_radio"
>
<label for="<%= index %>"><%= index %></label>
<label for="<%= index %>"><%= index %></label>
</a>
</a>
</li>
</li>
...
@@ -161,12 +144,28 @@
...
@@ -161,12 +144,28 @@
}
}
%>
%>
</div>
</div>
<%
<oneit:button value="Submit Application" name="completeApplication" id="gotoPageNext" cssClass="box-btn hide"
if(!jobApplication.cultureCompleted())
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
{
.mapEntry ("restartProcess", Boolean.TRUE)
%>
.mapEntry("attribNamesToRestore", Collections.singleton("JobApplication"))
<oneit:button value=" " name="gotoPage" id="gotoPageNext" cssClass="box-btn"
.toMap() %>"/>
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", culturePage)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry("attribNamesToRestore", Collections.singleton("JobApplication"))
.toMap() %>"/>
<%
}
else
{
%>
<oneit:button value=" " name="completeApplication" id="gotoPageNext" cssClass="box-btn hide"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry("attribNamesToRestore", Collections.singleton("JobApplication"))
.toMap() %>"/>
<%
}
%>
</oneit:evalBody>
</oneit:evalBody>
</oneit:form>
</oneit:form>
\ No newline at end of file
cmsWebApp/webroot/extensions/applicantportal/inc/save_job_match_answers.jsp
View file @
42dbdaf6
...
@@ -28,9 +28,15 @@
...
@@ -28,9 +28,15 @@
Filter<Answer> filter = Answer.SearchByAll().andQuestion(new EqualsFilter<>(question));
Filter<Answer> filter = Answer.SearchByAll().andQuestion(new EqualsFilter<>(question));
Answer answer = jobApplication.pipelineJobApplication().toCandidate().toProfileAssessmentAnswers(filter).val();
Answer answer = jobApplication.pipelineJobApplication().toCandidate().toProfileAssessmentAnswers(filter).val();
DataMap dataMap = DataMap.getDataMap(request, true);
if(answer == null)
dataMap.removeORMHandlersForObject(answer);
{
answer = Answer.createAnswer(objTran);
answer.setAnswerNo(answerNo);
jobApplication.getCandidate().addToProfileAssessmentAnswers(answer);
answer.setQuestion(question);
}
answer.setAnswerNo(answer.getFinalAnswerValue(answerNo));
%>
%>
</oneit:form>
</oneit:form>
\ No newline at end of file
cmsWebApp/webroot/extensions/applicantportal/job_match_assessment.jsp
View file @
42dbdaf6
...
@@ -17,10 +17,19 @@
...
@@ -17,10 +17,19 @@
if(jobAppId != null)
if(jobAppId != null)
{
{
jobApplication = JobApplication.getJobApplicationByID(objTran, jobAppId);
jobApplication = JobApplication.getJobApplicationByID(objTran, jobAppId);
process.setAttribute("JobApplicationID" , jobApplication.getID().longValue());
}
if(jobApplication == null)
{
jobApplication = (JobApplication) process.getAttribute("JobApplication");
}
}
Debug.assertion(jobApplication != null, "Job Application cannot be null in applicant portal - job match assessment ");
Debug.assertion(jobApplication != null, "Job Application cannot be null in applicant portal - job match assessment ");
if(process.getAttribute("JobApplicationID") == null)
{
process.setAttribute("JobApplicationID" , jobApplication.getID().longValue());
}
Job job = jobApplication.getJob();
Job job = jobApplication.getJob();
Candidate candidate = jobApplication.getCandidate();
Candidate candidate = jobApplication.getCandidate();
...
@@ -67,29 +76,37 @@
...
@@ -67,29 +76,37 @@
function gotoNextQuestion(questionNumber, actualNumber, completeApplication, answerNo)
function gotoNextQuestion(questionNumber, actualNumber, completeApplication, answerNo)
{
{
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/applicantportal/inc/save_job_match_answers.jsp", 'form' ,
var radioid = "#" + answerNo;
{questionNumber : questionNumber, answerNo: answerNo, actualNumber: actualNumber, completeApplication: completeApplication},
function () {},
function (jqXHR, textStatus, errorThrown) {
if (jqXHR.status == 0) {
log("Empty Response. Status : " + jqXHR.status);
} else {
window.alert("Error processing request:" + errorThrown);
}
},
"POST");
if(completeApplication)
$(radioid).closest('li').addClass(" active ");
{
$("#gotoPageNext").click();
setTimeout(
return false;
function() {
}
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/applicantportal/inc/save_job_match_answers.jsp", 'form' ,
{questionNumber : questionNumber, answerNo: answerNo, actualNumber: actualNumber, completeApplication: completeApplication},
function () {},
function (jqXHR, textStatus, errorThrown) {
if (jqXHR.status == 0) {
log("Empty Response. Status : " + jqXHR.status);
} else {
window.alert("Error processing request:" + errorThrown);
}
},
"POST");
if(completeApplication)
{
$("#gotoPageNext").click();
return false;
}
$('.job-match-questions').empty();
$('.job-match-questions').empty(
);
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/applicantportal/inc/job_match_questions.jsp", '.job-match-questions' , {questionNumber : questionNumber, actualNumber: actualNumber}
);
ajaxProcessAddJQ ("<%= request.getContextPath() %>/extensions/applicantportal/inc/job_match_questions.jsp", '.job-match-questions' , {questionNumber : questionNumber, actualNumber: actualNumber}
);
$('.timer').countimer('start'
);
},
$('.timer').countimer('start');
500); // delay in order to visually reinforce selection before advancing
}
}
</script>
</script>
...
...
cmsWebApp/webroot/extensions/applicantportal/workplace_culture.jsp
View file @
42dbdaf6
...
@@ -200,7 +200,7 @@
...
@@ -200,7 +200,7 @@
.mapEntry(UpdateMappedObjFP.FAIL_VALIDATION_ERRORS, Boolean.FALSE)
.mapEntry(UpdateMappedObjFP.FAIL_VALIDATION_ERRORS, Boolean.FALSE)
.toMap() %>"/>
.toMap() %>"/>
<%
<%
if(isAssesmentComplete)
if(is
Last && is
AssesmentComplete)
{
{
%>
%>
<oneit:button value="Complete" name="completeApplication" id="nextButton" cssClass="box-btn"
<oneit:button value="Complete" name="completeApplication" id="nextButton" cssClass="box-btn"
...
@@ -226,7 +226,6 @@
...
@@ -226,7 +226,6 @@
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry(NotificationUtils.DISPLAY_NOTIFICATION_PARAM, false)
.mapEntry(NotificationUtils.DISPLAY_NOTIFICATION_PARAM, false)
.mapEntry("attribNamesToRestore", Collections.singleton("JobApplication"))
.mapEntry("attribNamesToRestore", Collections.singleton("JobApplication"))
.toMap() %>"/>
.toMap() %>"/>
<%
<%
...
...
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