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 e6ed1032c..a8cdbc290 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 @@ -10,6 +10,10 @@

{{ currentPage().title }}

} + @if (currentPage().description?.length) { +

{{ currentPage().description }}

+ } + @let questions = currentPage().questions || []; @@ -47,10 +51,10 @@

@if (q.paragraphText) { -

{{ q.paragraphText }}

+

{{ q.paragraphText }}

} - @if (q.helpText && q.fieldType !== FieldType.Radio && q.fieldType !== FieldType.Checkbox) { -

{{ q.helpText }}

+ @if (q.helpText) { +

{{ q.helpText }}

} @if (q.exampleText) { @@ -87,7 +91,7 @@

} } @case (FieldType.Radio) { -
+
@for (option of q.options; track option) {
[inputId]="option.value" [value]="option.value" > - + + @if (option.helpText) { } @@ -112,7 +117,7 @@

} } @case (FieldType.Checkbox) { -
+
@for (option of q.options; track option) {
[formControlName]="q.responseKey!" [value]="option.value" > - + + @if (option.helpText) { } @@ -190,13 +196,14 @@

{{ 'files.actions.uploadFile' | translate }}

[label]="'common.buttons.back' | translate" severity="info" class="mr-2" - (click)="goBack()" + (onClick)="goBack()" > +
diff --git a/src/app/features/registries/components/drafts/drafts.component.ts b/src/app/features/registries/components/drafts/drafts.component.ts index f012077bd..4c4c4c04f 100644 --- a/src/app/features/registries/components/drafts/drafts.component.ts +++ b/src/app/features/registries/components/drafts/drafts.component.ts @@ -122,9 +122,7 @@ export class DraftsComponent implements OnDestroy { this.route.snapshot.firstChild?.params['step'] ? +this.route.snapshot.firstChild?.params['step'] : 0 ); - currentStep = computed(() => { - return this.steps()[this.currentStepIndex()]; - }); + currentStep = computed(() => this.steps()[this.currentStepIndex()]); registrationId = this.route.snapshot.firstChild?.params['id'] || ''; diff --git a/src/app/features/registries/components/review/review.component.html b/src/app/features/registries/components/review/review.component.html index f984826f5..691afff6c 100644 --- a/src/app/features/registries/components/review/review.component.html +++ b/src/app/features/registries/components/review/review.component.html @@ -82,7 +82,7 @@

{{ 'shared.tags.title' | translate }}

{{ page.title }}

@if (page.description) { -

{{ page.description }}

+

{{ page.description }}

} @if (page.sections?.length) { @@ -90,7 +90,7 @@

{{ page.title }}

{{ section.title }}

@if (section.description) { -

{{ section.description }}

+

{{ section.description }}

} @if (section.questions?.length) { { ctx.patchState({