13 lines
541 B
HTML
13 lines
541 B
HTML
<div>
|
|
<form cForm [formGroup]="form" (ngSubmit)="onSubmit(model)">
|
|
<span class="col col-form-label" *ngIf="loading$ | async">Loading...</span>
|
|
<formly-form [form]="form" [fields]="fields" [model]="model"></formly-form>
|
|
<button class="btn btn-success btn-lg" type="submit" [disabled]="!form.valid">
|
|
{{ this.isCreateForm() ? "Create" : "Update" }}
|
|
</button>
|
|
<button class="btn btn-danger btn-lg float-end" type="button" *ngIf="!this.isCreateForm()" (click)="onDelete()">
|
|
Delete
|
|
</button>
|
|
</form>
|
|
</div>
|