DM-333: Changes in Dossier Template.
This commit is contained in:
parent
b84d808367
commit
f10ad4deff
@ -2,9 +2,9 @@
|
||||
<div [translate]="'reports-screen.title'" class="heading-xl"></div>
|
||||
|
||||
<div [translate]="'reports-screen.setup'" class="description"></div>
|
||||
<div [translate]="'reports-screen.description'" class="description"></div>
|
||||
<div *ngIf="!isDocumine" [translate]="'reports-screen.description'" class="description"></div>
|
||||
|
||||
<div *ngIf="placeholders$ | async as placeholders" class="placeholders">
|
||||
<div *ngIf="!isDocumine && placeholders$ | async as placeholders" class="placeholders">
|
||||
<div [translate]="'reports-screen.table-header.placeholders'" class="all-caps-label"></div>
|
||||
<div [translate]="'reports-screen.table-header.description'" class="all-caps-label"></div>
|
||||
<ng-container *ngFor="let placeholder of placeholders">
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { ChangeDetectionStrategy, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
||||
import { DOSSIER_TEMPLATE_ID, IPlaceholdersResponse, IReportTemplate, User } from '@red/domain';
|
||||
import { download } from '@utils/file-download-utils';
|
||||
import { IConfirmationDialogData, LoadingService, Toaster } from '@iqser/common-ui';
|
||||
import { getConfig, IConfirmationDialogData, LoadingService, Toaster } from '@iqser/common-ui';
|
||||
import { PermissionsService } from '@services/permissions.service';
|
||||
import {
|
||||
generalPlaceholdersDescriptionsTranslations,
|
||||
@ -39,6 +39,8 @@ export class ReportsScreenComponent implements OnInit {
|
||||
readonly currentUser = getCurrentUser<User>();
|
||||
readonly roles = Roles;
|
||||
|
||||
readonly isDocumine = getConfig().IS_DOCUMINE;
|
||||
|
||||
constructor(
|
||||
private readonly _reportTemplateService: ReportTemplateService,
|
||||
private readonly _dialogService: AdminDialogService,
|
||||
|
||||
@ -5,7 +5,7 @@ import { adminSideNavTranslations } from '@translations/admin-side-nav-translati
|
||||
import { ActivatedRoute, RouterLink, RouterLinkActive } from '@angular/router';
|
||||
import { AdminSideNavType, AdminSideNavTypes, DOSSIER_TEMPLATE_ID, ENTITY_TYPE, User, WATERMARK_ID } from '@red/domain';
|
||||
import { Roles } from '@users/roles';
|
||||
import { IqserHelpModeModule, IqserPermissionsService } from '@iqser/common-ui';
|
||||
import { getConfig, IqserHelpModeModule, IqserPermissionsService } from '@iqser/common-ui';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NgForOf, NgIf } from '@angular/common';
|
||||
import { getCurrentUser } from '@iqser/common-ui/lib/users';
|
||||
@ -32,6 +32,7 @@ export class AdminSideNavComponent implements OnInit {
|
||||
readonly translations = adminSideNavTranslations;
|
||||
readonly currentUser = getCurrentUser<User>();
|
||||
readonly roles = Roles;
|
||||
readonly isDocumine = getConfig().IS_DOCUMINE;
|
||||
prefix: string;
|
||||
|
||||
readonly items: { readonly [key in AdminSideNavType]: NavItem[] } = {
|
||||
@ -136,7 +137,7 @@ export class AdminSideNavComponent implements OnInit {
|
||||
{
|
||||
screen: 'justifications',
|
||||
label: _('admin-side-nav.justifications'),
|
||||
show: this._permissionsService.has([Roles.legalBasis.read]),
|
||||
show: this._permissionsService.has([Roles.legalBasis.read]) && !this.isDocumine,
|
||||
helpModeKey: 'justifications',
|
||||
},
|
||||
],
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
></span>
|
||||
</div>
|
||||
|
||||
<div *ngIf="form.get('hint')" class="iqser-input-group slider-row">
|
||||
<div *ngIf="form.get('hint') && !isDocumine" class="iqser-input-group slider-row">
|
||||
<mat-button-toggle-group appearance="legacy" formControlName="hint" name="hint">
|
||||
<mat-button-toggle [value]="false">
|
||||
{{ 'add-edit-entity.form.redaction' | translate }}
|
||||
@ -56,7 +56,7 @@
|
||||
</mat-button-toggle-group>
|
||||
</div>
|
||||
|
||||
<div *ngIf="form.get('defaultReason')" class="iqser-input-group w-400">
|
||||
<div *ngIf="form.get('defaultReason') && !isDocumine" class="iqser-input-group w-400">
|
||||
<label translate="add-edit-entity.form.default-reason"></label>
|
||||
<mat-form-field>
|
||||
<mat-select
|
||||
|
||||
@ -8,7 +8,7 @@ import { DictionariesMapService } from '@services/entity-services/dictionaries-m
|
||||
import { PermissionsService } from '@services/permissions.service';
|
||||
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
||||
import { DictionaryService } from '@services/entity-services/dictionary.service';
|
||||
import { BaseFormComponent, LoadingService, Toaster } from '@iqser/common-ui';
|
||||
import { BaseFormComponent, getConfig, LoadingService, Toaster } from '@iqser/common-ui';
|
||||
|
||||
const REDACTION_FIELDS = ['defaultReason'];
|
||||
|
||||
@ -36,6 +36,8 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
||||
|
||||
colors: Color[];
|
||||
|
||||
readonly isDocumine = getConfig().IS_DOCUMINE;
|
||||
|
||||
constructor(
|
||||
private readonly _dictionariesMapService: DictionariesMapService,
|
||||
private readonly _permissionsService: PermissionsService,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user