added code for note widget
This commit is contained in:
31
Widgets/notes/addNote.html
Normal file
31
Widgets/notes/addNote.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user