rule-set dialog translations
This commit is contained in:
parent
bef172e3ab
commit
73c3f5cd95
@ -14,11 +14,8 @@
|
||||
<mat-form-field floatLabel="always">
|
||||
<mat-label>{{ 'add-edit-project-template.form.download-file-types.label' | translate }}</mat-label>
|
||||
<mat-select formControlName="downloadFileTypes" style="width: 100%;" multiple>
|
||||
<mat-option
|
||||
*ngFor="let type of downloadTypesEnum"
|
||||
[value]="type"
|
||||
>
|
||||
{{ humanize(type) }}
|
||||
<mat-option *ngFor="let type of downloadTypesEnum" [value]="type">
|
||||
{{ 'download-type.' + type | translate }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
@ -28,11 +25,8 @@
|
||||
<mat-form-field floatLabel="always">
|
||||
<mat-label>{{ 'add-edit-project-template.form.report-types.label' | translate }}</mat-label>
|
||||
<mat-select formControlName="reportTypes" style="width: 100%;" multiple>
|
||||
<mat-option
|
||||
*ngFor="let type of reportTypesEnum"
|
||||
[value]="type"
|
||||
>
|
||||
{{ humanize(type) }}
|
||||
<mat-option *ngFor="let type of reportTypesEnum" [value]="type">
|
||||
{{ 'report-type.' + type | translate }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
@ -13,7 +13,7 @@ import { RuleSetControllerService, RuleSetModel } from '@redaction/red-ui-http';
|
||||
export class AddEditRuleSetDialogComponent {
|
||||
public ruleSetForm: FormGroup;
|
||||
public hasValidFrom: boolean;
|
||||
public downloadTypesEnum = Object.values(RuleSetModel.DownloadFileTypesEnum);
|
||||
public downloadTypesEnum = ['ORIGINAL', 'PREVIEW', 'REDACTED'];
|
||||
public reportTypesEnum = Object.values(RuleSetModel.ReportTypesEnum);
|
||||
|
||||
constructor(
|
||||
|
||||
@ -3,7 +3,6 @@ import { CommonModule } from '@angular/common';
|
||||
import { FileDropComponent } from './file-drop/file-drop.component';
|
||||
import { OverlayModule } from '@angular/cdk/overlay';
|
||||
import { UploadStatusOverlay } from './upload-status-overlay/upload-status-overlay.component';
|
||||
import { NgxDropzoneModule } from 'ngx-dropzone';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { UploadDownloadDialogService } from './services/upload-download-dialog.service';
|
||||
import { OverwriteFilesDialogComponent } from './dialogs/overwrite-files-dialog/overwrite-files-dialog.component';
|
||||
|
||||
@ -1222,5 +1222,16 @@
|
||||
"no-data": {
|
||||
"title": "No file attributes defined. Select a column from the left panel to start defining file attributes."
|
||||
}
|
||||
},
|
||||
"download-type": {
|
||||
"PREVIEW": "Preview PDF",
|
||||
"ORIGINAL": "Original PDF",
|
||||
"REDACTED": "Redacted PDF"
|
||||
},
|
||||
"report-type": {
|
||||
"WORD_SINGLE_FILE_APPENDIX_A1_TEMPLATE": "Justification Appendix A1",
|
||||
"WORD_SINGLE_FILE_APPENDIX_A2_TEMPLATE": "Justification Appendix A2",
|
||||
"EXCEL_MULTI_FILE": "Excel (for all)",
|
||||
"EXCEL_SINGLE_FILE": "Excel (per all)"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user