mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-15 10:25:11 +00:00
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <[email protected]>
62 lines
2.3 KiB
HTML
62 lines
2.3 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>
|
|
|
|
<div class="create-content">
|
|
<ng-container *ngIf="currentCreateStep === 1">
|
|
<h1>{{'PROJECT.GRANT.CREATE.SEL_ORG' | translate}}</h1>
|
|
<p>{{'PROJECT.GRANT.CREATE.SEL_ORG_DESC' | translate}}</p>
|
|
|
|
<form (ngSubmit)="searchOrg(domain.value)">
|
|
<cnsl-form-field class="org-domain">
|
|
<cnsl-label>{{'PROJECT.GRANT.CREATE.SEL_ORG_FORMFIELD' | translate}}</cnsl-label>
|
|
<input cnslInput #domain />
|
|
</cnsl-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>
|
|
|
|
<cnsl-card *ngIf="projectId">
|
|
<cnsl-project-roles-table
|
|
[displayedColumns]="['select', 'key', 'displayname', 'group', 'creationDate', 'changeDate']"
|
|
(changedSelection)="selectRoles($event)" [projectId]="projectId">
|
|
</cnsl-project-roles-table>
|
|
</cnsl-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()" mat-stroked-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>
|
|
</div> |