26 lines
942 B
HTML
26 lines
942 B
HTML
<h2>Product Group</h2>
|
|
|
|
@if (itemResource.isLoading()) {
|
|
<app-skeleton-loader type="card" [count]="1" />
|
|
<app-skeleton-loader type="line" [count]="10" />
|
|
} @else if (itemResource.error()) {
|
|
<app-error-state [message]="'Failed to load data.'" (retryAction)="itemResource.reload()" />
|
|
} @else {
|
|
<form class="flex-col wrapped" [formRoot]="form">
|
|
<div class="row-container">
|
|
<mat-form-field class="flex-auto">
|
|
<mat-label>Name</mat-label>
|
|
<input matInput [formField]="form.name" (keyup.enter)="save()" />
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="row-container">
|
|
<mat-checkbox [formField]="form.nutritional" class="flex-auto">Nutritional Information?</mat-checkbox>
|
|
<mat-checkbox [formField]="form.iceCream" class="flex-auto">Ice Cream?</mat-checkbox>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="row-container">
|
|
<button mat-raised-button (click)="save()" color="primary">Save</button>
|
|
</div>
|
|
}
|