Commit dfbd81a3 by Nilu

Progress indicator skipping 2-at-a-time.

On Applicant process ... in Comprehensive assessment ... up-to question 31 is single step
.... 29/250, 30/250, 31/250 ...
Then it goes to 2-per-question
... 31/250, 33/250, 35/250

So, we're thinking that we just "do the math" on those figures and convert to percentages

We'd like it to be the same for the 3 assessment types ... culture, comprehensive and express
parent bef1eb82
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
if(actualNumber <= totNoOfQuestions) if(actualNumber <= totNoOfQuestions)
{ {
String numberText = actualNumber + "/" + totNoOfQuestions; int numberText = (actualNumber * 100)/ totNoOfQuestions ;
boolean completeApplication = questionNumber + 1 >= allQuestions.size(); boolean completeApplication = questionNumber + 1 >= allQuestions.size();
if(questionType == QuestionType.SCALAR) if(questionType == QuestionType.SCALAR)
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
%> %>
<div class="rateing-title"> <div class="rateing-title">
Rate the importance of each item below Rate the importance of each item below
<span><oneit:toString value="<%= numberText %>" mode="EscapeHTML"/></span> <span><oneit:toString value="<%= numberText %>" mode="PercentageWholeNumber"/></span>
</div> </div>
<div class="rating-box-title"> <div class="rating-box-title">
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
%> %>
<div class="rateing-title"> <div class="rateing-title">
Select your preference on the scale below Select your preference on the scale below
<span><oneit:toString value="<%= numberText %>" mode="EscapeHTML"/></span> <span><oneit:toString value="<%= numberText %>" mode="PercentageWholeNumber"/></span>
</div> </div>
<% <%
} }
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
} }
CultureCriteriaAnswer answer = candidate.getSortedCultureCriteriaAnswers().get(cultureQuestionNo); CultureCriteriaAnswer answer = candidate.getSortedCultureCriteriaAnswers().get(cultureQuestionNo);
String numberText = (cultureQuestionNo + 1) + "/" + total; int numberText = ((cultureQuestionNo)* 100) / total;
process.setAttribute("JobApplication", jobApplication); process.setAttribute("JobApplication", jobApplication);
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
%> %>
<div class="main-sc-section main-wc-section"> <div class="main-sc-section main-wc-section">
<div class="rateing-title"> <div class="rateing-title">
<span><oneit:toString value="<%= numberText %>" mode="EscapeHTML"/></span> <span><oneit:toString value="<%= numberText %>" mode="PercentageWholeNumber"/></span>
</div> </div>
<% <%
FormTag applicationForm = FormTag.getActiveFormTag(request); FormTag applicationForm = FormTag.getActiveFormTag(request);
......
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