lpa rep pdf tweaks

This commit is contained in:
2024-05-09 18:40:51 +01:00
parent b57d73dec3
commit 815a8ec818
10 changed files with 139 additions and 105 deletions
@@ -228,8 +228,11 @@ let RepLPA = (props) => {
<>
<div className="govuk-grid-row">
<div className="govuk-form-group">
{typeof formObj.representationForm.values
.representationType == "undefined" ? (
{!(
"values" in formObj.representationForm &&
"representationType" in
formObj.representationForm.values
) ? (
<>
<h2 className="govuk-heading-m ">
{typeof props.representationType != "undefined"
@@ -356,6 +359,7 @@ let RepLPA = (props) => {
{typeof props.representationType != "undefined" &&
props.representationType == "Questionnaire" && (
<>
{showQuestionnaireSection}
{showQuestionnaireSection <=
questionnaireCount && (
<button
@@ -363,7 +367,9 @@ let RepLPA = (props) => {
className="govuk-button"
data-module="govuk-button"
>
{t("common:continue-button")}
{t("common:continue-button")} www
{showQuestionnaireSection} -{" "}
{questionnaireCount}
</button>
// <a
// href="#"
@@ -377,13 +383,15 @@ let RepLPA = (props) => {
// Next section
// </a>
)}
{showQuestionnaireSection == 9 && (
{showQuestionnaireSection ==
questionnaireCount && (
<button
type="submit"
className="govuk-button"
data-module="govuk-button"
>
{t("common:continue-button")}
{t("common:continue-button")} -{" "}
{showQuestionnaireSection}
</button>
)}
{showQuestionnaireSection > 1 && (
@@ -408,7 +416,7 @@ let RepLPA = (props) => {
className="govuk-button"
data-module="govuk-button"
>
{t("common:continue-button")}
{t("common:continue-button")} ==
</button>
<a
onClick={() => {