mirror of https://github.com/ghostfolio/ghostfolio
committed by
Thomas
3 changed files with 61 additions and 34 deletions
@ -1,35 +1,39 @@ |
|||||
<form #addAccessForm="ngForm" class="d-flex flex-column h-100"> |
<form |
||||
<h1 i18n mat-dialog-title>Grant access</h1> |
class="d-flex flex-column h-100" |
||||
<div class="flex-grow-1 py-3" mat-dialog-content> |
[formGroup]="accessForm" |
||||
<div> |
(keyup.enter)="accessForm.valid && onSubmit()" |
||||
<mat-form-field appearance="outline" class="w-100"> |
(ngSubmit)="onSubmit()" |
||||
<mat-label i18n>Alias</mat-label> |
> |
||||
<input |
<h1 i18n mat-dialog-title>Grant access</h1> |
||||
matInput |
<div class="flex-grow-1 py-3" mat-dialog-content> |
||||
name="alias" |
<div> |
||||
type="text" |
<mat-form-field appearance="outline" class="w-100"> |
||||
[(ngModel)]="data.access.alias" |
<mat-label i18n>Alias</mat-label> |
||||
/> |
<input |
||||
</mat-form-field> |
formControlName="alias" |
||||
|
matInput |
||||
|
type="text" |
||||
|
/> |
||||
|
</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> |
||||
</div> |
</div> |
||||
<div> |
<div class="justify-content-end" mat-dialog-actions> |
||||
<mat-form-field appearance="outline" class="w-100"> |
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button> |
||||
<mat-label i18n>Type</mat-label> |
<button |
||||
<mat-select name="type" required [(value)]="data.access.type"> |
color="primary" |
||||
<mat-option i18n value="PUBLIC">Public</mat-option> |
mat-flat-button |
||||
</mat-select> |
type="submit" |
||||
</mat-form-field> |
[disabled]="!accessForm.valid" |
||||
|
> |
||||
|
<ng-container i18n>Save</ng-container> |
||||
|
</button> |
||||
</div> |
</div> |
||||
</div> |
|
||||
<div class="justify-content-end" mat-dialog-actions> |
|
||||
<button i18n mat-button (click)="onCancel()">Cancel</button> |
|
||||
<button |
|
||||
color="primary" |
|
||||
mat-flat-button |
|
||||
[disabled]="!addAccessForm.form.valid" |
|
||||
[mat-dialog-close]="data" |
|
||||
> |
|
||||
<ng-container i18n>Save</ng-container> |
|
||||
</button> |
|
||||
</div> |
|
||||
</form> |
</form> |
||||
|
Loading…
Reference in new issue