|
|
|
@ -2,24 +2,20 @@
|
|
|
|
|
|
|
|
|
|
@inherits UIComposition
|
|
|
|
|
|
|
|
|
|
<h4>
|
|
|
|
|
Update tax rate
|
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<h3>TaxRateEditForm</h3>
|
|
|
|
|
|
|
|
|
|
<EditForm Model="@DataSource" OnValidSubmit="@OnUpdate">
|
|
|
|
|
<DataAnnotationsValidator />
|
|
|
|
|
<ValidationSummary />
|
|
|
|
|
|
|
|
|
|
<div class="grid grid-col-2 gap-3">
|
|
|
|
|
<div>
|
|
|
|
|
<label for="name">Name</label>
|
|
|
|
|
<InputText id="name" @bind-Value="DataSource.Name" />
|
|
|
|
|
<InputText @bind-Value="DataSource.Name" Label="Name" HelperText="The tax rate name" Required=true/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<label for="rate">Rate</label>
|
|
|
|
|
<InputNumber id="rate" @bind-Value="DataSource.Rate" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
|
<button @onclick="OnCancel">Cancel</button>
|
|
|
|
|
|
|
|
|
|
</EditForm>
|
|
|
|
|
<InputNumber DisableMouseWheel=true @bind-Value="DataSource.Rate" Label="Rate" Required=true HelperText="The tax rate" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="py-3">
|
|
|
|
|
<Button Size="Size.Small" @onclick="OnUpdate" Class="mr-3">Submit</Button>
|
|
|
|
|
<Button Size="Size.Small" @onclick="OnCancel">Cancel</Button>
|
|
|
|
|
</div>
|