mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-31 04:48:22 +00:00
51 lines
2.2 KiB
HTML
51 lines
2.2 KiB
HTML
<cnsl-create-layout
|
|
title="{{ 'USER.CREATE.TITLE' | translate }}"
|
|
[createSteps]="1"
|
|
[currentCreateStep]="1"
|
|
(closed)="close()"
|
|
>
|
|
<mat-progress-bar *ngIf="loading" color="primary" mode="indeterminate"></mat-progress-bar>
|
|
|
|
<div class="machine-create-main-content">
|
|
<form *ngIf="userForm" [formGroup]="userForm" (ngSubmit)="createUser()" class="machine-create-form">
|
|
<div class="machine-create-content">
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'USER.MACHINE.USERNAME' | translate }}*</cnsl-label>
|
|
<input cnslInput formControlName="userName" required />
|
|
<span cnslError *ngIf="userName?.invalid && userName?.errors?.required">
|
|
{{ 'USER.VALIDATION.REQUIRED' | translate }}
|
|
</span>
|
|
<span cnslError *ngIf="userName?.invalid && userName?.errors?.noEmailValidator">
|
|
{{ 'USER.VALIDATION.NOEMAIL' | translate }}
|
|
</span>
|
|
</cnsl-form-field>
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'USER.MACHINE.NAME' | translate }}*</cnsl-label>
|
|
<input cnslInput formControlName="name" required />
|
|
<span cnslError *ngIf="name?.invalid && name?.errors?.required">
|
|
{{ 'USER.VALIDATION.REQUIRED' | translate }}
|
|
</span>
|
|
</cnsl-form-field>
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'USER.MACHINE.DESCRIPTION' | translate }}</cnsl-label>
|
|
<input cnslInput formControlName="description" />
|
|
</cnsl-form-field>
|
|
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'USER.MACHINE.ACCESSTOKENTYPE' | translate }}</cnsl-label>
|
|
<mat-select formControlName="accessTokenType" required>
|
|
<mat-option *ngFor="let aTT of accessTokenTypes" [value]="aTT">
|
|
{{ 'USER.MACHINE.ACCESSTOKENTYPES.' + aTT | translate }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</cnsl-form-field>
|
|
</div>
|
|
<div class="machine-btn-container">
|
|
<button color="primary" data-e2e="create-button" [disabled]="userForm.invalid" type="submit" mat-raised-button>
|
|
{{ 'ACTIONS.CREATE' | translate }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</cnsl-create-layout>
|