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
82d310da
Commit
82d310da
authored
Aug 18, 2017
by
Nilu
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help text - Only show help content for the first question sections of each type; hide it otherwise
parent
9d82d3e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
job_match_assessment.jsp
...broot/extensions/applicantportal/job_match_assessment.jsp
+15
-2
No files found.
cmsWebApp/webroot/extensions/applicantportal/job_match_assessment.jsp
View file @
82d310da
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
List<Question> totalQuestions = (List<Question>) process.getAttribute("TotalQuestions");
List<Question> totalQuestions = (List<Question>) process.getAttribute("TotalQuestions");
List<Question> allQuestions = (List<Question>) process.getAttribute("AllQuestions");
List<Question> allQuestions = (List<Question>) process.getAttribute("AllQuestions");
String exitPage = WebUtils.getArticleLink(request, transaction, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
String exitPage = WebUtils.getArticleLink(request, transaction, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
boolean showHelp = process.getAttribute("ShowHelp")!= null ? (boolean)process.getAttribute("ShowHelp") : true;
if(totalQuestions == null)
if(totalQuestions == null)
{
{
...
@@ -39,6 +40,9 @@
...
@@ -39,6 +40,9 @@
%><%@include file="/saferedirect.jsp" %><%
%><%@include file="/saferedirect.jsp" %><%
}
}
Question question = allQuestions.get(questionNumber);
QuestionType questionType = question.getQuestionType();
%>
%>
<script>
<script>
$(document.body).addClass('bg-color');
$(document.body).addClass('bg-color');
...
@@ -83,6 +87,14 @@
...
@@ -83,6 +87,14 @@
<oneit:dynInclude page="/extensions/applicantportal/inc/application_main_tabs.jsp" PageNumber="3" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<oneit:dynInclude page="/extensions/applicantportal/inc/application_main_tabs.jsp" PageNumber="3" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="section-page-area section-job-match">
<div class="section-page-area section-job-match">
<%
if(actualNumber == 1 || (showHelp && questionType != QuestionType.SCALAR))
{
if(questionType != QuestionType.SCALAR)
{
process.setAttribute("ShowHelp", false);
}
%>
<div class="main-sc-section sj-1">
<div class="main-sc-section sj-1">
<p>Using the scale given, indicate how important to you are the following aspects in your work life. Use the following system:</p>
<p>Using the scale given, indicate how important to you are the following aspects in your work life. Use the following system:</p>
<ul class="security-level">
<ul class="security-level">
...
@@ -93,6 +105,9 @@
...
@@ -93,6 +105,9 @@
<p>Use the other numbers (2, 3, 5, 6) to indicate in-between levels of importance to you.</p>
<p>Use the other numbers (2, 3, 5, 6) to indicate in-between levels of importance to you.</p>
</div>
</div>
<div class="selection-br-line"></div>
<div class="selection-br-line"></div>
<%
}
%>
<div class="main-sc-section main-rate-section">
<div class="main-sc-section main-rate-section">
<%
<%
FormTag applicationForm = FormTag.getActiveFormTag(request);
FormTag applicationForm = FormTag.getActiveFormTag(request);
...
@@ -101,8 +116,6 @@
...
@@ -101,8 +116,6 @@
if(actualNumber <= totNoOfQuestions)
if(actualNumber <= totNoOfQuestions)
{
{
Question question = allQuestions.get(questionNumber);
QuestionType questionType = question.getQuestionType();
Answer answer = jobApplication.getAnswerForQuestion(question);
Answer answer = jobApplication.getAnswerForQuestion(question);
String optionKey = WebUtils.getInputKey(request, answer, Answer.FIELD_AnswerNo);
String optionKey = WebUtils.getInputKey(request, answer, Answer.FIELD_AnswerNo);
String formValue = formBuilder.fieldValue (optionKey, answer.getAnswerNo() == null ? "" : String.valueOf(answer.getAnswerNo()));
String formValue = formBuilder.fieldValue (optionKey, answer.getAnswerNo() == null ? "" : String.valueOf(answer.getAnswerNo()));
...
...
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