1
|
<p-dialog [visible]="isVisible" [modal]="true" [closable]="false" [draggable]="false" header="Edit unit - {{ unit?.unitId}}" [style]="{width: '50vw'}" [baseZIndex]="10000">
|
2
|
|
3
|
<form [formGroup]="insertForm">
|
4
|
<div class="input-group form-group">
|
5
|
<div class="input-group-prepend">
|
6
|
<span class="input-group-text">Description</span>
|
7
|
</div>
|
8
|
<input type="text" formControlName="unitDescription" class="form-control" id="unitDescription" placeholder="{{unit?.description}}"/>
|
9
|
</div>
|
10
|
</form>
|
11
|
|
12
|
<p-footer>
|
13
|
<div class="row justify-content-end align-items-center">
|
14
|
<div>
|
15
|
<p-button icon="pi pi-check" (click)="saveUnit()" type="submit" label="Save" class="pr-2"></p-button>
|
16
|
<p-button icon="pi pi-times" (click)="close()" label="Close" class="pr-2"></p-button>
|
17
|
</div>
|
18
|
</div>
|
19
|
</p-footer>
|
20
|
</p-dialog>
|