mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-08 23:25:12 +00:00
* common project grant dialog, info box, label policy * text styles, statehandler fix * dialog, btn alignment, i18n * search-user theme colors * filter formfield sizing * redirect uris * shortcut layout * settings grid type rest, shortcuts linking * login policy, reset button consistency, metadata * permission checks
70 lines
2.5 KiB
HTML
70 lines
2.5 KiB
HTML
<h2>{{ 'POLICY.PRIVACY_POLICY.TITLE' | translate }}</h2>
|
|
<p class="cnsl-secondary-text">{{ 'POLICY.PRIVACY_POLICY.DESCRIPTION' | translate }}</p>
|
|
|
|
<ng-container *ngIf="serviceType === PolicyComponentServiceType.MGMT && !isDefault">
|
|
<ng-template cnslHasRole [hasRole]="['policy.delete']">
|
|
<button
|
|
color="primary"
|
|
matTooltip="{{ 'POLICY.RESET' | translate }}"
|
|
color="warn"
|
|
(click)="resetDefault()"
|
|
mat-stroked-button
|
|
>
|
|
{{ 'POLICY.RESET' | translate }}
|
|
</button>
|
|
</ng-template>
|
|
</ng-container>
|
|
|
|
<!-- <cnsl-info-section *ngIf="isDefault"> {{ 'POLICY.DEFAULTLABEL' | translate }}</cnsl-info-section> -->
|
|
|
|
<div>
|
|
<form *ngIf="form" [formGroup]="form" class="policy-content">
|
|
<cnsl-form-field class="privacy-policy-formfield">
|
|
<cnsl-label>{{ 'POLICY.PRIVACY_POLICY.TOSLINK' | translate }}</cnsl-label>
|
|
<input cnslInput name="tosLink" formControlName="tosLink" />
|
|
<template [ngTemplateOutlet]="templateRef" [ngTemplateOutletContext]="{ key: 'tosLink' }"></template>
|
|
</cnsl-form-field>
|
|
|
|
<cnsl-form-field class="privacy-policy-formfield">
|
|
<cnsl-label>{{ 'POLICY.PRIVACY_POLICY.POLICYLINK' | translate }}</cnsl-label>
|
|
<input cnslInput name="privacyLink" formControlName="privacyLink" />
|
|
<template [ngTemplateOutlet]="templateRef" [ngTemplateOutletContext]="{ key: 'privacyLink' }"></template>
|
|
</cnsl-form-field>
|
|
|
|
<cnsl-form-field class="privacy-policy-formfield">
|
|
<cnsl-label>{{ 'POLICY.PRIVACY_POLICY.HELPLINK' | translate }}</cnsl-label>
|
|
<input cnslInput name="helpLink" formControlName="helpLink" />
|
|
<template [ngTemplateOutlet]="templateRef" [ngTemplateOutletContext]="{ key: 'helpLink' }"></template>
|
|
</cnsl-form-field>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="policy-actions">
|
|
<button
|
|
class="save-button"
|
|
[disabled]="(canWrite$ | async) === false"
|
|
(click)="saveCurrentMessage()"
|
|
color="primary"
|
|
type="submit"
|
|
mat-raised-button
|
|
>
|
|
{{ 'ACTIONS.SAVE' | translate }}
|
|
</button>
|
|
</div>
|
|
|
|
<ng-template #templateRef let-key="key">
|
|
<div class="chips">
|
|
<div
|
|
class="chip"
|
|
cnslCopyToClipboard
|
|
[valueToCopy]="LANGPLACEHOLDER"
|
|
(copiedValue)="copied = $event"
|
|
(click)="addChip(key, LANGPLACEHOLDER)"
|
|
>
|
|
<span class="key">{{ LANGPLACEHOLDER }}</span>
|
|
<i *ngIf="copied !== LANGPLACEHOLDER" class="las la-clipboard"></i>
|
|
<i *ngIf="copied === LANGPLACEHOLDER" class="las la-clipboard-check"></i>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|