diff --git a/src/app/features/registries/components/custom-step/custom-step.component.html b/src/app/features/registries/components/custom-step/custom-step.component.html index a8cdbc290..872da1b1d 100644 --- a/src/app/features/registries/components/custom-step/custom-step.component.html +++ b/src/app/features/registries/components/custom-step/custom-step.component.html @@ -30,7 +30,7 @@
{{ section.description }}
+{{ section.description }}
}{{ schemaResponse()?.revisionJustification }}
} @else { @@ -12,7 +13,9 @@{{ item }}
@@ -21,6 +24,7 @@{{ 'registries.justification.noUpdates' | translate }}
}{{ page.description }}
} + + @if (page.questions?.length) { +{{ draftRegistration()?.description }}
@@ -50,6 +51,7 @@{{ 'common.labels.noData' | translate }}
{{ page.description }}
} + @if (page.questions?.length) { +{{ page.description }}
+{{ page.description }}
+ } + + @if (page.questions?.length) { +{{ section.description }}
+{{ section.description }}
} @if (section.questions?.length) {{{ option }}
+{{ option }}
} } @case (FieldType.File) { @@ -43,7 +43,7 @@{{ 'common.labels.noFiles' | translate }}
} @else if (question.fieldType === FieldType.Paragraph) { -{{ question.paragraphText! | translate }}
+{{ question.paragraphText! | translate }}
} @else {{{ 'common.labels.noData' | translate }}
} diff --git a/src/app/shared/mappers/registration/page-schema.mapper.ts b/src/app/shared/mappers/registration/page-schema.mapper.ts index 01fc419f3..e5207c49a 100644 --- a/src/app/shared/mappers/registration/page-schema.mapper.ts +++ b/src/app/shared/mappers/registration/page-schema.mapper.ts @@ -41,12 +41,18 @@ export class PageSchemaMapper { case BlockType.Paragraph: if (currentQuestion) { - currentQuestion.paragraphText = item.attributes.display_text; + currentQuestion.paragraphText = currentQuestion.paragraphText + ? currentQuestion.paragraphText + '\n \n' + item.attributes.display_text + : item.attributes.display_text; currentQuestion.fieldType = FieldType.Paragraph; } else if (currentSection) { - currentSection.description = item.attributes.display_text; + currentSection.description = currentSection.description + ? currentSection.description + '\n \n' + item.attributes.display_text + : item.attributes.display_text; } else { - currentPage.description = item.attributes.display_text; + currentPage.description = currentPage.description + ? currentPage.description + '\n \n' + item.attributes.display_text + : item.attributes.display_text; } break;