|
|
@ -4,37 +4,37 @@ |
|
|
|
(keyup.enter)="accessForm.valid && onSubmit()" |
|
|
|
(ngSubmit)="onSubmit()" |
|
|
|
> |
|
|
|
<h1 i18n mat-dialog-title>Grant access</h1> |
|
|
|
<div class="flex-grow-1 py-3" mat-dialog-content> |
|
|
|
<div> |
|
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
|
<mat-label i18n>Alias</mat-label> |
|
|
|
<input |
|
|
|
formControlName="alias" |
|
|
|
matInput |
|
|
|
type="text" |
|
|
|
(keydown.enter)="$event.stopPropagation()" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
|
<mat-label i18n>Type</mat-label> |
|
|
|
<mat-select formControlName="type"> |
|
|
|
<mat-option i18n value="PUBLIC">Public</mat-option> |
|
|
|
</mat-select> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<h1 i18n mat-dialog-title>Grant access</h1> |
|
|
|
<div class="flex-grow-1 py-3" mat-dialog-content> |
|
|
|
<div> |
|
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
|
<mat-label i18n>Alias</mat-label> |
|
|
|
<input |
|
|
|
formControlName="alias" |
|
|
|
matInput |
|
|
|
type="text" |
|
|
|
(keydown.enter)="$event.stopPropagation()" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<div class="justify-content-end" mat-dialog-actions> |
|
|
|
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button> |
|
|
|
<button |
|
|
|
color="primary" |
|
|
|
mat-flat-button |
|
|
|
type="submit" |
|
|
|
[disabled]="!accessForm.valid" |
|
|
|
> |
|
|
|
<ng-container i18n>Save</ng-container> |
|
|
|
</button> |
|
|
|
<div> |
|
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
|
<mat-label i18n>Type</mat-label> |
|
|
|
<mat-select formControlName="type"> |
|
|
|
<mat-option i18n value="PUBLIC">Public</mat-option> |
|
|
|
</mat-select> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="justify-content-end" mat-dialog-actions> |
|
|
|
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button> |
|
|
|
<button |
|
|
|
color="primary" |
|
|
|
mat-flat-button |
|
|
|
type="submit" |
|
|
|
[disabled]="!accessForm.valid" |
|
|
|
> |
|
|
|
<ng-container i18n>Save</ng-container> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|