Commit 93e57d29 authored by Deep Dey's avatar Deep Dey

chore: change principal details for pdf

parent 5237137d
...@@ -104,8 +104,10 @@ public class TemplateService { ...@@ -104,8 +104,10 @@ public class TemplateService {
context.setVariable("givenYear", Integer.parseInt(givenYear)); context.setVariable("givenYear", Integer.parseInt(givenYear));
if (Objects.equals(admissionFormDataList.get(0).getSchool(), "La Martiniere for Boys")) { if (Objects.equals(admissionFormDataList.get(0).getSchool(), "La Martiniere for Boys")) {
context.setVariable("principalName", "Mr. P.A. John Stephen"); context.setVariable("principalName", "Mr. P.A. John Stephen");
context.setVariable("actingPrincipal", "Acting Principal, ");
} else { } else {
context.setVariable("principalName", "Mrs. Rupkatha Sarkar"); context.setVariable("principalName", "Mrs. Rupkatha Sarkar");
context.setVariable("actingPrincipal", "");
} }
return templateEngine.process("InteractionScoringTemplate", context); return templateEngine.process("InteractionScoringTemplate", context);
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<th> <th>
<span th:text="${principalName}"></span> <span th:text="${principalName}"></span>
<br/> <br/>
(Acting Principal, <span th:text="${admissionFormList[0].school}"></span>) (<span th:text="${actingPrincipal}"></span><span th:text="${admissionFormList[0].school}"></span>)
</th> </th>
<th>Mr. S. Dhar<br></br>(Secretary)</th> <th>Mr. S. Dhar<br></br>(Secretary)</th>
<th>TOTAL</th> <th>TOTAL</th>
......
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