mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-26 06:18:46 +00:00
* checkbox color * project grant preview * project grante expandable row * add grant detail component * proto regen * project grant members shared module * fix project grant members dialog * fix create dialog * lint * add avatar colors, meta component styling * light theme * dl report * styles * move grants out of user context, grant detail * i18n grant pipe * lint * user grants * clear expandable view project grants * fix project member routing * fix granted members routing * fix group label * rename project grant * disable zitadel grant members * fix routing user grant creation * rest member writes * ignore case searches * forkjoin observables for project search * fix grant creation with users * fix projectid reference * formfield table style, user grant dynamic load * show key if no displayvalue is set * Delete report.20200630.163913.44081.0.001.json Co-authored-by: Silvan <[email protected]>
57 lines
2.2 KiB
HTML
57 lines
2.2 KiB
HTML
<div class="max-width-container container">
|
|
<div class="abort-container">
|
|
<button (click)="close()" mat-icon-button>
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
<span class="abort">{{ 'PROJECT.GRANT.CREATE.TITLE' | translate }}</span><span class="abort-2">Step
|
|
{{ currentCreateStep }} of
|
|
{{ STEPS }}</span>
|
|
</div>
|
|
|
|
<ng-container *ngIf="currentCreateStep === 1">
|
|
<h1>{{'PROJECT.GRANT.CREATE.SEL_ORG' | translate}}</h1>
|
|
|
|
<form (ngSubmit)="searchOrg(domain.value)">
|
|
<mat-form-field class="org-domain">
|
|
<mat-label>{{'PROJECT.GRANT.CREATE.SEL_ORG' | translate}}</mat-label>
|
|
<input #domain matInput />
|
|
</mat-form-field>
|
|
|
|
<button [disabled]="domain.value.length == 0" color="primary" type="submit" class="domain-button"
|
|
mat-raised-button>
|
|
{{'PROJECT.GRANT.CREATE.SEL_ORG_BUTTON' | translate}}
|
|
</button>
|
|
</form>
|
|
|
|
<span *ngIf="org">
|
|
{{'PROJECT.GRANT.CREATE.FOR_ORG' | translate}} {{org?.name}}
|
|
</span>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="currentCreateStep === 2">
|
|
<h1>{{'PROJECT.GRANT.CREATE.SEL_ROLES' | translate}}</h1>
|
|
|
|
<app-card *ngIf="projectId">
|
|
<app-project-roles (changedSelection)="selectRoles($event)" [projectId]="projectId"></app-project-roles>
|
|
</app-card>
|
|
</ng-container>
|
|
|
|
<div class="btn-container">
|
|
<ng-container *ngIf="currentCreateStep === 1">
|
|
<button [disabled]="!org" (click)="next()" color="primary" mat-raised-button class="big-button"
|
|
cdkFocusInitial>
|
|
{{ 'ACTIONS.CONTINUE' | translate }}
|
|
</button>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="currentCreateStep === STEPS">
|
|
<button (click)="previous()" color="primary" mat-button class="small-button">
|
|
{{ 'ACTIONS.BACK' | translate }}
|
|
</button>
|
|
<button color="primary" [disabled]="!org" (click)="addGrant()" mat-raised-button class="big-button"
|
|
cdkFocusInitial>
|
|
{{ 'ACTIONS.SAVE' | translate }}
|
|
</button>
|
|
</ng-container>
|
|
</div>
|
|
</div> |