RED-7761 - removed also the "paragraph" field when "reason" is not available

This commit is contained in:
Valentin Mihai 2023-12-06 18:04:06 +02:00
parent 1ed6c956eb
commit 641f24e0c9

View File

@ -38,38 +38,36 @@
</mat-form-field> </mat-form-field>
</div> </div>
<ng-container *ngIf="showExtras"> <ng-container *ngIf="showExtras && !hiddenReason">
<ng-container *ngIf="!hiddenReason"> <div [class.required]="!form.controls.reason.disabled" class="iqser-input-group w-450">
<div [class.required]="!form.controls.reason.disabled" class="iqser-input-group w-450"> <label [translate]="'edit-redaction.dialog.content.reason'"></label>
<label [translate]="'edit-redaction.dialog.content.reason'"></label> <mat-form-field>
<mat-form-field> <mat-select
<mat-select
[placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
class="full-width"
formControlName="reason"
>
<mat-option
*ngFor="let option of legalOptions"
[matTooltip]="option.description"
[value]="option"
matTooltipPosition="after"
>
{{ option.label }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
<div class="iqser-input-group w-450">
<label [translate]="'edit-redaction.dialog.content.legal-basis'"></label>
<input
[placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''" [placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
[value]="form.controls.reason.value?.legalBasis" class="full-width"
disabled formControlName="reason"
type="text" >
/> <mat-option
</div> *ngFor="let option of legalOptions"
</ng-container> [matTooltip]="option.description"
[value]="option"
matTooltipPosition="after"
>
{{ option.label }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
<div class="iqser-input-group w-450">
<label [translate]="'edit-redaction.dialog.content.legal-basis'"></label>
<input
[placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
[value]="form.controls.reason.value?.legalBasis"
disabled
type="text"
/>
</div>
<div class="iqser-input-group w-450"> <div class="iqser-input-group w-450">
<label [translate]="'edit-redaction.dialog.content.section'"></label> <label [translate]="'edit-redaction.dialog.content.section'"></label>