Skip to content

Commit

Permalink
feat: FE - document verzenden - added paragraph text (#1942)
Browse files Browse the repository at this point in the history
FE - document verzenden - added paragraph text

Solves: PZ-3994
  • Loading branch information
infonl-marcel authored Oct 24, 2024
1 parent 1401df5 commit a177e3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";

Expand All @@ -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,
) {}
Expand All @@ -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)
Expand All @@ -83,6 +88,7 @@ export class InformatieObjectVerzendenComponent implements OnInit, OnChanges {
.build();

this.fields = [
[paragraph],
[this.documentSelectFormField],
[verzendDatum],
[toelichtingField],
Expand Down
1 change: 1 addition & 0 deletions src/main/app/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>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!",
Expand Down
1 change: 1 addition & 0 deletions src/main/app/src/assets/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>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!",
Expand Down

0 comments on commit a177e3f

Please sign in to comment.