mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 13:52:51 +00:00
* instance routing * instance naming * org list * rm isonsystem * breadcrumb type * routing * instance members * fragment refresh org * settings pages * settings list, sidenav grouping, i18n * org-settings, policy changes * lint * grid * rename grid * fallback to general * cleanup * general settings, remove cards * sidenav for settings, label policy * i18n * header, nav backbuild * general, project nav rehaul * login text background adapt * org nav anim * org, instance settings, fix policy layout, roles * i18n, active route for project * lint
51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
<h2>{{ 'POLICY.TITLE' | translate }}</h2>
|
|
|
|
<p class="top-desc cnsl-secondary-text">{{ 'POLICY.DESCRIPTION' | translate }}</p>
|
|
|
|
<div class="row-lyt" [ngClass]="{ more: type === PolicyComponentServiceType.ADMIN }">
|
|
<ng-container *ngFor="let setting of SETTINGS">
|
|
<ng-template
|
|
cnslHasRole
|
|
[hasRole]="
|
|
type === PolicyComponentServiceType.ADMIN
|
|
? setting.iamWithRole
|
|
: type === PolicyComponentServiceType.MGMT
|
|
? setting.orgWithRole
|
|
: []
|
|
"
|
|
>
|
|
<div class="p-item card" @policy [attr.data-e2e]="'policy-card'">
|
|
<div class="avatar {{ setting.color }}">
|
|
<mat-icon *ngIf="setting.svgIcon" class="mat-icon" [svgIcon]="setting.svgIcon"></mat-icon>
|
|
<i *ngIf="setting.icon" class="icon {{ setting.icon }}"></i>
|
|
</div>
|
|
<div class="title">
|
|
<span>{{ setting.i18nTitle | translate }}</span>
|
|
</div>
|
|
|
|
<p class="desc cnsl-secondary-text">
|
|
{{ setting.i18nDesc ? (setting.i18nDesc | translate) : '' }}
|
|
</p>
|
|
|
|
<span class="fill-space"></span>
|
|
|
|
<div class="btn-wrapper">
|
|
<a
|
|
[routerLink]="
|
|
type === PolicyComponentServiceType.ADMIN
|
|
? setting.iamRouterLink
|
|
: type === PolicyComponentServiceType.MGMT
|
|
? setting.orgRouterLink
|
|
: null
|
|
"
|
|
[queryParams]="setting.queryParams"
|
|
mat-stroked-button
|
|
>
|
|
{{ 'POLICY.BTN_EDIT' | translate }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</ng-container>
|
|
</div>
|