HRM-10/HRM.UI/ClientApp/src/app/form-builder/Basic-Entry-Form.component.html
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

40 lines
2.0 KiB
HTML

<div >
<!--<button kendoButton *ngIf="!opened && this.basicMasterView.fromViewType==0" (click)="NewItem()">New</button>-->
@if (dataSaved) {
<p>Data has been saved</p>
}
@if (opened) {
<kendo-dialog title="{{this.formCaption}}"
(close)="close()" [height]="this.formHeight" [width]="this.formWidth"
[draggable]="false" [resizable]="false" class="blur-background">
<app-loading-panel></app-loading-panel>
<form [formGroup]="form">
<fieldset style="padding: 0px;">
<div class="form-row-wrapper">
@for (ctl of this.basicMasterView.entryFrom.controls; track ctl) {
<div class="form-row">
<app-basic-from-control [basiccontrol]="ctl" [form]="form"></app-basic-from-control>
</div>
}
</div>
</fieldset>
<app-loading-panel></app-loading-panel>
<fieldset style="margin-top:5px;">
<div class="text-right" style="float: right;">
<button [svgIcon]="apiService.KendoSVGIcon['cancel']" style="width:80px; margin-right: 7px" kendoButton (click)="close()">Close</button>
<button [svgIcon]="apiService.KendoSVGIcon['save']" kendoButton class="k-primary" (click)="onSubmit()" [disabled]="!form.valid">Save<!--{{this.formButtonTitle}}--></button> &nbsp;
<!--<button pButton type="button" label="Save" style="margin-bottom:10px;margin-right:10px; width: 45%;" (click)="onSubmit()" [disabled]="!form.valid" class="ui-button-success"></button>-->
<!--<button pButton type="submit" label="Cancel" style="margin-bottom:10px;width: 45%;" (click)="close()" class="ui-button-danger"></button>-->
<!--<button type="button" (click)="close()">Cancel</button>-->
<!--<button type="submit" [disabled]="!form.valid">Save</button>-->
</div>
</fieldset>
</form>
</kendo-dialog>
}
<!--<div *ngIf="payLoad" class="form-row">
<strong>Saved the following values</strong><br>{{payLoad}}
</div>-->
</div>