RED-7972: Updated labels
This commit is contained in:
parent
9f72bd78f8
commit
e81ab56a4a
@ -4,11 +4,7 @@
|
|||||||
|
|
||||||
<div class="dialog-content redaction">
|
<div class="dialog-content redaction">
|
||||||
<div *ngIf="showList">
|
<div *ngIf="showList">
|
||||||
<label
|
<label [translate]="'edit-redaction.dialog.content.redacted-text'" class="selected-text"></label>
|
||||||
[translate]="'edit-redaction.dialog.content.redacted-text'"
|
|
||||||
[translateParams]="{ length: redactedTexts.length }"
|
|
||||||
class="selected-text"
|
|
||||||
></label>
|
|
||||||
<cdk-virtual-scroll-viewport
|
<cdk-virtual-scroll-viewport
|
||||||
[itemSize]="16"
|
[itemSize]="16"
|
||||||
[ngStyle]="{ height: redactedTexts.length <= 5 ? 16 * redactedTexts.length + 'px' : 80 + 'px' }"
|
[ngStyle]="{ height: redactedTexts.length <= 5 ? 16 * redactedTexts.length + 'px' : 80 + 'px' }"
|
||||||
@ -22,7 +18,7 @@
|
|||||||
<div class="iqser-input-group required w-450">
|
<div class="iqser-input-group required w-450">
|
||||||
<label [translate]="'edit-redaction.dialog.content.type'"></label>
|
<label [translate]="'edit-redaction.dialog.content.type'"></label>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select formControlName="type" [placeholder]="'edit-redaction.dialog.content.unchanged' | translate">
|
<mat-select [placeholder]="'edit-redaction.dialog.content.unchanged' | translate" formControlName="type">
|
||||||
<mat-select-trigger>{{ displayedDictionaryLabel }}</mat-select-trigger>
|
<mat-select-trigger>{{ displayedDictionaryLabel }}</mat-select-trigger>
|
||||||
<mat-option
|
<mat-option
|
||||||
*ngFor="let dictionary of dictionaries"
|
*ngFor="let dictionary of dictionaries"
|
||||||
@ -55,10 +51,10 @@
|
|||||||
|
|
||||||
<div class="dialog-actions">
|
<div class="dialog-actions">
|
||||||
<iqser-icon-button
|
<iqser-icon-button
|
||||||
|
[disabled]="!changed"
|
||||||
[label]="'edit-redaction.dialog.actions.save' | translate"
|
[label]="'edit-redaction.dialog.actions.save' | translate"
|
||||||
[submit]="true"
|
[submit]="true"
|
||||||
[type]="iconButtonTypes.primary"
|
[type]="iconButtonTypes.primary"
|
||||||
[disabled]="!changed"
|
|
||||||
>
|
>
|
||||||
</iqser-icon-button>
|
</iqser-icon-button>
|
||||||
|
|
||||||
|
|||||||
@ -8,11 +8,7 @@
|
|||||||
|
|
||||||
<div class="dialog-content redaction">
|
<div class="dialog-content redaction">
|
||||||
<div *ngIf="!isImage && redactedTexts" class="iqser-input-group">
|
<div *ngIf="!isImage && redactedTexts" class="iqser-input-group">
|
||||||
<label
|
<label [translate]="'edit-redaction.dialog.content.redacted-text'" class="selected-text"></label>
|
||||||
[translateParams]="{ type: isImage ? 'image' : isHint ? 'hint' : 'redaction', length: redactedTexts.length }"
|
|
||||||
[translate]="'edit-redaction.dialog.content.redacted-text'"
|
|
||||||
class="selected-text"
|
|
||||||
></label>
|
|
||||||
<cdk-virtual-scroll-viewport
|
<cdk-virtual-scroll-viewport
|
||||||
[itemSize]="16"
|
[itemSize]="16"
|
||||||
[ngStyle]="{ height: redactedTexts.length <= 5 ? 16 * redactedTexts.length + 'px' : 80 + 'px' }"
|
[ngStyle]="{ height: redactedTexts.length <= 5 ? 16 * redactedTexts.length + 'px' : 80 + 'px' }"
|
||||||
@ -27,7 +23,7 @@
|
|||||||
<label [translate]="'edit-redaction.dialog.content.type'"></label>
|
<label [translate]="'edit-redaction.dialog.content.type'"></label>
|
||||||
|
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select formControlName="type" [placeholder]="'edit-redaction.dialog.content.unchanged' | translate">
|
<mat-select [placeholder]="'edit-redaction.dialog.content.unchanged' | translate" formControlName="type">
|
||||||
<mat-select-trigger>{{ displayedDictionaryLabel }}</mat-select-trigger>
|
<mat-select-trigger>{{ displayedDictionaryLabel }}</mat-select-trigger>
|
||||||
<mat-option
|
<mat-option
|
||||||
(click)="typeChanged()"
|
(click)="typeChanged()"
|
||||||
@ -43,13 +39,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-container *ngIf="showExtras">
|
<ng-container *ngIf="showExtras">
|
||||||
<div class="iqser-input-group w-450" [class.required]="!someSkipped">
|
<div [class.required]="!someSkipped" 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"
|
class="full-width"
|
||||||
formControlName="reason"
|
formControlName="reason"
|
||||||
[placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
|
|
||||||
>
|
>
|
||||||
<mat-option
|
<mat-option
|
||||||
*ngFor="let option of legalOptions"
|
*ngFor="let option of legalOptions"
|
||||||
@ -66,20 +62,20 @@
|
|||||||
<div class="iqser-input-group w-450">
|
<div class="iqser-input-group w-450">
|
||||||
<label [translate]="'edit-redaction.dialog.content.legal-basis'"></label>
|
<label [translate]="'edit-redaction.dialog.content.legal-basis'"></label>
|
||||||
<input
|
<input
|
||||||
|
[placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
|
||||||
[value]="form.controls.reason.value?.legalBasis"
|
[value]="form.controls.reason.value?.legalBasis"
|
||||||
disabled
|
disabled
|
||||||
type="text"
|
type="text"
|
||||||
[placeholder]="!hidePlaceholder ? ('edit-redaction.dialog.content.unchanged' | translate) : ''"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</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>
|
||||||
<input
|
<input
|
||||||
|
[placeholder]="'edit-redaction.dialog.content.unchanged' | translate"
|
||||||
formControlName="section"
|
formControlName="section"
|
||||||
name="section"
|
name="section"
|
||||||
type="text"
|
type="text"
|
||||||
[placeholder]="'edit-redaction.dialog.content.unchanged' | translate"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@ -87,10 +83,10 @@
|
|||||||
<div *ngIf="allRectangles" class="iqser-input-group w-400">
|
<div *ngIf="allRectangles" class="iqser-input-group w-400">
|
||||||
<label [translate]="'change-legal-basis-dialog.content.classification'"></label>
|
<label [translate]="'change-legal-basis-dialog.content.classification'"></label>
|
||||||
<input
|
<input
|
||||||
|
[placeholder]="'edit-redaction.dialog.content.unchanged' | translate"
|
||||||
formControlName="value"
|
formControlName="value"
|
||||||
name="classification"
|
name="classification"
|
||||||
type="text"
|
type="text"
|
||||||
[placeholder]="'edit-redaction.dialog.content.unchanged' | translate"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1210,7 +1210,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"reason": "",
|
"reason": "",
|
||||||
"redacted-text": "Selected {length, plural, one{annotation} other {annotations}}",
|
"redacted-text": "Annotated text",
|
||||||
"section": "",
|
"section": "",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"unchanged": "Unchanged"
|
"unchanged": "Unchanged"
|
||||||
|
|||||||
@ -1210,7 +1210,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"reason": "",
|
"reason": "",
|
||||||
"redacted-text": "Selected {length, plural, one{annotation} other {annotations}}",
|
"redacted-text": "Annotated text",
|
||||||
"section": "",
|
"section": "",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"unchanged": "Unchanged"
|
"unchanged": "Unchanged"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user