From a177e3fc35c083ba1d0593b27e81fb56bfd87c04 Mon Sep 17 00:00:00 2001
From: infonl-marcel <82890006+infonl-marcel@users.noreply.github.com>
Date: Thu, 24 Oct 2024 15:40:51 +0200
Subject: [PATCH] feat: FE - document verzenden - added paragraph text (#1942)
FE - document verzenden - added paragraph text
Solves: PZ-3994
---
.../informatie-object-verzenden.component.ts | 10 ++++++++--
src/main/app/src/assets/i18n/en.json | 1 +
src/main/app/src/assets/i18n/nl.json | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/main/app/src/app/informatie-objecten/informatie-object-verzenden/informatie-object-verzenden.component.ts b/src/main/app/src/app/informatie-objecten/informatie-object-verzenden/informatie-object-verzenden.component.ts
index fa663cf2b9..aa9c2f86ad 100644
--- a/src/main/app/src/app/informatie-objecten/informatie-object-verzenden/informatie-object-verzenden.component.ts
+++ b/src/main/app/src/app/informatie-objecten/informatie-object-verzenden/informatie-object-verzenden.component.ts
@@ -15,6 +15,8 @@ import {
} from "@angular/core";
import { FormGroup, Validators } from "@angular/forms";
import { MatDrawer } from "@angular/material/sidenav";
+import { TranslateService } from "@ngx-translate/core";
+import { ParagraphFormFieldBuilder } from "src/app/shared/material-form-builder/form-components/paragraph/paragraph-form-field-builder";
import { UtilService } from "../../core/service/util.service";
import { DateFormFieldBuilder } from "../../shared/material-form-builder/form-components/date/date-form-field-builder";
import { DocumentenLijstFieldBuilder } from "../../shared/material-form-builder/form-components/documenten-lijst/documenten-lijst-field-builder";
@@ -25,7 +27,6 @@ import { AbstractFormField } from "../../shared/material-form-builder/model/abst
import { FormConfig } from "../../shared/material-form-builder/model/form-config";
import { FormConfigBuilder } from "../../shared/material-form-builder/model/form-config-builder";
import { Zaak } from "../../zaken/model/zaak";
-import { ZakenService } from "../../zaken/zaken.service";
import { InformatieObjectenService } from "../informatie-objecten.service";
import { DocumentVerzendGegevens } from "../model/document-verzend-gegevens";
@@ -46,7 +47,7 @@ export class InformatieObjectVerzendenComponent implements OnInit, OnChanges {
private documentSelectFormField: DocumentenLijstFormField;
constructor(
- private zakenService: ZakenService,
+ private translate: TranslateService,
private informatieObjectenService: InformatieObjectenService,
public utilService: UtilService,
) {}
@@ -69,6 +70,10 @@ export class InformatieObjectVerzendenComponent implements OnInit, OnChanges {
)
.build();
+ const paragraph = new ParagraphFormFieldBuilder()
+ .text(this.translate.instant("msg.document.verzenden.post.uitleg"))
+ .build();
+
const verzendDatum = new DateFormFieldBuilder(new Date())
.id("verzenddatum")
.validators(Validators.required)
@@ -83,6 +88,7 @@ export class InformatieObjectVerzendenComponent implements OnInit, OnChanges {
.build();
this.fields = [
+ [paragraph],
[this.documentSelectFormField],
[verzendDatum],
[toelichtingField],
diff --git a/src/main/app/src/assets/i18n/en.json b/src/main/app/src/assets/i18n/en.json
index d248a65bc1..238cb9c2d7 100644
--- a/src/main/app/src/assets/i18n/en.json
+++ b/src/main/app/src/assets/i18n/en.json
@@ -694,6 +694,7 @@
"msg.inboxProductaanvraag.verwijderen.uitgevoerd": "Product request has been deleted",
"msg.document.verwijderen.uitgevoerd": "Document \"{{document}}\" has been deleted",
"msg.document.verzenden.post.behandelen": "Request to send documents by mail",
+ "msg.document.verzenden.post.uitleg": "Upon selecting \"Send Document,\" it is expected that you have mailed a (final) document to the initiator of the case.
Here, you can record this action digitally.",
"msg.documenten.verzenden.uitgevoerd": "The documents have been marked as sent",
"msg.document.verzenden.uitgevoerd": "The document has been marked as sent",
"msg.error.required": "The {{label}} field is empty. Enter the required data!",
diff --git a/src/main/app/src/assets/i18n/nl.json b/src/main/app/src/assets/i18n/nl.json
index be69ca8785..ffb559c91e 100644
--- a/src/main/app/src/assets/i18n/nl.json
+++ b/src/main/app/src/assets/i18n/nl.json
@@ -694,6 +694,7 @@
"msg.inboxProductaanvraag.verwijderen.bevestigen": "Productaanvraag verwijderen?",
"msg.inboxProductaanvraag.verwijderen.uitgevoerd": "Productaanvraag is verwijderd",
"msg.document.verzenden.post.behandelen": "Verzoek om documenten per post te verzenden",
+ "msg.document.verzenden.post.uitleg": "Bij \"Document verzenden\" wordt verwacht dat je een (definitief) document op de post hebt gedaan naar de initiator van de zaak.
Hier kun je deze actie digitaal vastleggen.",
"msg.documenten.verzenden.uitgevoerd": "De documenten zijn gemarkeerd als verzonden",
"msg.document.verzenden.uitgevoerd": "Het document is gemarkeerd als verzonden",
"msg.error.required": "Het {{label}}-veld is niet ingevuld. Vul de vereiste gegevens in!",