Revize a3ae1cab
Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)
src/app/dashboard/components/unit-popup/unit-popup.component.html | ||
---|---|---|
1 |
<p-dialog [visible]="isVisible" [closable]="false" [draggable]="false" header="Nejlepsi popup" [style]="{width: '50vw'}" [baseZIndex]="10000"> |
|
2 |
{{ unit | json}} |
|
1 |
<p-dialog [visible]="isVisible" [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 |
<input type="text" formControlName="unitId" class="form-control" id="unitId" placeholder="{{ unit?.unitId}}"/> |
|
6 |
</div> |
|
7 |
<div class="input-group form-group"> |
|
8 |
<input type="text" formControlName="unitDescription" class="form-control" id="unitDescription" placeholder="{{unit?.description}}"/> |
|
9 |
</div> |
|
10 |
</form> |
|
11 |
|
|
3 | 12 |
<p-footer> |
4 | 13 |
<div class="row justify-content-end align-items-center"> |
5 | 14 |
<div> |
6 |
<p-button icon="pi pi-check" type="submit" label="Uložit" class="pr-2"></p-button>
|
|
7 |
<p-button icon="pi pi-times" (click)="close()" label="Zavřít" class="pr-2"></p-button>
|
|
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>
|
|
8 | 17 |
</div> |
9 | 18 |
</div> |
10 | 19 |
</p-footer> |
Také k dispozici: Unified diff
Re #8794 - Přidat unit - formulář, endpoint
+ new form for adding unit
+ new endpoint in OpenAPI