31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
<form [formGroup]="editEntity" (ngSubmit)="save()" class="edit-entity-form">
|
|
<mat-toolbar fxLayout="row" color="primary">
|
|
<h2>New Note</h2>
|
|
<span fxFlex></span>
|
|
<button mat-icon-button (click)="cancel()" type="button">
|
|
<mat-icon class="material-icons">close</mat-icon>
|
|
</button>
|
|
</mat-toolbar>
|
|
|
|
<div style="height: 4px;" *ngIf="!(isLoading$ | async) && !loading"></div>
|
|
<div mat-dialog-content fxLayout="column">
|
|
<div formGroupName="attributes" fxLayout="column">
|
|
<textarea formControlName="note" rows="5" cols="50"></textarea>
|
|
</div>
|
|
</div>
|
|
<div mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">
|
|
<button mat-button mat-raised-button color="primary"
|
|
type="submit"
|
|
[disabled]="(isLoading$ | async) || editEntity.invalid || !editEntity.dirty">
|
|
Save
|
|
</button>
|
|
<button mat-button color="primary"
|
|
type="button"
|
|
[disabled]="(isLoading$ | async)"
|
|
(click)="cancel()" cdkFocusInitial>
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
|
|
</form>
|
|
|