toSignal via Gemini
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
<h2>Tax</h2>
|
||||
<form [formGroup]="form" class="flex-col">
|
||||
<form class="flex-col">
|
||||
<div class="row-container">
|
||||
<mat-form-field class="flex-auto">
|
||||
<mat-label>Name</mat-label>
|
||||
<input matInput #nameElement formControlName="name" (keyup.enter)="save()" />
|
||||
<input matInput #nameElement [formField]="form.name" (keyup.enter)="save()" />
|
||||
<mat-hint> Format for GST: ST GST @ x% (1/2) ; CGST @ x% (1/2) </mat-hint>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="row-container">
|
||||
<mat-form-field class="flex-auto">
|
||||
<mat-label>Rate</mat-label>
|
||||
<input matInput type="number" formControlName="rate" class="right-align" />
|
||||
<input matInput type="number" [formField]="form.rate" class="right-align" />
|
||||
<span matTextSuffix>%</span>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="row-container">
|
||||
<mat-form-field class="flex-auto">
|
||||
<mat-label>Regime</mat-label>
|
||||
<mat-select formControlName="regime">
|
||||
@for (reg of regimes; track reg) {
|
||||
<mat-select [formField]="form.regime">
|
||||
@for (reg of regimes(); track reg) {
|
||||
<mat-option [value]="reg.id">
|
||||
{{ reg.name }}
|
||||
</mat-option>
|
||||
@@ -29,8 +29,12 @@
|
||||
</form>
|
||||
|
||||
<div class="row-container">
|
||||
<button mat-raised-button [disabled]="item.isFixture" color="primary" class="" (click)="save()">Save</button>
|
||||
@if (!!item.id) {
|
||||
<button mat-raised-button [disabled]="item.isFixture" color="warn" (click)="confirmDelete()">Delete</button>
|
||||
<button type="button" mat-raised-button [disabled]="item().isFixture" color="primary" class="" (click)="save()">
|
||||
Save
|
||||
</button>
|
||||
@if (!!item().id) {
|
||||
<button type="button" mat-raised-button [disabled]="item().isFixture" color="warn" (click)="confirmDelete()">
|
||||
Delete
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user